Class Vertex
- java.lang.Object
-
- com.cosylab.vdct.graphics.objects.VisibleObject
-
- com.cosylab.vdct.graphics.objects.Vertex
-
-
Field Summary
-
Fields inherited from class com.cosylab.vdct.graphics.objects.VisibleObject
x, y, zoomImage
-
-
Constructor Summary
Constructors Constructor Description Vertex(VisibleObject owner, int parX, int parY)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(Visitor visitor)
boolean
checkMove(int dx, int dy)
Insert the method's description here.protected void
draw(Graphics g, boolean hilited)
Insert the method's description here.Object
getDsId()
String
getHashID()
Insert the method's description here.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
-
-
-
-
Constructor Detail
-
Vertex
public Vertex(VisibleObject owner, int parX, int parY)
- Parameters:
owner
- ownerparX
- parXparY
- parY
-
-
Method Detail
-
accept
public void accept(Visitor 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)
-
draw
protected void draw(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 classVisibleObject
- Parameters:
g
- java.awt.Graphicshilited
- boolean
-
getHashID
public 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 classVisibleObject
- Returns:
- java.lang.String
-
getItems
public Vector getItems()
Description copied from interface:Popupable
Insert the method's description here. Creation date: (2.2.2001 20:26:25)
-
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)
-
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 classVisibleObject
-
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 classVisibleObject
- 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 classVisibleObject
- 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 classVisibleObject
-
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 classVisibleObject
- Parameters:
px
- intpy
- 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 classVisibleObject
- Parameters:
p1x
- intp1y
- intp2x
- intp2y
- int- Returns:
- com.cosylab.visible.objects.VisibleObject
-
getRootContainer
public ContainerObject getRootContainer()
- Overrides:
getRootContainer
in classVisibleObject
- Returns:
- something
-
getDsId
public Object getDsId()
- Overrides:
getDsId
in classVisibleObject
- Returns:
- something
-
-