moebiusViewer.shape
Class LineSegment

java.lang.Object
  extended bymoebiusViewer.shape.AbstractShape
      extended bymoebiusViewer.shape.LineSegment
All Implemented Interfaces:
java.lang.Cloneable, MoebiusShape, java.io.Serializable

public class LineSegment
extends AbstractShape

See Also:
Serialized Form

Field Summary
 
Fields inherited from class moebiusViewer.shape.AbstractShape
EPS, EPSSQR, propertyChangeSupport, toolList
 
Constructor Summary
LineSegment()
           
LineSegment(double theX0, double theY0, double theX1, double theY1)
           
 
Method Summary
 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 set(double theX0, double theY0, double theX1, double theY1)
          Deprecated.  
 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.
 java.lang.String toString()
           
 
Methods inherited from class moebiusViewer.shape.AbstractShape
addPropertyChangeListener, clone, dontFirePropertyChange, equals, firePropertyChange, firePropertyChange, getColor, getFilled, getLabel, getLineWidth, getPickable, getPointOutline, getPointRadius, getShowLabel, getString, getTools, isDoFirePropertyChange, isPickable, removePropertyChangeListener, reset, setColor, setDoFirePropertyChange, setFilled, setLabel, setLineWidth, setPickable, setPointOutline, setPointRadius, setShowLabel
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LineSegment

public LineSegment(double theX0,
                   double theY0,
                   double theX1,
                   double theY1)

LineSegment

public LineSegment()
Method Detail

getX0

public double getX0()
Get the value of x0.

Returns:
Value of x0.

setX0

public void setX0(double v)
Set the value of x0.

Parameters:
v - Value to assign to x0.

getX1

public double getX1()
Get the value of x1.

Returns:
Value of x1.

setX1

public void setX1(double v)
Set the value of x1.

Parameters:
v - Value to assign to x1.

getY0

public double getY0()
Get the value of y0.

Returns:
Value of y0.

setY0

public void setY0(double v)
Set the value of y0.

Parameters:
v - Value to assign to y0.

getY1

public double getY1()
Get the value of y1.

Returns:
Value of y1.

setY1

public void setY1(double v)
Set the value of y1.

Parameters:
v - Value to assign to y1.

set

public void set(double theX0,
                double theY0,
                double theX1,
                double theY1)
Deprecated.  


assign

public void assign(double theX0,
                   double theY0,
                   double theX1,
                   double theY1)

draw

public void draw(MoebiusGraphics g)
Specified by:
draw in interface MoebiusShape
Overrides:
draw in class AbstractShape

toString

public java.lang.String toString()