physicon.graphLib
Class GraphContainer
java.lang.Object
|
+--physicon.graphLib.GraphContainerBase
|
+--physicon.graphLib.GraphContainer
- public class GraphContainer
- extends GraphContainerBase
Represents GraphEngine - bases
GraphContainer.
super abstract methods are rewritten.
- See Also:
GraphContainerBase
Methods inherited from class physicon.graphLib.GraphContainerBase |
addElement,
addScale,
elementAt,
elementsNumber,
getContext,
indexOfElement,
indexOfScale,
insertElementAt,
insertScaleAt,
realElementAt,
realScaleAt,
removeAllElements,
removeAllScales,
removeElement,
removeElementAt,
removeScale,
removeScaleAt,
scaleAt,
scalesNumber,
showAllElements,
showAllScales |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
GraphContainer
public GraphContainer(GraphContextBase _context,
int _fps,
java.awt.Component _cpt,
int _x,
int _y,
int _w,
int _h)
- Constructor.
- Parameters:
_context
- - the GraphContextBase object
used in this container_fps
- - desired repainting rate (frames per second)_cpt
- - current Component object. Used by GraphEngine
to access the Graphics object_x
- - the x coordinate of top left summit of the
container's rectangle_y
- - the y coordinate of top left summit of the
container's rectangle_w
- - the width of the container's rectangle_h
- - the height of the container's rectangle
GraphContainer
public GraphContainer(GraphContextBase _context,
physicon.GraphEngine.GraphicEngine _engine,
java.awt.Component _cpt)
showElement
public final void showElement(GraphElementInterface _element,
boolean _show)
- Overrides the abstract function of the super
class. To show element it is added to the GraphEngine.
To hide element it is removed from the GraphEngine.
- Parameters:
_element
- - element to be shown or hidden_show
- - true if the element is to be shown
false otherwise- Overrides:
- showElement in class GraphContainerBase
showScale
public final void showScale(GraphElementInterface _element,
boolean _show)
- Overrides the abstract function of the super
class. To show scale it is added to the GraphEngine.
To hide scale it is removed from the GraphEngine.
- Parameters:
_element
- - scale to be shown or hidden_show
- - true if the element is to be shown
false otherwise- Overrides:
- showScale in class GraphContainerBase
invalidateAll
public void invalidateAll()
- Invalidates GraphEngine.
- Overrides:
- invalidateAll in class GraphContainerBase
startGE
public void startGE()
- Starts GraphEngine
stopGE
public void stopGE()
- Stops GraphEngine
getComponent
public java.awt.Component getComponent()
- Returns the reference to the
current Componentobject
- Overrides:
- getComponent in class GraphContainerBase
contains
public boolean contains(DoublePoint _dpt)
- Overrides:
- contains in class GraphContainerBase