japlot
Class DrawUtils
- java.lang.Object
-
- japlot.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 voidarrowCoords(int x1, int y1, int x2, int y2, int x3, int y3)voidcalcCoords(int index, int x, int y, double dist, double dirn)voidcalcValues(int x1, int y1, int x2, int y2)voidcalcValuesQuad(int x1, int y1, int x2, int y2)voiddrawArrow(org.freehep.graphics2d.VectorGraphics g, int x1, int y1, int x2, int y2)voiddrawArrow2(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 voiddrawPointType(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).
-
-
-
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 constantg2- graphics 2D instancex- x-coordinate of the midpoint of the pointy- y-coordinate of the midpoint of the pointps- size of the point in pixels
-
-
DMelt 3.0 © DataMelt by jWork.ORG