Documentation of 'japlot.DrawUtils' Java class
DrawUtils
japlot

Class DrawUtils



  • public class DrawUtils
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor and Description
      DrawUtils() 
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void arrowCoords(int x1, int y1, int x2, int y2, int x3, int y3) 
      void calcCoords(int index, int x, int y, double dist, double dirn) 
      void calcValues(int x1, int y1, int x2, int y2) 
      void calcValuesQuad(int x1, int y1, int x2, int y2) 
      void drawArrow(org.freehep.graphics2d.VectorGraphics g, int x1, int y1, int x2, int y2) 
      void drawArrow2(org.freehep.graphics2d.VectorGraphics g, int x1, int y1, int x2, int y2)
      Draw arrow this allows you to draw an arrow with headlength (headsize), headwidth (headsize - difference), hedheight (factor (relative to headlength)),
      static void drawPointType(int index, org.freehep.graphics2d.VectorGraphics g2, double _x, double _y, float ps)
      Draws a point-type corresponding to a symbolic constant, yielding values from 0 to NO_SYMBOL (==13).
      • Methods inherited from class java.lang.Object

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

      • DrawUtils

        public DrawUtils()
    • Method Detail

      • drawArrow

        public void drawArrow(org.freehep.graphics2d.VectorGraphics g,
                              int x1,
                              int y1,
                              int x2,
                              int y2)
      • calcValues

        public void calcValues(int x1,
                               int y1,
                               int x2,
                               int y2)
      • calcValuesQuad

        public void calcValuesQuad(int x1,
                                   int y1,
                                   int x2,
                                   int y2)
      • calcCoords

        public void calcCoords(int index,
                               int x,
                               int y,
                               double dist,
                               double dirn)
      • arrowCoords

        public void arrowCoords(int x1,
                                int y1,
                                int x2,
                                int y2,
                                int x3,
                                int y3)
      • drawArrow2

        public void drawArrow2(org.freehep.graphics2d.VectorGraphics g,
                               int x1,
                               int y1,
                               int x2,
                               int y2)
        Draw arrow this allows you to draw an arrow with headlength (headsize), headwidth (headsize - difference), hedheight (factor (relative to headlength)),
        Parameters:
        g -
        x1 -
        y1 -
        x2 -
        y2 -
      • drawPointType

        public static void drawPointType(int index,
                                         org.freehep.graphics2d.VectorGraphics g2,
                                         double _x,
                                         double _y,
                                         float ps)
        Draws a point-type corresponding to a symbolic constant, yielding values from 0 to NO_SYMBOL (==13).
        Parameters:
        index - symbolic constant
        g2 - graphics 2D instance
        x - x-coordinate of the midpoint of the point
        y - y-coordinate of the midpoint of the point
        ps - size of the point in pixels

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.