|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
mascoptLib.gui.views.GObject
mascoptLib.gui.views.Link
mascoptLib.gui.views.ArrowedLink
A Link with an arrow.
| Field Summary |
| Fields inherited from class mascoptLib.gui.views.Link |
color |
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
ArrowedLink(GObject source,
GObject target,
Color color)
Construct a link. |
|
ArrowedLink(GObject source,
GObject target,
Color color,
int shift)
Construct a link. |
|
ArrowedLink(GObject source,
GObject target,
int offSetSourceX,
int offSetSourceY,
int offSetTargetX,
int offSetTargetY,
Color color)
Construct a link. |
|
ArrowedLink(GObject source,
GObject target,
int offSetSourceX,
int offSetSourceY,
int offSetTargetX,
int offSetTargetY,
Color color,
int shift)
Construct a link. |
|
| Method Summary | |
boolean |
contains(int x,
int y)
Test if the mouse is on the arrow of the arc. |
Point |
getCenterArrow()
Get the point pointed by the arrow. |
void |
paint(Graphics g)
Repaoint the graphic. |
void |
setOffsetAxis(int v)
Change the offset from x axis. |
void |
setOffsetNormal(int v)
Change the offset from normal axis. |
void |
setVisibleArrow(boolean b)
Change the visibility of the arrow. |
| Methods inherited from class mascoptLib.gui.views.Link |
getColor, getShift, getSource, getTarget, setColor, setLocation, setShift |
| Methods inherited from class mascoptLib.gui.views.GObject |
repaint, translate |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ArrowedLink(GObject source,
GObject target,
Color color)
source - from this source.target - to this target.color - with this color.
public ArrowedLink(GObject source,
GObject target,
Color color,
int shift)
source - from this source.target - to this target.color - with this color.shift - with this shift.
public ArrowedLink(GObject source,
GObject target,
int offSetSourceX,
int offSetSourceY,
int offSetTargetX,
int offSetTargetY,
Color color)
source - from this source.target - to this target.offSetSourceX - move the X coordinates of the sourceoffSetSourceY - move the Y coordinates of the sourceoffSetTargetX - move the X coordinates of the targetoffSetTargetY - move the Y coordinates of the targetcolor - with this color
public ArrowedLink(GObject source,
GObject target,
int offSetSourceX,
int offSetSourceY,
int offSetTargetX,
int offSetTargetY,
Color color,
int shift)
source - from this source.target - to this target.offSetSourceX - move the X coordinates of the sourceoffSetSourceY - move the Y coordinates of the sourceoffSetTargetX - move the X coordinates of the targetoffSetTargetY - move the Y coordinates of the targetcolor - whith this colorshift - whith this shift| Method Detail |
public void setOffsetAxis(int v)
v - the distancepublic void setOffsetNormal(int v)
v - the distancepublic Point getCenterArrow()
public void setVisibleArrow(boolean b)
b - a boolean.public void paint(Graphics g)
paint in class Linkg - the graphic object.
public boolean contains(int x,
int y)
contains in class Linkx - the x coordinatey - the y coordinate
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||