public class StraightLine extends FixedDrawingComponent
Modifier and Type | Field and Description |
---|---|
double |
x0 |
double |
x1 |
double |
y0 |
double |
y1 |
Constructor and Description |
---|
StraightLine() |
StraightLine(double xa,
double ya,
double xb,
double yb) |
Modifier and Type | Method and Description |
---|---|
void |
applyToShape(Shape shp) |
void |
instruct(Painter p,
double offx,
double offy,
double scale) |
void |
scaleBy(double d) |
copy, getColor, getFillColor, getWidth, isClosed, isFilled, isOpen, isWrapper, makeShape, parseColor, parseWidth, parseWidthStyle, reReference, setClosed, setColor, setFillColor, setFilled, setLineColor, setLineWidth, setOpen, setWidth, widthIsPixels
public StraightLine()
public StraightLine(double xa, double ya, double xb, double yb)
public void instruct(Painter p, double offx, double offy, double scale)
instruct
in class FixedDrawingComponent
public void applyToShape(Shape shp)
applyToShape
in class FixedDrawingComponent
public void scaleBy(double d)
Copyright © 2013. All Rights Reserved.