## org.das2.graph.Arrow

An arrow component that lives on the canvas, and utility methods for drawing arrows.

## Arrow( org.das2.graph.DasCanvas c, java.awt.Point head, java.awt.Point tail )

## paintArrow

paintArrow( java.awt.Graphics2D g, java.awt.Point head, java.awt.Point tail, double headSize, org.das2.graph.Arrow.HeadStyle style ) → void

paint the arrow with the given thickness and head style.

### Parameters

g - the graphics context.
head - the point locating the head of the arrow
tail - the point locating the tail of the arrow
headSize - the size of the arrow head.
style - HeadStyle.DRAFTING, etc.

### Returns:

void (returns nothing)
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## paintArrow

paintArrow( java.awt.Graphics2D g, java.awt.geom.Point2D head, java.awt.geom.Point2D tail, double headSize, org.das2.graph.Arrow.HeadStyle style ) → void

paint the arrow with the given thickness and head style.

### Parameters

g - the graphics context.
head - the point locating the head of the arrow
tail - the point locating the tail of the arrow
headSize - the size of the arrow head in pixels
style - HeadStyle.DRAFTING, etc.

### Returns:

void (returns nothing)
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## resize

resize( ) → void

### Returns:

void (returns nothing)
[search for examples] [view on GitHub] [view on old javadoc] [view source]