Class JxnGraphicsPainter
- java.lang.Object
-
- JxnAbstractPainter
-
- JxnGraphicsPainter
-
- All Implemented Interfaces:
KmgXYPainter
- Direct Known Subclasses:
JxnLine3DPainter
public class JxnGraphicsPainter extends JxnAbstractPainter
Defines a graphical object for display in aPlotFrame
.
Note: Other than the methods injava.awt.Graphics
the methods in this class define the objects by two arbitrary diagonal corners(x1,y1)
and(x2,y2)
.
Example:plot(2+j).
add
( @
JxnGraphicsPainter
( 2, 0.5, 1.5, 1.5, -0.5 ) )
-
-
Constructor Summary
Constructors Constructor Description JxnGraphicsPainter(int type, double x1, double y1, double x2, double y2)
Creates a graphical object for display in aPlotFrame
.JxnGraphicsPainter(int type, double x1, double y1, double x2, double y2, int var)
SeeJxnGraphicsPainter
.JxnGraphicsPainter(int type, double x1, double y1, double x2, double y2, int var, Color graphicsColor)
SeeJxnGraphicsPainter
.JxnGraphicsPainter(int type, double x1, double y1, double x2, double y2, Color graphicsColor)
SeeJxnGraphicsPainter
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
paint(KmgGraphicsScaler sk)
Paints the graphical object (called internally).-
Methods inherited from class JxnAbstractPainter
applyStroke, applyStroke, getKmgDoubleBounds, lw, plot, plot90, setColor, setIgnoreBounds, setIgnoreBounds, setLineWidth, setLineWidthDefault, setStroke
-
-
-
-
Constructor Detail
-
JxnGraphicsPainter
public JxnGraphicsPainter(int type, double x1, double y1, double x2, double y2)
Creates a graphical object for display in aPlotFrame
.- Parameters:
type
- 0 : drawLine | -1 : drawRect | 1 : fillRect | -2 : drawOval | 2 : fillOval
-
JxnGraphicsPainter
public JxnGraphicsPainter(int type, double x1, double y1, double x2, double y2, Color graphicsColor)
SeeJxnGraphicsPainter
.
-
JxnGraphicsPainter
public JxnGraphicsPainter(int type, double x1, double y1, double x2, double y2, int var)
SeeJxnGraphicsPainter
.- Parameters:
var
- reduces the size of the graphical object by var pixels at each side.
-
JxnGraphicsPainter
public JxnGraphicsPainter(int type, double x1, double y1, double x2, double y2, int var, Color graphicsColor)
SeeJxnGraphicsPainter
.
-
-
Method Detail
-
paint
public void paint(KmgGraphicsScaler sk)
Description copied from interface:KmgXYPainter
Paints the graphical object (called internally).
-
-