physicon.graphLib
Class ComponentGraphContainer
java.lang.Object
|
+--physicon.graphLib.GraphContainerBase
|
+--physicon.graphLib.ComponentGraphContainer
- public class ComponentGraphContainer
- extends GraphContainerBase
- implements java.lang.Runnable
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 |
ComponentGraphContainer
public ComponentGraphContainer(GraphContextBase context,
java.awt.Component comp,
int x,
int y,
int w,
int h)
setBgColor
public final void setBgColor(java.awt.Color c)
isInContainer
public boolean isInContainer(GraphElementBase element)
elementAt
public GraphElementBase elementAt(java.awt.Point pt)
allElementsAt
public java.util.Vector allElementsAt(java.awt.Point pt)
elementAt
public GraphElementBase elementAt(DoublePoint dpt)
allElementsAt
public java.util.Vector allElementsAt(DoublePoint dpt)
showElement
public final void showElement(GraphElementInterface element,
boolean show)
- Overrides:
- showElement in class GraphContainerBase
showScale
public final void showScale(GraphElementInterface element,
boolean show)
- Overrides:
- showScale in class GraphContainerBase
invalidate
public void invalidate(GraphElementBase element)
invalidate
public void invalidate()
setElementClipRect
public void setElementClipRect(java.awt.Rectangle rect)
paintComponent
public void paintComponent(java.awt.Graphics gr)
invalidateAll
public void invalidateAll()
- Overrides:
- invalidateAll in class GraphContainerBase
invalidateAll
public void invalidateAll(java.awt.Graphics g)
getComponent
public java.awt.Component getComponent()
- Overrides:
- getComponent in class GraphContainerBase
contains
public boolean contains(DoublePoint dpt)
- Overrides:
- contains in class GraphContainerBase
startGE
public void startGE()
stopGE
public void stopGE()
run
public void run()
- Specified by:
- run in interface java.lang.Runnable
setMouseLabel
public void setMouseLabel(java.lang.String s,
int x,
int y)
drawGhostLine
public void drawGhostLine(java.awt.Point p1,
java.awt.Point p2,
java.awt.Rectangle clipRect)