All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class math.topol.Braid.CurveDiagram.Interval

java.lang.Object
   |
   +----math.topol.Braid.CurveDiagram.Interval

public class Interval
extends Object
implements Cloneable
Implements a list of CutPoints in an interval. Does not include the CutPoints which are endpoints of the interval.

Version:
$Id: Interval.java,v 1.6 1999/02/12 20:38:50 djun Exp djun $
Copyright (c)1998-1999 Djun Kim. The author reserves all rights.

Constructor Index

 o Interval(int)

Method Index

 o append(CutPoint)
Appends the given CutPoint to this Interval.
 o elements()
Returns an enumeration of the CutPoints in this interval.
 o lastElement()
Gets the last CutPoint in this Interval.
 o prepend(CutPoint)
 o remove(CutPoint)
Removes the given CutPoint from this Interval.
 o respace()
Recomputes the position of each CutPoint in the interval so that the points are equally spaced from each other and the interval endpoints.
 o reverse()
Reverse the order of elements in this interval.
 o toString()
Returns a String which represents this Interval.

Constructors

 o Interval
 public Interval(int anchor)

Methods

 o elements
 public Enumeration elements()
Returns an enumeration of the CutPoints in this interval.

 o remove
 public void remove(CutPoint del)
Removes the given CutPoint from this Interval.

 o append
 public void append(CutPoint point)
Appends the given CutPoint to this Interval.

 o lastElement
 public CutPoint lastElement()
Gets the last CutPoint in this Interval.

 o prepend
 public void prepend(CutPoint point)
 o reverse
 public void reverse()
Reverse the order of elements in this interval.

 o respace
 public void respace()
Recomputes the position of each CutPoint in the interval so that the points are equally spaced from each other and the interval endpoints.

 o toString
 public String toString()
Returns a String which represents this Interval.

Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index