public class GElementArrow extends GElement implements XJXMLSerializable
| Modifier and Type | Field and Description |
|---|---|
protected SArrow |
arrow |
protected Vector2D |
target |
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 |
|---|
GElementArrow() |
| Modifier and Type | Method and Description |
|---|---|
void |
draw(Graphics2D g) |
void |
drawShape(Graphics2D g) |
SArrow |
getArrow() |
Rect |
getFrame() |
Vector2D |
getTarget() |
boolean |
isInside(Point p) |
void |
move(double dx,
double dy) |
void |
setArrow(SArrow arrow) |
void |
setArrowLength(double length) |
void |
setSource(double x,
double y) |
void |
setTarget(double x,
double y) |
void |
setTarget(Vector2D target) |
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, moveToPosition, removeElement, setAnchor, setColor, setDraggable, setElements, setFocused, setLabel, setLabelColor, setLabelVisible, setPanel, setPenSize, setPosition, setPosition, setSelected, toString, updateAnchorspublic void setArrow(SArrow arrow)
public SArrow getArrow()
public void setArrowLength(double length)
public void setSource(double x,
double y)
public void setTarget(double x,
double y)
public void setTarget(Vector2D target)
public Vector2D getTarget()
public void draw(Graphics2D g)
public void drawShape(Graphics2D g)
Copyright © 2013. All rights reserved.