org.das2.graph.Arrow

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


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 source