public class GElementRect extends GElement implements XJXMLSerializable
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_HEIGHT |
static int |
DEFAULT_WIDTH |
protected double |
height |
protected double |
width |
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 |
|---|
GElementRect() |
| Modifier and Type | Method and Description |
|---|---|
void |
draw(Graphics2D g) |
void |
drawLabel(Graphics2D g) |
void |
drawShape(Graphics2D g) |
Rect |
getFrame() |
double |
getHeight() |
double |
getWidth() |
boolean |
isInside(Point p) |
void |
setHeight(double height) |
void |
setPositionOfUpperLeftCorner(double x,
double y) |
void |
setSize(double width,
double height) |
void |
setWidth(double width) |
void |
updateAnchors() |
acceptIncomingLink, acceptOutgoingLink, addElement, beginDrag, bounds, drag, dragElementPosition, drawRecursive, elementDidLoad, elementDimensionDidChange, elementPositionDidChange, findElementWithLabel, getAnchor, getAnchorClosestToPoint, getAnchorKeyClosestToPoint, getDefaultAnchorOffset, 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_WIDTH
public static final int DEFAULT_HEIGHT
protected double width
protected double height
public void setPositionOfUpperLeftCorner(double x,
double y)
public void setSize(double width,
double height)
public void setWidth(double width)
public double getWidth()
public void setHeight(double height)
public double getHeight()
public void updateAnchors()
updateAnchors in class GElementpublic void draw(Graphics2D g)
public void drawShape(Graphics2D g)
public void drawLabel(Graphics2D g)
Copyright © 2013. All rights reserved.