|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A graphic capability allowing a graphic entity to link other graphic entities together through none or more ordered end points. The count and order of the end points are determined by the graphic and its topology, not the client. The client only has control of the shape's visual attributes (point position, decorations).
Typically, a linking graphic's geometry is rectilinear. If the graphic is also kinkable (see KinkableGraphic), the geometry could be curvileaner. The semantics of the link end points is defined by the graphic. A simple example of a link graphic is an arrow, with a tail (starting) end point and a head (ending) end point.
Method Summary | |
Size3 |
getGraphicLinkDecoSize(Size3 retVal)
Gets the approximate size of the linking graphic decorations and, indirectly, the line width. |
Point3 |
getGraphicLinkEnd(int index,
Point3 retVal)
Gets the specified kink point in the kink point list. |
int |
getGraphicLinkEndCount()
Gets the number of end points in the end point list. |
void |
setGraphicLinkDecoSize(Size3 size)
Sets a hint for the size of the linking graphic decorations. |
void |
setGraphicLinkEnd(int index,
Point3 point)
Sets the specified end point in the end point list. |
Methods inherited from interface gumbo.graphic.Graphic |
getGraphic |
Method Detail |
public int getGraphicLinkEndCount()
public void setGraphicLinkEnd(int index, Point3 point)
index
- Index of the point to set.point
- Value of the point. Never null.
java.lang.IndexOutOfBoundsException
- Index is outside the point list.public Point3 getGraphicLinkEnd(int index, Point3 retVal)
index
- Index of the point to get.retVal
- Return value object. Value of the point. Never null.
java.lang.IndexOutOfBoundsException
- Index is outside the point list.public void setGraphicLinkDecoSize(Size3 size)
size
- Value of the size (>=0). Never null.public Size3 getGraphicLinkDecoSize(Size3 retVal)
retVal
- Return value object. Value of the size. Never null.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |