facets.util.geom
Class Line

java.lang.Object
  extended by facets.util.geom.Line
All Implemented Interfaces:
Identified, java.io.Serializable

public class Line
extends java.lang.Object
implements java.io.Serializable, Identified

Abstract 2D line.

See Also:
Serialized Form

Field Summary
 Shade color
           
 Point from
           
 Point to
           
 
Constructor Summary
Line()
           
Line(double[] doubles)
           
Line(Point[] points)
           
Line(Point from, Point to)
           
Line(Point from, Point to, Shade color)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 int hashCode()
           
 java.lang.Object identity()
          Return an object that is as far as possible unique for the implementation.
 double length()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

from

public final Point from

to

public final Point to

color

public Shade color
Constructor Detail

Line

public Line(double[] doubles)

Line

public Line(Point[] points)

Line

public Line()

Line

public Line(Point from,
            Point to)

Line

public Line(Point from,
            Point to,
            Shade color)
Method Detail

length

public double length()

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

identity

public java.lang.Object identity()
Description copied from interface: Identified
Return an object that is as far as possible unique for the implementation.

This will usually be a class instance counter.

Specified by:
identity in interface Identified