Class ArrowFactory
java.lang.Object
edu.uci.ics.jung.visualization.util.ArrowFactory
A utility class for creating arrowhead shapes.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic GeneralPath
getNotchedArrow
(float base, float height, float notch_height) Returns an arrowhead in the shape of an isosceles triangle with an isoceles-triangle notch taken out of the base, with the specified base and height measurements.static GeneralPath
getWedgeArrow
(float base, float height) Returns an arrowhead in the shape of a simple isosceles triangle with the specified base and height measurements.
-
Constructor Details
-
ArrowFactory
public ArrowFactory()
-
-
Method Details
-
getWedgeArrow
Returns an arrowhead in the shape of a simple isosceles triangle with the specified base and height measurements. It is placed with the vertical axis along the negative x-axis, with its base centered on (0,0).- Parameters:
base
- the width of the arrow's baseheight
- the arrow's height- Returns:
- a path in the form of an isosceles triangle with dimensions
(base, height)
-
getNotchedArrow
Returns an arrowhead in the shape of an isosceles triangle with an isoceles-triangle notch taken out of the base, with the specified base and height measurements. It is placed with the vertical axis along the negative x-axis, with its base centered on (0,0).- Parameters:
base
- the width of the arrow's baseheight
- the arrow's heightnotch_height
- the height of the arrow's notch- Returns:
- a path in the form of a notched isosceles triangle
-