com.objectwave.viewUtility
Class DrawRoutines
java.lang.Object
|
+--com.objectwave.viewUtility.DrawRoutines
- public class DrawRoutines
- extends java.lang.Object
- Version:
- $Id: DrawRoutines.java,v 2.1 2002/02/01 21:21:13 dave_hoag Exp $
- Author:
- trever
Method Summary |
static void |
drawArrowLine(java.awt.Graphics g,
DrawRoutines.ArrowSpec arrow)
|
static void |
drawLine(java.awt.Graphics g,
java.awt.Point origin,
java.awt.Point target,
int steps,
int initial)
|
static void |
fill_arrowhead(int x1,
int y1,
int x2,
int y2,
int arrow_head_len,
int arrow_head_angle,
double arrow_inset,
java.awt.Graphics g)
Draw a filled arrowhead polygon at the second end of the given line (this
does not draw the line). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HORIZONTAL
public static final int HORIZONTAL
- See Also:
- Constant Field Values
VERTICAL
public static final int VERTICAL
- See Also:
- Constant Field Values
DrawRoutines
public DrawRoutines()
drawLine
public static void drawLine(java.awt.Graphics g,
java.awt.Point origin,
java.awt.Point target,
int steps,
int initial)
- Parameters:
g
- origin
- target
- steps
- initial
-
fill_arrowhead
public static void fill_arrowhead(int x1,
int y1,
int x2,
int y2,
int arrow_head_len,
int arrow_head_angle,
double arrow_inset,
java.awt.Graphics g)
- Draw a filled arrowhead polygon at the second end of the given line (this
does not draw the line).
- Parameters:
x1
- y1
- x2
- y2
- arrow_head_len
- arrow_head_angle
- arrow_inset
- g
-
drawArrowLine
public static void drawArrowLine(java.awt.Graphics g,
DrawRoutines.ArrowSpec arrow)
- Parameters:
g
- arrow
-