Documentation of 'japlot.jaxodraw.JaxoStaticCanvasMethods' Java class
JaxoStaticCanvasMethods
japlot.jaxodraw

Class JaxoStaticCanvasMethods



  • public final class JaxoStaticCanvasMethods
    extends java.lang.Object
    A utility class that collects static methods used in the Canvas.
    • 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

You see the box below because you did not login.