|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--physicon.graphLib.DrawerBase
Represents abstract Drawer object Drawers are responsible for painting GraphObjects
GraphObjectBase
Constructor Summary | |
DrawerBase()
|
Method Summary | |
boolean |
contains(java.awt.Point _pt)
Returns true if the given point is in the local rough rect of the current object. |
abstract void |
drawLocal(java.awt.Graphics g)
Must draw the current object to the given Graphics object. |
double |
getGlobalLevel()
Returns global Z - level of the current object. |
java.awt.Point |
getGlobalRefPoint()
Returns global reference point of the current object. |
abstract java.awt.Rectangle |
getLocalRoughRect()
Must return local rough rect of the current object. |
void |
reset()
Must clear the current object This function is called before the current object is to be updated |
void |
setGlobalLevel(double _d)
Sets Z - level to the current object |
void |
setGlobalRefPoint(java.awt.Point _pt)
Sets the global reference point to the current object |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public DrawerBase()
Method Detail |
public final double getGlobalLevel()
public void setGlobalLevel(double _d)
public final java.awt.Point getGlobalRefPoint()
GraphContainerBase
public final void setGlobalRefPoint(java.awt.Point _pt)
_pt
- - new global reference pointpublic boolean contains(java.awt.Point _pt)
_pt
- - given point. This point is in
the coordinate system of the current object.public abstract java.awt.Rectangle getLocalRoughRect()
public abstract void drawLocal(java.awt.Graphics g)
g
- - given Graphicspublic void reset()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |