jdsl.geomobj.ref
Class AbstractLinearCurve2D

java.lang.Object
  |
  +--jdsl.geomobj.ref.AbstractGeomObject2D
        |
        +--jdsl.geomobj.ref.AbstractLinearCurve2D
All Implemented Interfaces:
Curve2D, GeomObject, GeomObject2D, LinearCurve2D, OpenCurve2D
Direct Known Subclasses:
AbstractIntLinearCurve2D, AbstractRatLinearCurve2D, AbstractRealLinearCurve2D

public abstract class AbstractLinearCurve2D
extends AbstractGeomObject2D
implements LinearCurve2D

An abstract class extended by AbstractIntLinearCurve2D and AbstractRatLinearCurve2D.

Version:
$Id: AbstractLinearCurve2D.java,v 1.4 2001/05/16 13:44:56 lv Exp $
Author:
Luca Vismara (lv)

Inner classes inherited from class jdsl.geomobj.api.GeomObject2D
GeomObject2D.NoneGeomObject2D
 
Field Summary
protected  Point2D bottom_
           
protected static int INFINITE
           
protected  Point2D left_
           
protected static int NEGATIVE
           
protected static int POSITIVE
           
protected  Point2D right_
           
protected  int slope_
           
protected  Point2D top_
           
protected static int ZERO
           
 
Fields inherited from class jdsl.geomobj.ref.AbstractGeomObject2D
gt, jn
 
Fields inherited from interface jdsl.geomobj.api.GeomObject2D
NONE
 
Constructor Summary
AbstractLinearCurve2D()
           
 
Method Summary
 boolean isDecreasing()
           
 boolean isHorizontal()
           
 boolean isIncreasing()
           
 boolean isVertical()
           
 java.lang.String toString()
           
 
Methods inherited from class jdsl.geomobj.ref.AbstractGeomObject2D
dim
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface jdsl.geomobj.api.LinearCurve2D
direction
 
Methods inherited from interface jdsl.geomobj.api.OpenCurve2D
points
 
Methods inherited from interface jdsl.geomobj.api.GeomObject
arithmeticType, dim
 

Field Detail

NEGATIVE

protected static final int NEGATIVE

ZERO

protected static final int ZERO

POSITIVE

protected static final int POSITIVE

INFINITE

protected static final int INFINITE

slope_

protected int slope_

bottom_

protected Point2D bottom_

top_

protected Point2D top_

left_

protected Point2D left_

right_

protected Point2D right_
Constructor Detail

AbstractLinearCurve2D

public AbstractLinearCurve2D()
Method Detail

toString

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

isHorizontal

public boolean isHorizontal()
Specified by:
isHorizontal in interface LinearCurve2D
Following copied from interface: jdsl.geomobj.api.LinearCurve2D
Returns:
whether this is horizontal

isVertical

public boolean isVertical()
Specified by:
isVertical in interface LinearCurve2D
Following copied from interface: jdsl.geomobj.api.LinearCurve2D
Returns:
whether this is vertical

isIncreasing

public boolean isIncreasing()
Specified by:
isIncreasing in interface LinearCurve2D
Following copied from interface: jdsl.geomobj.api.LinearCurve2D
Returns:
whether this has a finite positive slope

isDecreasing

public boolean isDecreasing()
Specified by:
isDecreasing in interface LinearCurve2D
Following copied from interface: jdsl.geomobj.api.LinearCurve2D
Returns:
whether this has a finite negative slope