|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--physicon.graphLib.GraphElementBase
Represents the abstract Graph Element.
Constructor Summary | |
GraphElementBase(DrawerBase _drawer)
Constructor |
Method Summary | |
void |
addDependent(GraphElementBase element)
|
boolean |
contains(int x,
int y)
|
boolean |
contains(java.awt.Point point)
|
GraphContainerBase |
getContainer()
Returns the container of the object |
GraphContextBase |
getContext()
Returns GraphContextBase object converting its coordinates |
java.util.Vector |
getDepend()
|
DrawerBase |
getDrawer()
Returns drawer object fo rthe corrent object |
physicon.GraphEngine.GEObject |
getGEObject()
Updates the drawer object and returns it. |
GraphElementBase |
getGraphElement()
Following functions are used by this library and by GraphEngine one |
boolean |
getRedrawFlag()
Returns redraw flag |
DoublePoint |
getRefPoint()
returns refPoint for the current graphic element. |
DoubleRectangle |
getRoughRect()
Must return bounding Rectangle for the current graphic element. |
double |
getZLevel()
Returns current Z - level for the object |
boolean |
isCreated()
Returns true if element is created |
boolean |
isVisible()
|
void |
setDrawer(DrawerBase _drawer)
|
void |
setRedrawFlag(boolean flag)
Sets or clears the redraw flag |
void |
setRefPoint(DoublePoint _pt)
sets refPoint for the current graphic element. |
void |
setVisible(boolean flag)
|
void |
setZLevel(double _zLevel)
Sets Z - level for the object. |
void |
update()
Updates the object and the dependent object state. |
void |
updateDrawer()
This function must update the drawer object. |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public GraphElementBase(DrawerBase _drawer)
_drawer
- - drawer objectDrawerBase
Method Detail |
public final GraphContainerBase getContainer()
public final GraphContextBase getContext()
GraphContextBase
public final void setZLevel(double _zLevel)
_zLevel
- new Z - level for the object.
This parameter is
double to make easy insertion new objects before this one.public final double getZLevel()
public DoublePoint getRefPoint()
DoublePoint
public void setRefPoint(DoublePoint _pt)
_pt
- - New refPoint in logical coordinatespublic void addDependent(GraphElementBase element)
public java.util.Vector getDepend()
public DoubleRectangle getRoughRect()
public final GraphElementBase getGraphElement()
public DrawerBase getDrawer()
public void setDrawer(DrawerBase _drawer)
public void updateDrawer()
public void update()
public final physicon.GraphEngine.GEObject getGEObject()
public void setRedrawFlag(boolean flag)
flag
- - true if redraw flag
is to be set; false otherwisepublic final boolean getRedrawFlag()
public void setVisible(boolean flag)
public boolean isVisible()
public boolean isCreated()
public boolean contains(java.awt.Point point)
public boolean contains(int x, int y)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |