Documentation of 'edu.uci.ics.jung.visualization.util.ArrowFactory' Java class
ArrowFactory
edu.uci.ics.jung.visualization.util

Class ArrowFactory



  • public class ArrowFactory
    extends java.lang.Object
    A utility class for creating arrowhead shapes.
    • Constructor Summary

      Constructors 
      Constructor and Description
      ArrowFactory() 
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static java.awt.geom.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 java.awt.geom.GeneralPath getWedgeArrow(float base, float height)
      Returns an arrowhead in the shape of a simple isosceles triangle with the specified base and height measurements.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ArrowFactory

        public ArrowFactory()
    • Method Detail

      • getWedgeArrow

        public static java.awt.geom.GeneralPath getWedgeArrow(float base,
                                                              float height)
        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 base
        height - the arrow's height
        Returns:
        a path in the form of an isosceles triangle with dimensions (base, height)
      • getNotchedArrow

        public static java.awt.geom.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. 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 base
        height - the arrow's height
        notch_height - the height of the arrow's notch
        Returns:
        a path in the form of a notched isosceles triangle

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.