public class Triangle extends FixedDrawingComponent
Modifier and Type | Field and Description |
---|---|
double |
x0 |
double |
x1 |
double |
x2 |
double |
y0 |
double |
y1 |
double |
y2 |
Constructor and Description |
---|
Triangle() |
Triangle(double ax0,
double ay0,
double ax1,
double ay1,
double ax2,
double ay2) |
Modifier and Type | Method and Description |
---|---|
void |
applyToShape(Shape shp) |
void |
instruct(Painter p,
double offx,
double offy,
double scale) |
copy, getColor, getFillColor, getWidth, isClosed, isFilled, isOpen, isWrapper, makeShape, parseColor, parseWidth, parseWidthStyle, reReference, setClosed, setColor, setFillColor, setFilled, setLineColor, setLineWidth, setOpen, setWidth, widthIsPixels
public double x0
public double y0
public double x1
public double y1
public double x2
public double y2
public Triangle()
public Triangle(double ax0, double ay0, double ax1, double ay1, double ax2, double ay2)
public void instruct(Painter p, double offx, double offy, double scale)
instruct
in class FixedDrawingComponent
public void applyToShape(Shape shp)
applyToShape
in class FixedDrawingComponent
Copyright © 2013. All Rights Reserved.