Class MidArrowLineStyle

  • All Implemented Interfaces:
    Style

    public class MidArrowLineStyle
    extends SegmentStyle
    • Constructor Summary

      Constructors 
      Constructor Description
      MidArrowLineStyle​(java.awt.Color color)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void paint​(int index, java.awt.geom.Point2D p0, java.awt.geom.Point2D p1, int lineType, Viewport vp, java.awt.Graphics2D gr)  
      protected void paintMidpointArrow​(java.awt.geom.Point2D p0, java.awt.geom.Point2D p1, Viewport viewport, java.awt.Graphics2D graphics)  
      • Methods inherited from class java.lang.Object

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

      • MidArrowLineStyle

        public MidArrowLineStyle​(java.awt.Color color)
    • Method Detail

      • paint

        protected void paint​(int index,
                             java.awt.geom.Point2D p0,
                             java.awt.geom.Point2D p1,
                             int lineType,
                             Viewport vp,
                             java.awt.Graphics2D gr)
                      throws java.lang.Exception
        Specified by:
        paint in class SegmentStyle
        p0 - the origin of the line segment, in view space
        p1 - the termination of the line segment, in view space
        Throws:
        java.lang.Exception
      • paintMidpointArrow

        protected void paintMidpointArrow​(java.awt.geom.Point2D p0,
                                          java.awt.geom.Point2D p1,
                                          Viewport viewport,
                                          java.awt.Graphics2D graphics)
                                   throws java.awt.geom.NoninvertibleTransformException
        Throws:
        java.awt.geom.NoninvertibleTransformException