public class LineSegment extends AbstractShape
EPS, EPSSQR, moebiusShapeChangeSupport, propertyChangeSupport, toolList
Constructor and Description |
---|
LineSegment() |
LineSegment(double theX0,
double theY0,
double theX1,
double theY1) |
Modifier and Type | Method and Description |
---|---|
void |
assign(double theX0,
double theY0,
double theX1,
double theY1) |
void |
draw(MoebiusGraphics g) |
double |
getX0()
Get the value of x0.
|
double |
getX1()
Get the value of x1.
|
double |
getY0()
Get the value of y0.
|
double |
getY1()
Get the value of y1.
|
void |
setX0(double v)
Set the value of x0.
|
void |
setX1(double v)
Set the value of x1.
|
void |
setY0(double v)
Set the value of y0.
|
void |
setY1(double v)
Set the value of y1.
|
String |
toString() |
addMoebiusShapeChangeListener, addPropertyChangeListener, clone, dontFirePropertyChange, equals, fireMoebiusShapeChange, fireMoebiusShapeChange, firePropertyChange, firePropertyChange, getColor, getFilled, getLabel, getLineWidth, getPickable, getPointOutline, getPointRadius, getShowLabel, getString, getTools, isDoFirePropertyChange, isPickable, removeMoebiusShapeChangeListener, removePropertyChangeListener, reset, setColor, setDoFirePropertyChange, setFilled, setLabel, setLineWidth, setPickable, setPointOutline, setPointRadius, setShowLabel
public LineSegment()
public LineSegment(double theX0, double theY0, double theX1, double theY1)
public void assign(double theX0, double theY0, double theX1, double theY1)
public void draw(MoebiusGraphics g)
draw
in interface MoebiusShape
draw
in class AbstractShape
public double getX0()
public double getX1()
public double getY0()
public double getY1()
public void setX0(double v)
v
- Value to assign to x0.public void setX1(double v)
v
- Value to assign to x1.public void setY0(double v)
v
- Value to assign to y0.public void setY1(double v)
v
- Value to assign to y1.