|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.awt.Component
|
+--mascoptLib.gui.views.GObject
|
+--mascoptLib.gui.views.Link
A link graphical object.
| Field Summary | |
Color |
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 | |
Link(mascoptLib.gui.views.GObject source,
mascoptLib.gui.views.GObject target,
Color color)
Construct a link. |
|
Link(mascoptLib.gui.views.GObject source,
mascoptLib.gui.views.GObject target,
Color color,
int shift)
Construct a link. |
|
Link(mascoptLib.gui.views.GObject source,
mascoptLib.gui.views.GObject target,
int offSetSourceX,
int offSetSourceY,
int offSetTargetX,
int offSetTargetY,
Color color)
Construct a link. |
|
Link(mascoptLib.gui.views.GObject source,
mascoptLib.gui.views.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)
Say if this link is pointed by (x,y). |
Color |
getColor()
Returns the color of the link. |
int |
getShift()
Give the shift for this link. |
mascoptLib.gui.views.GObject |
getSource()
Return the source of the link. |
mascoptLib.gui.views.GObject |
getTarget()
Return the target of the link. |
void |
paint(Graphics g)
Repaint this link. |
void |
setColor(Color c)
Change the color of the link. |
void |
setLocation(int x,
int y)
Deprecated. not implemented ! |
void |
setShift(int s)
Change the shift between links. |
| 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 |
| Field Detail |
public Color color
| Constructor Detail |
public Link(mascoptLib.gui.views.GObject source,
mascoptLib.gui.views.GObject target,
Color color)
source - from this source.target - to this target.color - with this color.
public Link(mascoptLib.gui.views.GObject source,
mascoptLib.gui.views.GObject target,
Color color,
int shift)
source - from this source.target - to this target.color - with this color.shift - with this shift.
public Link(mascoptLib.gui.views.GObject source,
mascoptLib.gui.views.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 Link(mascoptLib.gui.views.GObject source,
mascoptLib.gui.views.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 setLocation(int x,
int y)
setLocation in class Componentx - y - public mascoptLib.gui.views.GObject getSource()
public mascoptLib.gui.views.GObject getTarget()
public boolean contains(int x,
int y)
contains in class Componentx - the x coordinatey - the y coordinate
public void setColor(Color c)
c - the color.public Color getColor()
public void setShift(int s)
s - the distance in pixels.public int getShift()
public void paint(Graphics g)
paint in class Componentg - the graphic.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||