com.cosylab.vdct.graphics.objects
Class Vertex

java.lang.Object
  extended by com.cosylab.vdct.graphics.objects.VisibleObject
      extended by com.cosylab.vdct.graphics.objects.Vertex
All Implemented Interfaces:
Movable, Visitable, Popupable

public class Vertex
extends VisibleObject
implements Movable, Popupable

Author:
ssah To change this generated comment edit the template variable "typecomment": Window>Preferences>Java>Templates.

Field Summary
 
Fields inherited from class com.cosylab.vdct.graphics.objects.VisibleObject
x, y, zoomImage
 
Constructor Summary
Vertex(VisibleObject owner, int parX, int parY)
           
 
Method Summary
 void accept(Visitor visitor)
           
 boolean checkMove(int dx, int dy)
          Insert the method's description here.
protected  void draw(java.awt.Graphics g, boolean hilited)
          Insert the method's description here.
 java.lang.Object getDsId()
           
 java.lang.String getHashID()
          Insert the method's description here.
 java.util.Vector getItems()
          Insert the method's description here.
 ContainerObject getRootContainer()
           
 VisibleObject intersects(int px, int py)
          Default impmlementation for square (must be rescaled) Creation date: (19.12.2000 20:20:20)
 VisibleObject intersects(int p1x, int p1y, int p2x, int p2y)
          Default impmlementation for square (must be rescaled) p1 is upper-left point Creation date: (19.12.2000 20:20:20)
 boolean isHilited()
          Returns the hilited.
 boolean move(int dx, int dy)
          Insert the method's description here.
 void revalidatePosition()
          Insert the method's description here.
 void setX(int parX)
          Insert the method's description here.
 void setY(int parY)
          Insert the method's description here.
protected  void validate()
          Insert the method's description here.
 
Methods inherited from class com.cosylab.vdct.graphics.objects.VisibleObject
destroy, forceValidation, getColor, getFont, getHeight, getLabel, getLeftOffset, getMarkedX, getMarkedY, getMoveInsideView, getParent, getRheight, getRightOffset, getRlabelX, getRlabelY, getRscale, getRwidth, getRx, getRy, getScale, getTopOffset, getVisibleColor, getWidth, getX, getY, isDestroyed, isVisible, isZoomRepaint, markPosition, paint, postDraw, postPaint, setColor, setDestroyed, setFont, setHeight, setLabel, setParent, setRheight, setRlabelX, setRlabelY, setRwidth, setRx, setRy, setScale, setWidth, setZoomRepaint, snapToGrid, unconditionalValidation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.cosylab.vdct.graphics.popup.Popupable
getLabel
 

Constructor Detail

Vertex

public Vertex(VisibleObject owner,
              int parX,
              int parY)
Method Detail

accept

public void accept(Visitor visitor)
Specified by:
accept in interface Visitable
Parameters:
visitor - com.cosylab.vdct.graphics.objects.Visitor

checkMove

public boolean checkMove(int dx,
                         int dy)
Description copied from interface: Movable
Insert the method's description here. Creation date: (27.12.2000 13:08:09)

Specified by:
checkMove in interface Movable
Parameters:
dx - int
dy - int
Returns:
boolean

draw

protected void draw(java.awt.Graphics g,
                    boolean hilited)
Description copied from class: VisibleObject
Insert the method's description here. Creation date: (19.12.2000 21:30:46)

Specified by:
draw in class VisibleObject
Parameters:
g - java.awt.Graphics
hilited - boolean

getHashID

public java.lang.String getHashID()
Description copied from class: VisibleObject
Insert the method's description here. Creation date: (3.5.2001 16:40:00)

Specified by:
getHashID in class VisibleObject
Returns:
java.lang.String

getItems

public java.util.Vector getItems()
Description copied from interface: Popupable
Insert the method's description here. Creation date: (2.2.2001 20:26:25)

Specified by:
getItems in interface Popupable
Returns:
java.util.Vector

move

public boolean move(int dx,
                    int dy)
Description copied from interface: Movable
Insert the method's description here. Creation date: (25.12.2000 14:13:14)

Specified by:
move in interface Movable
Parameters:
dx - int
dy - int
Returns:
boolean

revalidatePosition

public void revalidatePosition()
Description copied from class: VisibleObject
Insert the method's description here. Creation date: (21.12.2000 21:21:59)

Specified by:
revalidatePosition in class VisibleObject

setX

public void setX(int parX)
Description copied from class: VisibleObject
Insert the method's description here. Creation date: (19.12.2000 20:10:52)

Overrides:
setX in class VisibleObject
Parameters:
parX - int

setY

public void setY(int parY)
Description copied from class: VisibleObject
Insert the method's description here. Creation date: (19.12.2000 20:10:52)

Overrides:
setY in class VisibleObject
Parameters:
parY - int

validate

protected void validate()
Description copied from class: VisibleObject
Insert the method's description here. Creation date: (19.12.2000 21:31:15)

Specified by:
validate in class VisibleObject

isHilited

public boolean isHilited()
Returns the hilited.

Returns:
boolean

intersects

public VisibleObject intersects(int px,
                                int py)
Default impmlementation for square (must be rescaled) Creation date: (19.12.2000 20:20:20)

Overrides:
intersects in class VisibleObject
Parameters:
px - int
py - int
Returns:
com.cosylab.visible.objects.VisibleObject

intersects

public VisibleObject intersects(int p1x,
                                int p1y,
                                int p2x,
                                int p2y)
Default impmlementation for square (must be rescaled) p1 is upper-left point Creation date: (19.12.2000 20:20:20)

Overrides:
intersects in class VisibleObject
Parameters:
p1x - int
p1y - int
p2x - int
p2y - int
Returns:
com.cosylab.visible.objects.VisibleObject

getRootContainer

public ContainerObject getRootContainer()
Overrides:
getRootContainer in class VisibleObject

getDsId

public java.lang.Object getDsId()
Overrides:
getDsId in class VisibleObject