Class JxnPolygonPainter
- java.lang.Object
-
- JxnAbstractPainter
-
- JxnPolygonPainter
-
- All Implemented Interfaces:
KmgXYPainter
public class JxnPolygonPainter extends JxnAbstractPainter
Defines a polygon for display in aPlotFrame
.
Example:plot
( @JxnPolygonPainter( 1, @
KmgDoublePolygon
().
add
( 0., 1. ).add( 0.866, -0.5 ).add( -0.866, -0.5 ) ) )
-
-
Constructor Summary
Constructors Constructor Description JxnPolygonPainter(int type, KmgDoublePolygon dp)
Creates a polygon for display in aPlotFrame
.JxnPolygonPainter(int type, KmgDoublePolygon dp, Color polygonColor)
SeeJxnPolygonPainter
.JxnPolygonPainter(KmgDoublePolygon dp, int type)
Deprecated.UseJxnPolygonPainter(int, KmgDoublePolygon)
instead.
-
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
-
JxnPolygonPainter
public JxnPolygonPainter(int type, KmgDoublePolygon dp)
Creates a polygon for display in aPlotFrame
.- Parameters:
type
- 0 : drawPolyline | -1 : drawPolygon | 1 : fillPolygondp
- values of the polygon
-
JxnPolygonPainter
public JxnPolygonPainter(int type, KmgDoublePolygon dp, Color polygonColor)
SeeJxnPolygonPainter
.
-
JxnPolygonPainter
public JxnPolygonPainter(KmgDoublePolygon dp, int type)
Deprecated.UseJxnPolygonPainter(int, KmgDoublePolygon)
instead.
-
-
Method Detail
-
paint
public void paint(KmgGraphicsScaler sk)
Description copied from interface:KmgXYPainter
Paints the graphical object (called internally).
-
-