public class SegmentLine extends FixedDrawingComponent
Modifier and Type | Field and Description |
---|---|
private double[] |
p_wkx |
private double[] |
p_wky |
private double[] |
p_x |
private double[] |
p_y |
double[] |
xpts |
java.lang.String |
xyxy |
double[] |
ypts |
Constructor and Description |
---|
SegmentLine() |
SegmentLine(double[] ax,
double[] ay,
java.awt.Color c) |
Modifier and Type | Method and Description |
---|---|
void |
applyToShape(Shape shp) |
double[] |
getXPts() |
double[] |
getYPts() |
private void |
init() |
void |
instruct(Painter p,
double offx,
double offy,
double scale) |
void |
reReference() |
void |
scaleBy(double fac) |
void |
shift(double dx,
double dy) |
static SegmentLine |
unitBox() |
copy, getColor, getFillColor, getWidth, isClosed, isFilled, isOpen, isWrapper, makeShape, parseColor, parseWidth, parseWidthStyle, setClosed, setColor, setFillColor, setFilled, setLineColor, setLineWidth, setOpen, setWidth, widthIsPixels
public java.lang.String xyxy
public double[] xpts
public double[] ypts
private double[] p_x
private double[] p_y
private double[] p_wkx
private double[] p_wky
public SegmentLine()
public SegmentLine(double[] ax, double[] ay, java.awt.Color c)
public double[] getXPts()
public double[] getYPts()
public void instruct(Painter p, double offx, double offy, double scale)
instruct
in class FixedDrawingComponent
public void reReference()
reReference
in interface ReReferencable
reReference
in class FixedDrawingComponent
private void init()
public void shift(double dx, double dy)
public void scaleBy(double fac)
public void applyToShape(Shape shp)
applyToShape
in class FixedDrawingComponent
public static SegmentLine unitBox()
Copyright © 2013. All Rights Reserved.