Class VisibleObject
- java.lang.Object
-
- com.cosylab.vdct.graphics.objects.VisibleObject
-
-
Constructor Summary
Constructors Constructor Description VisibleObject(ContainerObject parent)Insert the method's description here.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voiddestroy()Insert the method's description here.protected abstract voiddraw(Graphics g, boolean hilited)Insert the method's description here.voidforceValidation()Insert the method's description here.ColorgetColor()Insert the method's description here.ObjectgetDsId()FontgetFont()Insert the method's description here.abstract StringgetHashID()Insert the method's description here.intgetHeight()Insert the method's description here.StringgetLabel()Insert the method's description here.intgetLeftOffset()Returns the offset in pixels(the length of additional objects (arrows, strings) drawn on the left side of this object.intgetMarkedX()intgetMarkedY()PointgetMoveInsideView()Returns ths smallest vector (dX, dY), which would move this inside the view defined by ViewState.ContainerObjectgetParent()Insert the method's description here.intgetRheight()Insert the method's description here.intgetRightOffset()Returns the offset in pixels(the length of additional objects (arrows, strings) drawn on the right side of this object.intgetRlabelX()Insert the method's description here.intgetRlabelY()Insert the method's description here.ContainerObjectgetRootContainer()doublegetRscale()Insert the method's description here.intgetRwidth()Insert the method's description here.intgetRx()Insert the method's description here.intgetRy()Insert the method's description here.doublegetScale()Insert the method's description here.intgetTopOffset()Returns the offset in pixels(the length of additional objects (arrows, strings) drawn above this object.ColorgetVisibleColor()intgetWidth()Insert the method's description here.intgetX()Insert the method's description here.intgetY()Insert the method's description here.VisibleObjectintersects(int px, int py)Default impmlementation for square (must be rescaled) Creation date: (19.12.2000 20:20:20)VisibleObjectintersects(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)booleanisDestroyed()Insert the method's description here.booleanisVisible()Insert the method's description here.booleanisZoomRepaint()Returns true if the object is being repainted as blown up on small zoom.voidmarkPosition()Mark (remeber) current position.voidpaint(Graphics g, boolean hilited)Insert the method's description here.protected voidpostDraw(Graphics g, boolean hilited)Insert the method's description here.voidpostPaint(Graphics g, boolean hilited)Insert the method's description here.abstract voidrevalidatePosition()Insert the method's description here.voidsetColor(Color newColor)Insert the method's description here.voidsetDestroyed(boolean newDestroyed)Insert the method's description here.voidsetFont(Font newFont)Insert the method's description here.voidsetHeight(int newHeight)Insert the method's description here.voidsetLabel(String newLabel)Insert the method's description here.voidsetParent(ContainerObject newParent)Insert the method's description here.voidsetRheight(int newRheight)Insert the method's description here.voidsetRlabelX(int newRlabelX)Insert the method's description here.voidsetRlabelY(int newRlabelY)Insert the method's description here.voidsetRwidth(int newRwidth)Insert the method's description here.voidsetRx(int newRx)Insert the method's description here.voidsetRy(int newRy)Insert the method's description here.voidsetScale(double newScale)Insert the method's description here.voidsetWidth(int newWidth)Insert the method's description here.voidsetX(int newX)Insert the method's description here.voidsetY(int newY)Insert the method's description here.voidsetZoomRepaint(boolean zoomRepaint)voidsnapToGrid()Snap to grid.voidunconditionalValidation()Insert the method's description here.protected abstract voidvalidate()Insert the method's description here.
-
-
-
Field Detail
-
x
protected int x
-
y
protected int y
-
zoomImage
protected Image zoomImage
-
-
Constructor Detail
-
VisibleObject
public VisibleObject(ContainerObject parent)
Insert the method's description here. Creation date: (21.12.2000 20:40:53)- Parameters:
parent- com.cosylab.vdct.graphics.objects.ContainerObject
-
-
Method Detail
-
destroy
public void destroy()
Insert the method's description here. Creation date: (30.1.2001 11:58:53)
-
draw
protected abstract void draw(Graphics g, boolean hilited)
Insert the method's description here. Creation date: (19.12.2000 21:30:46)- Parameters:
g- java.awt.Graphicshilited- boolean
-
postDraw
protected void postDraw(Graphics g, boolean hilited)
Insert the method's description here. Creation date: (19.12.2000 21:30:46)- Parameters:
g- java.awt.Graphicshilited- boolean
-
forceValidation
public void forceValidation()
Insert the method's description here. Creation date: (25.4.2001 17:56:23)
-
getColor
public Color getColor()
Insert the method's description here. Creation date: (19.12.2000 20:10:52)- Returns:
- java.awt.Color
-
getVisibleColor
public Color getVisibleColor()
- Returns:
- something
-
getFont
public Font getFont()
Insert the method's description here. Creation date: (19.12.2000 20:10:52)- Returns:
- java.awt.Font
-
getHashID
public abstract String getHashID()
Insert the method's description here. Creation date: (3.5.2001 16:40:00)- Returns:
- java.lang.String
-
getHeight
public int getHeight()
Insert the method's description here. Creation date: (19.12.2000 20:10:52)- Returns:
- int
-
getLabel
public String getLabel()
Insert the method's description here. Creation date: (19.12.2000 20:10:52)- Returns:
- java.lang.String
-
getParent
public ContainerObject getParent()
Insert the method's description here. Creation date: (21.12.2000 20:41:46)- Returns:
- com.cosylab.vdct.graphics.objects.ContainerObject
-
getRheight
public int getRheight()
Insert the method's description here. Creation date: (25.4.2001 17:13:50)- Returns:
- int
-
getRlabelX
public int getRlabelX()
Insert the method's description here. Creation date: (25.4.2001 17:13:50)- Returns:
- int
-
getRlabelY
public int getRlabelY()
Insert the method's description here. Creation date: (25.4.2001 17:13:50)- Returns:
- int
-
getRscale
public double getRscale()
Insert the method's description here. Creation date: (19.12.2000 20:10:52)- Returns:
- double
-
getRwidth
public int getRwidth()
Insert the method's description here. Creation date: (25.4.2001 17:13:50)- Returns:
- int
-
getRx
public int getRx()
Insert the method's description here. Creation date: (25.4.2001 17:13:50)- Returns:
- int
-
getRy
public int getRy()
Insert the method's description here. Creation date: (25.4.2001 17:13:50)- Returns:
- int
-
getScale
public double getScale()
Insert the method's description here. Creation date: (19.12.2000 20:10:52)- Returns:
- double
-
getWidth
public int getWidth()
Insert the method's description here. Creation date: (19.12.2000 20:10:52)- Returns:
- int
-
getX
public int getX()
Insert the method's description here. Creation date: (19.12.2000 20:10:52)- Returns:
- int
-
getY
public int getY()
Insert the method's description here. Creation date: (19.12.2000 20:10:52)- Returns:
- int
-
intersects
public VisibleObject intersects(int px, int py)
Default impmlementation for square (must be rescaled) Creation date: (19.12.2000 20:20:20)- 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)- Parameters:
p1x- intp1y- intp2x- intp2y- int- Returns:
- com.cosylab.visible.objects.VisibleObject
-
isDestroyed
public boolean isDestroyed()
Insert the method's description here. Creation date: (5.5.2001 18:02:09)- Returns:
- boolean
-
paint
public void paint(Graphics g, boolean hilited)
Insert the method's description here. Creation date: (19.12.2000 21:33:47)- Parameters:
g- java.awt.Graphicshilited- boolean
-
postPaint
public void postPaint(Graphics g, boolean hilited)
Insert the method's description here. Creation date: (19.12.2000 21:33:47)- Parameters:
g- java.awt.Graphicshilited- boolean
-
revalidatePosition
public abstract void revalidatePosition()
Insert the method's description here. Creation date: (21.12.2000 21:21:59)
-
setColor
public void setColor(Color newColor)
Insert the method's description here. Creation date: (19.12.2000 20:10:52)- Parameters:
newColor- java.awt.Color
-
setDestroyed
public void setDestroyed(boolean newDestroyed)
Insert the method's description here. Creation date: (5.5.2001 18:02:09)- Parameters:
newDestroyed- boolean
-
setFont
public void setFont(Font newFont)
Insert the method's description here. Creation date: (19.12.2000 20:10:52)- Parameters:
newFont- java.awt.Font
-
setHeight
public void setHeight(int newHeight)
Insert the method's description here. Creation date: (19.12.2000 20:10:52)- Parameters:
newHeight- int
-
setLabel
public void setLabel(String newLabel)
Insert the method's description here. Creation date: (19.12.2000 20:10:52)- Parameters:
newLabel- java.lang.String
-
setParent
public void setParent(ContainerObject newParent)
Insert the method's description here. Creation date: (21.12.2000 20:41:46)- Parameters:
newParent- com.cosylab.vdct.graphics.objects.ContainerObject
-
setRheight
public void setRheight(int newRheight)
Insert the method's description here. Creation date: (25.4.2001 17:13:50)- Parameters:
newRheight- int
-
setRlabelX
public void setRlabelX(int newRlabelX)
Insert the method's description here. Creation date: (25.4.2001 17:13:50)- Parameters:
newRlabelX- int
-
setRlabelY
public void setRlabelY(int newRlabelY)
Insert the method's description here. Creation date: (25.4.2001 17:13:50)- Parameters:
newRlabelY- int
-
setRwidth
public void setRwidth(int newRwidth)
Insert the method's description here. Creation date: (25.4.2001 17:13:50)- Parameters:
newRwidth- int
-
setRx
public void setRx(int newRx)
Insert the method's description here. Creation date: (25.4.2001 17:13:50)- Parameters:
newRx- int
-
setRy
public void setRy(int newRy)
Insert the method's description here. Creation date: (25.4.2001 17:13:50)- Parameters:
newRy- int
-
setScale
public void setScale(double newScale)
Insert the method's description here. Creation date: (19.12.2000 20:10:52)- Parameters:
newScale- double
-
setWidth
public void setWidth(int newWidth)
Insert the method's description here. Creation date: (19.12.2000 20:10:52)- Parameters:
newWidth- int
-
setX
public void setX(int newX)
Insert the method's description here. Creation date: (19.12.2000 20:10:52)- Parameters:
newX- int
-
setY
public void setY(int newY)
Insert the method's description here. Creation date: (19.12.2000 20:10:52)- Parameters:
newY- int
-
unconditionalValidation
public void unconditionalValidation()
Insert the method's description here. Creation date: (25.4.2001 17:56:23)
-
validate
protected abstract void validate()
Insert the method's description here. Creation date: (19.12.2000 21:31:15)
-
isVisible
public boolean isVisible()
Insert the method's description here. Creation date: (30.1.2001 16:58:58)- Returns:
- boolean
-
snapToGrid
public void snapToGrid()
Snap to grid. Nearest point is taken.
-
markPosition
public void markPosition()
Mark (remeber) current position.
-
getMarkedX
public int getMarkedX()
- Returns:
- Returns the markedX.
-
getMarkedY
public int getMarkedY()
- Returns:
- Returns the markedY.
-
setZoomRepaint
public void setZoomRepaint(boolean zoomRepaint)
- Parameters:
zoomRepaint- zoomRepaint
-
isZoomRepaint
public boolean isZoomRepaint()
Returns true if the object is being repainted as blown up on small zoom.- Returns:
- something
-
getLeftOffset
public int getLeftOffset()
Returns the offset in pixels(the length of additional objects (arrows, strings) drawn on the left side of this object.- Returns:
- something
-
getRightOffset
public int getRightOffset()
Returns the offset in pixels(the length of additional objects (arrows, strings) drawn on the right side of this object.- Returns:
- something
-
getTopOffset
public int getTopOffset()
Returns the offset in pixels(the length of additional objects (arrows, strings) drawn above this object.- Returns:
- something
-
getMoveInsideView
public Point getMoveInsideView()
Returns ths smallest vector (dX, dY), which would move this inside the view defined by ViewState.- Returns:
- something
-
getRootContainer
public ContainerObject getRootContainer()
- Returns:
- something
-
getDsId
public Object getDsId()
- Returns:
- something
-
-