public static class GralCanvasStorage.PolyLine extends GralCanvasStorage.FigureData
Modifier and Type | Field and Description |
---|---|
(package private) GralPoint |
lastPoint |
java.util.List<GralPoint> |
points |
int |
width |
color, name, nameId, paintWhat, variantMask
Constructor and Description |
---|
PolyLine(java.lang.String name,
GralColor color,
int width)
Constructor for free points add with
point(float, float)
Hint: use GralCanvasStorage.FigureDataSet#addPolyline(GralColor) instead this ctor. |
PolyLine(java.lang.String name,
java.util.List<GralPoint> points,
GralColor color) |
Modifier and Type | Method and Description |
---|---|
GralCanvasStorage.PolyLine |
dx(float dx) |
GralCanvasStorage.PolyLine |
dxy(float dx,
float dy) |
GralCanvasStorage.PolyLine |
dxyg(float dxy,
int degree) |
GralCanvasStorage.PolyLine |
dy(float dy) |
GralPoint |
lastPoint() |
GralCanvasStorage.PolyLine |
point(float x,
float y)
Adds a point, can be called as concatenation.
|
checkVariant, getImplData, setImplData, setVariantMask
public final java.util.List<GralPoint> points
public final int width
GralPoint lastPoint
public PolyLine(java.lang.String name, GralColor color, int width)
point(float, float)
Hint: use GralCanvasStorage.FigureDataSet#addPolyline(GralColor)
instead this ctor.name
- color
- public GralCanvasStorage.PolyLine point(float x, float y)
x
- Depending on setting on Figure it is grid unit, or relative inside the postion.y
- y counts from bottom to top, as for mathematically diagrams.
The point(0,0) is bottom left from a given GralPos
.public GralCanvasStorage.PolyLine dx(float dx)
public GralCanvasStorage.PolyLine dy(float dy)
public GralCanvasStorage.PolyLine dxy(float dx, float dy)
public GralCanvasStorage.PolyLine dxyg(float dxy, int degree)
public GralPoint lastPoint()