physicon.graphLib
Class ArrowDrawer
java.lang.Object
|
+--physicon.graphLib.DrawerBase
|
+--physicon.graphLib.ArrowDrawer
- Direct Known Subclasses:
- ThickArrowDrawer
- public class ArrowDrawer
- extends DrawerBase
Represents abstract Drawer object
Drawers are responsible for painting
GraphObjects
- See Also:
GraphObjectBase
Method Summary |
void |
drawLocal(java.awt.Graphics g)
Must draw the current object to the given
Graphics object. |
java.awt.Rectangle |
getLocalRoughRect()
Must return local rough rect of the current
object. |
void |
reset()
Clears the current object |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
beginPoint
public java.awt.Point beginPoint
endPoint
public java.awt.Point endPoint
ArrowDrawer
public ArrowDrawer(java.awt.Color _c)
ArrowDrawer
public ArrowDrawer(java.awt.Color _c,
int _width,
int _height)
getLocalRoughRect
public java.awt.Rectangle getLocalRoughRect()
- Must return local rough rect of the current
object. This rect is in the coordinate system
of the current object
- Overrides:
- getLocalRoughRect in class DrawerBase
drawLocal
public void drawLocal(java.awt.Graphics g)
- Must draw the current object to the given
Graphics object. The object draws itself
in its coordinate system.
- Parameters:
g
- - given Graphics- Overrides:
- drawLocal in class DrawerBase
reset
public void reset()
- Clears the current object
- Overrides:
- reset in class DrawerBase