|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.cosylab.vdct.graphics.objects.VisibleObject
public abstract class VisibleObject
Insert the type's description here. Creation date: (19.12.2000 19:56:38)
Field Summary | |
---|---|
protected int |
x
|
protected int |
y
|
protected java.awt.Image |
zoomImage
|
Constructor Summary | |
---|---|
VisibleObject(ContainerObject parent)
Insert the method's description here. |
Method Summary | |
---|---|
void |
destroy()
Insert the method's description here. |
protected abstract void |
draw(java.awt.Graphics g,
boolean hilited)
Insert the method's description here. |
void |
forceValidation()
Insert the method's description here. |
java.awt.Color |
getColor()
Insert the method's description here. |
java.lang.Object |
getDsId()
|
java.awt.Font |
getFont()
Insert the method's description here. |
abstract java.lang.String |
getHashID()
Insert the method's description here. |
int |
getHeight()
Insert the method's description here. |
java.lang.String |
getLabel()
Insert the method's description here. |
int |
getLeftOffset()
Returns the offset in pixels(the length of additional objects (arrows, strings) drawn on the left side of this object. |
int |
getMarkedX()
|
int |
getMarkedY()
|
java.awt.Point |
getMoveInsideView()
Returns ths smallest vector (dX, dY), which would move this inside the view defined by ViewState. |
ContainerObject |
getParent()
Insert the method's description here. |
int |
getRheight()
Insert the method's description here. |
int |
getRightOffset()
Returns the offset in pixels(the length of additional objects (arrows, strings) drawn on the right side of this object. |
int |
getRlabelX()
Insert the method's description here. |
int |
getRlabelY()
Insert the method's description here. |
ContainerObject |
getRootContainer()
|
double |
getRscale()
Insert the method's description here. |
int |
getRwidth()
Insert the method's description here. |
int |
getRx()
Insert the method's description here. |
int |
getRy()
Insert the method's description here. |
double |
getScale()
Insert the method's description here. |
int |
getTopOffset()
Returns the offset in pixels(the length of additional objects (arrows, strings) drawn above this object. |
java.awt.Color |
getVisibleColor()
|
int |
getWidth()
Insert the method's description here. |
int |
getX()
Insert the method's description here. |
int |
getY()
Insert the method's description here. |
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 |
isDestroyed()
Insert the method's description here. |
boolean |
isVisible()
Insert the method's description here. |
boolean |
isZoomRepaint()
Returns true if the object is being repainted as blown up on small zoom. |
void |
markPosition()
Mark (remeber) current position. |
void |
paint(java.awt.Graphics g,
boolean hilited)
Insert the method's description here. |
protected void |
postDraw(java.awt.Graphics g,
boolean hilited)
Insert the method's description here. |
void |
postPaint(java.awt.Graphics g,
boolean hilited)
Insert the method's description here. |
abstract void |
revalidatePosition()
Insert the method's description here. |
void |
setColor(java.awt.Color newColor)
Insert the method's description here. |
void |
setDestroyed(boolean newDestroyed)
Insert the method's description here. |
void |
setFont(java.awt.Font newFont)
Insert the method's description here. |
void |
setHeight(int newHeight)
Insert the method's description here. |
void |
setLabel(java.lang.String newLabel)
Insert the method's description here. |
void |
setParent(ContainerObject newParent)
Insert the method's description here. |
void |
setRheight(int newRheight)
Insert the method's description here. |
void |
setRlabelX(int newRlabelX)
Insert the method's description here. |
void |
setRlabelY(int newRlabelY)
Insert the method's description here. |
void |
setRwidth(int newRwidth)
Insert the method's description here. |
void |
setRx(int newRx)
Insert the method's description here. |
void |
setRy(int newRy)
Insert the method's description here. |
void |
setScale(double newScale)
Insert the method's description here. |
void |
setWidth(int newWidth)
Insert the method's description here. |
void |
setX(int newX)
Insert the method's description here. |
void |
setY(int newY)
Insert the method's description here. |
void |
setZoomRepaint(boolean zoomRepaint)
|
void |
snapToGrid()
Snap to grid. |
void |
unconditionalValidation()
Insert the method's description here. |
protected abstract void |
validate()
Insert the method's description here. |
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.objects.Visitable |
---|
accept |
Field Detail |
---|
protected int x
protected int y
protected java.awt.Image zoomImage
Constructor Detail |
---|
public VisibleObject(ContainerObject parent)
parent
- com.cosylab.vdct.graphics.objects.ContainerObjectMethod Detail |
---|
public void destroy()
protected abstract void draw(java.awt.Graphics g, boolean hilited)
g
- java.awt.Graphicshilited
- booleanprotected void postDraw(java.awt.Graphics g, boolean hilited)
g
- java.awt.Graphicshilited
- booleanpublic void forceValidation()
public java.awt.Color getColor()
public java.awt.Color getVisibleColor()
public java.awt.Font getFont()
public abstract java.lang.String getHashID()
public int getHeight()
public java.lang.String getLabel()
public ContainerObject getParent()
public int getRheight()
public int getRlabelX()
public int getRlabelY()
public double getRscale()
public int getRwidth()
public int getRx()
public int getRy()
public double getScale()
public int getWidth()
public int getX()
public int getY()
public VisibleObject intersects(int px, int py)
px
- intpy
- int
public VisibleObject intersects(int p1x, int p1y, int p2x, int p2y)
p1x
- intp1y
- intp2x
- intp2y
- int
public boolean isDestroyed()
public void paint(java.awt.Graphics g, boolean hilited)
g
- java.awt.Graphicshilited
- booleanpublic void postPaint(java.awt.Graphics g, boolean hilited)
g
- java.awt.Graphicshilited
- booleanpublic abstract void revalidatePosition()
public void setColor(java.awt.Color newColor)
newColor
- java.awt.Colorpublic void setDestroyed(boolean newDestroyed)
newDestroyed
- booleanpublic void setFont(java.awt.Font newFont)
newFont
- java.awt.Fontpublic void setHeight(int newHeight)
newHeight
- intpublic void setLabel(java.lang.String newLabel)
newLabel
- java.lang.Stringpublic void setParent(ContainerObject newParent)
newParent
- com.cosylab.vdct.graphics.objects.ContainerObjectpublic void setRheight(int newRheight)
newRheight
- intpublic void setRlabelX(int newRlabelX)
newRlabelX
- intpublic void setRlabelY(int newRlabelY)
newRlabelY
- intpublic void setRwidth(int newRwidth)
newRwidth
- intpublic void setRx(int newRx)
newRx
- intpublic void setRy(int newRy)
newRy
- intpublic void setScale(double newScale)
newScale
- doublepublic void setWidth(int newWidth)
newWidth
- intpublic void setX(int newX)
newX
- intpublic void setY(int newY)
newY
- intpublic void unconditionalValidation()
protected abstract void validate()
public boolean isVisible()
public void snapToGrid()
public void markPosition()
public int getMarkedX()
public int getMarkedY()
public void setZoomRepaint(boolean zoomRepaint)
public boolean isZoomRepaint()
public int getLeftOffset()
public int getRightOffset()
public int getTopOffset()
public java.awt.Point getMoveInsideView()
public ContainerObject getRootContainer()
public java.lang.Object getDsId()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |