e-Mohr v. 1.00

Class Arrow2D

java.lang.Object
  extended byArrow2D

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

Field Summary
protected  java.awt.geom.Line2D.Double line
           
 double pi
           
static int SIDE_BOTH
           
static int SIDE_LEAD
           
static int SIDE_LEAD_LEFT
           
static int SIDE_LEAD_RIGHT
           
static int SIDE_NONE
           
static int SIDE_TRAIL
           
static int SIDE_TRAIL_LEFT
           
static int SIDE_TRAIL_RIGHT
           
protected  java.awt.geom.Line2D.Double tip
           
 
Constructor Summary
Arrow2D()
           
 
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
 

Field Detail

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
Constructor Detail

Arrow2D

public Arrow2D()
Method Detail

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)

e-Mohr v. 1.00