Class JxnSymbolPainter

    • Constructor Detail

      • JxnSymbolPainter

        public JxnSymbolPainter​(int type,
                                double x,
                                double y)
        Creates a symbol for display in a PlotFrame at position (x,y).
        Parameters:
        type - determines the type of the symbol: > 0 : fill | < 0 : draw
              0 : point | 1 : circle | 2 : square | 3 : rhomb
              triangle pointing: 4 : up | 5 : right | 6 : down | 7 : left
              8 : x(cross) | 9 : +(plus)
      • JxnSymbolPainter

        public JxnSymbolPainter​(int type,
                                double x,
                                double y,
                                Color symbolColor)
      • JxnSymbolPainter

        public JxnSymbolPainter​(int type,
                                double x,
                                double y,
                                int radius)
        Parameters:
        radius - size of the symbol in pixels. If < 0 the symbol is scaled with the size of the frame window.
      • JxnSymbolPainter

        public JxnSymbolPainter​(int type,
                                double x,
                                double y,
                                int radius,
                                Color symbolColor)
      • JxnSymbolPainter

        public JxnSymbolPainter​(int type,
                                double x,
                                double y,
                                double radius)
        Parameters:
        radius - size of the symbol in coordinate units. If < 0 the symbol stays undistorted.
      • JxnSymbolPainter

        public JxnSymbolPainter​(int type,
                                double x,
                                double y,
                                double radius,
                                Color symbolColor)
      • JxnSymbolPainter

        public JxnSymbolPainter​(double x,
                                double y)
        Defines an invisible placeholder (for scaling).
    • Method Detail

      • setSize

        public static int setSize​(int newSize)
        Changes the default size for symbols.
        Returns:
        old size
      • paint

        public void paint​(KmgGraphicsScaler sk)
        Description copied from interface: KmgXYPainter
        Paints the graphical object (called internally).