physicon.graphLib
Class ThickArrowDrawer

java.lang.Object
  |
  +--physicon.graphLib.DrawerBase
        |
        +--physicon.graphLib.ArrowDrawer
              |
              +--physicon.graphLib.ThickArrowDrawer

public class ThickArrowDrawer
extends ArrowDrawer

Represents abstract Drawer object Drawers are responsible for painting GraphObjects

See Also:
GraphObjectBase

Fields inherited from class physicon.graphLib.ArrowDrawer
beginPoint, endPoint
 
Constructor Summary
ThickArrowDrawer(java.awt.Color _c)
          The default constructor.
ThickArrowDrawer(java.awt.Color _bodyColor, java.awt.Color _borderColor, int _arrowWidth, int _arrowHeight, int _baseHeight)
          The constructor.
 
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 physicon.graphLib.DrawerBase
contains, getGlobalLevel, getGlobalRefPoint, setGlobalLevel, setGlobalRefPoint
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThickArrowDrawer

public ThickArrowDrawer(java.awt.Color _c)
The default constructor.

ThickArrowDrawer

public ThickArrowDrawer(java.awt.Color _bodyColor,
                        java.awt.Color _borderColor,
                        int _arrowWidth,
                        int _arrowHeight,
                        int _baseHeight)
The constructor.
Parameters:
_bodyColor. - The color of the internal part of the arrow.
_borderColor. - The color of the arrow's border.
_arrowWidth. - The width of the arrow. It is the dimension of the arrow itself, not the size of the vector. If the size of vector is grater than this param, the width of the arrow will be diminished.
_arrowHeight. - The size of the one half of the widest part of the arrow.
_baseHeight. - One half of the arrow's stick width.
Method Detail

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 ArrowDrawer

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 ArrowDrawer

reset

public void reset()
Clears the current object
Overrides:
reset in class ArrowDrawer