Class Arrow2D
java.lang.Object
Arrow2D
- public class Arrow2D
- extends java.lang.Object
Arrow2D.java - Desenho de uma seta usando Graphics2D.
Descrição:
===============================================================
Esta classe define um objeto para desenhar setas em canvas.
O código original foi obtido de
http://www.stat.vt.edu/~sundar/java/code/Arrow.html
e modificado.
===============================================================
- Version:
- 1.0 04/09/2004
- Author:
- Luiz Fernando Martha, Alonso Juvinao Carbono, Anderson Resende Pereira, Fernando Busato Ramires, Paôla Reginal Dalcanal, Ricardo Rodrigues de Araujo
|
Method Summary |
void |
DrawArrow(java.awt.Graphics2D g,
double xi,
double yi,
double alfa,
double length,
int side,
double beta,
double tip_length)
Draw Arrow |
protected void |
DrawTipArrow(java.awt.Graphics2D g,
double x1,
double y1,
double beta,
double tip_length)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SIDE_NONE
public static final int SIDE_NONE
- See Also:
- Constant Field Values
SIDE_LEAD
public static final int SIDE_LEAD
- See Also:
- Constant Field Values
SIDE_TRAIL
public static final int SIDE_TRAIL
- See Also:
- Constant Field Values
SIDE_BOTH
public static final int SIDE_BOTH
- See Also:
- Constant Field Values
SIDE_LEAD_LEFT
public static final int SIDE_LEAD_LEFT
- See Also:
- Constant Field Values
SIDE_LEAD_RIGHT
public static final int SIDE_LEAD_RIGHT
- See Also:
- Constant Field Values
SIDE_TRAIL_LEFT
public static final int SIDE_TRAIL_LEFT
- See Also:
- Constant Field Values
SIDE_TRAIL_RIGHT
public static final int SIDE_TRAIL_RIGHT
- See Also:
- Constant Field Values
pi
public final double pi
- See Also:
- Constant Field Values
line
protected java.awt.geom.Line2D.Double line
tip
protected java.awt.geom.Line2D.Double tip
Arrow2D
public Arrow2D()
DrawArrow
public void DrawArrow(java.awt.Graphics2D g,
double xi,
double yi,
double alfa,
double length,
int side,
double beta,
double tip_length)
- Draw Arrow
DrawTipArrow
protected void DrawTipArrow(java.awt.Graphics2D g,
double x1,
double y1,
double beta,
double tip_length)