Class JxnSymbolPainter
- java.lang.Object
-
- JxnAbstractPainter
-
- JxnSymbolPainter
-
- All Implemented Interfaces:
KmgXYPainter
public class JxnSymbolPainter extends JxnAbstractPainter
Defines a symbol for display in aPlotFrame.
Example:plot(1+j).add( @JxnSymbolPainter( 3, 0.2, 0.8 ) )
-
-
Constructor Summary
Constructors Constructor Description JxnSymbolPainter(double x, double y)Defines an invisible placeholder (for scaling).JxnSymbolPainter(int type, double x, double y)Creates a symbol for display in aPlotFrameat position(x,y).JxnSymbolPainter(int type, double x, double y, double radius)SeeJxnSymbolPainter.JxnSymbolPainter(int type, double x, double y, double radius, Color symbolColor)SeeJxnSymbolPainter.JxnSymbolPainter(int type, double x, double y, int radius)SeeJxnSymbolPainter.JxnSymbolPainter(int type, double x, double y, int radius, Color symbolColor)SeeJxnSymbolPainter.JxnSymbolPainter(int type, double x, double y, Color symbolColor)SeeJxnSymbolPainter.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidpaint(KmgGraphicsScaler sk)Paints the graphical object (called internally).static intsetSize(int newSize)Changes the default size for symbols.-
Methods inherited from class JxnAbstractPainter
applyStroke, applyStroke, getKmgDoubleBounds, lw, plot, plot90, setColor, setIgnoreBounds, setIgnoreBounds, setLineWidth, setLineWidthDefault, setStroke
-
-
-
-
Constructor Detail
-
JxnSymbolPainter
public JxnSymbolPainter(int type, double x, double y)Creates a symbol for display in aPlotFrameat 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)SeeJxnSymbolPainter.
-
JxnSymbolPainter
public JxnSymbolPainter(int type, double x, double y, int radius)SeeJxnSymbolPainter.- 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)SeeJxnSymbolPainter.
-
JxnSymbolPainter
public JxnSymbolPainter(int type, double x, double y, double radius)SeeJxnSymbolPainter.- 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)SeeJxnSymbolPainter.
-
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:KmgXYPainterPaints the graphical object (called internally).
-
-