public class GElementCircle extends GElement implements XJXMLSerializable
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_RADIUS |
protected double |
radius |
ANCHOR_BOTTOM, ANCHOR_CENTER, ANCHOR_LEFT, ANCHOR_RIGHT, ANCHOR_TOP, anchors, color, draggable, elements, focused, label, labelColor, labelVisible, lock, oldPosition, penSize, position, selected, strokeBold, strokeNormal, strokeSize, view| Constructor and Description |
|---|
GElementCircle() |
| Modifier and Type | Method and Description |
|---|---|
void |
draw(Graphics2D g) |
void |
drawShape(Graphics2D g) |
double |
getDefaultAnchorOffset(String anchorKey) |
Rect |
getFrame() |
double |
getRadius() |
boolean |
isInside(Point p) |
void |
setRadius(double radius) |
void |
updateAnchors() |
acceptIncomingLink, acceptOutgoingLink, addElement, beginDrag, bounds, drag, dragElementPosition, drawRecursive, elementDidLoad, elementDimensionDidChange, elementPositionDidChange, findElementWithLabel, getAnchor, getAnchorClosestToPoint, getAnchorKeyClosestToPoint, getElements, getFirstElement, getLabel, getLabelColor, getLastElement, getPosition, getPositionX, getPositionY, isDraggable, isFocused, isLabelEqualsTo, isLabelVisible, isSelected, isVisibleInClip, match, move, moveToPosition, removeElement, setAnchor, setColor, setDraggable, setElements, setFocused, setLabel, setLabelColor, setLabelVisible, setPanel, setPenSize, setPosition, setPosition, setSelected, toStringpublic static final int DEFAULT_RADIUS
protected double radius
public void setRadius(double radius)
public double getRadius()
public void updateAnchors()
updateAnchors in class GElementpublic double getDefaultAnchorOffset(String anchorKey)
getDefaultAnchorOffset in class GElementpublic void draw(Graphics2D g)
public void drawShape(Graphics2D g)
Copyright © 2013. All rights reserved.