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

Constructor Summary
GraphContainer(GraphContextBase _context, physicon.GraphEngine.GraphicEngine _engine, java.awt.Component _cpt)
           
GraphContainer(GraphContextBase _context, int _fps, java.awt.Component _cpt, int _x, int _y, int _w, int _h)
          Constructor.
 
Method Summary
 boolean contains(DoublePoint _dpt)
           
 java.awt.Component getComponent()
          Returns the reference to the current Componentobject
 void invalidateAll()
          Invalidates GraphEngine.
 void showElement(GraphElementInterface _element, boolean _show)
          Overrides the abstract function of the super class.
 void showScale(GraphElementInterface _element, boolean _show)
          Overrides the abstract function of the super class.
 void startGE()
          Starts GraphEngine
 void stopGE()
          Stops GraphEngine
 
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
 

Constructor Detail

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)
Method Detail

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