japlot.jaxodraw
Class JaxoStaticCanvasMethods
- java.lang.Object
-
- japlot.jaxodraw.JaxoStaticCanvasMethods
-
public final class JaxoStaticCanvasMethods extends java.lang.ObjectA utility class that collects static methods used in the Canvas.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static JaObjectcreateNewObject(int type, int xin, int yin)Creates a new JaObject.static int[]getPoints()Returns the vector of points.static booleangetPointsON()Returns the pointsON property.static java.lang.String[]getSystemFonts()Returns a string array with all the fonts installed on the system.static JaObjectnewBlob(int xin, int yin)static JaObjectnewBox(int xin, int yin)static JaObjectnewFArc(int xin, int yin)static JaObjectnewFLine(int xin, int yin)static JaObjectnewFLoop(int xin, int yin)static JaObjectnewGArc(int xin, int yin)static JaObjectnewGlArc(int xin, int yin)static JaObjectnewGLine(int xin, int yin)static JaObjectnewGlLine(int xin, int yin)static JaObjectnewGlLoop(int xin, int yin)static JaObjectnewGLoop(int xin, int yin)static JaObjectnewLatexText(int xin, int yin)static JaObjectnewPArc(int xin, int yin)static JaObjectnewPLine(int xin, int yin)static JaObjectnewPLoop(int xin, int yin)static JaObjectnewPSText(int xin, int yin)static JaObjectnewSArc(int xin, int yin)static JaObjectnewSLine(int xin, int yin)static JaObjectnewSLoop(int xin, int yin)static JaObjectnewVertex(int xin, int yin)static JaObjectnewZigZagLine(int xin, int yin)static voidsetLanguage(java.util.ResourceBundle lang)Sets the language.static voidsetNofClicks(int clicks)Sets the number of clicks on the canvas (used for arcs).static voidsetPoints(int[] newPoints)Sets the vector of points (used for arcs).static voidsetPointsON(boolean on)Sets the pointsON property (used for arcs).static voidsetVertexType(int type)Sets the vertex type.
-
-
-
Method Detail
-
createNewObject
public static JaObject createNewObject(int type, int xin, int yin)
Creates a new JaObject.- Parameters:
type- The type of object to be created (defined in JaxoMainPanel).xin- The x-coordinate where the object will be created.yin- The y-coordinate where the object will be created.- Returns:
- A new JaObject.
-
setNofClicks
public static void setNofClicks(int clicks)
Sets the number of clicks on the canvas (used for arcs).- Parameters:
clicks- The number of clicks.
-
setLanguage
public static void setLanguage(java.util.ResourceBundle lang)
Sets the language.- Parameters:
lang- The current language.
-
setPoints
public static void setPoints(int[] newPoints)
Sets the vector of points (used for arcs).- Parameters:
newPoints- The vector of points.
-
setPointsON
public static void setPointsON(boolean on)
Sets the pointsON property (used for arcs).- Parameters:
on- The pointsON property.
-
setVertexType
public static void setVertexType(int type)
Sets the vertex type.- Parameters:
type- The type of vertex.
-
getSystemFonts
public static java.lang.String[] getSystemFonts()
Returns a string array with all the fonts installed on the system.- Returns:
- A string array with all the fonts installed on the system.
-
getPointsON
public static boolean getPointsON()
Returns the pointsON property.- Returns:
- The new pointsON property.
-
getPoints
public static int[] getPoints()
Returns the vector of points.- Returns:
- The new vector of points.
-
newBox
public static JaObject newBox(int xin, int yin)
-
newBlob
public static JaObject newBlob(int xin, int yin)
-
newVertex
public static JaObject newVertex(int xin, int yin)
-
newZigZagLine
public static JaObject newZigZagLine(int xin, int yin)
-
newPSText
public static JaObject newPSText(int xin, int yin)
-
newLatexText
public static JaObject newLatexText(int xin, int yin)
-
newPLine
public static JaObject newPLine(int xin, int yin)
-
newPArc
public static JaObject newPArc(int xin, int yin)
-
newPLoop
public static JaObject newPLoop(int xin, int yin)
-
newGlLine
public static JaObject newGlLine(int xin, int yin)
-
newGlArc
public static JaObject newGlArc(int xin, int yin)
-
newGlLoop
public static JaObject newGlLoop(int xin, int yin)
-
newFLine
public static JaObject newFLine(int xin, int yin)
-
newFLoop
public static JaObject newFLoop(int xin, int yin)
-
newFArc
public static JaObject newFArc(int xin, int yin)
-
newSLine
public static JaObject newSLine(int xin, int yin)
-
newSLoop
public static JaObject newSLoop(int xin, int yin)
-
newSArc
public static JaObject newSArc(int xin, int yin)
-
newGLine
public static JaObject newGLine(int xin, int yin)
-
newGLoop
public static JaObject newGLoop(int xin, int yin)
-
newGArc
public static JaObject newGArc(int xin, int yin)
-
-
DMelt 3.0 © DataMelt by jWork.ORG