|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrangesearch.RangeModel
A representation of the GUI document structure, including a set of points and a range.
Field Summary | |
protected javax.swing.event.EventListenerList |
m_listenerList
|
protected jdsl.core.api.Sequence |
m_points
|
protected jdsl.geomobj.api.Rectangle2D |
m_range
|
Constructor Summary | |
RangeModel()
|
Method Summary | |
void |
addModelChangedListener(ModelChangedListener l)
Adds a listener for the ModelChangedEvent. |
int |
addPoint(jdsl.geomobj.api.Point2D p)
Adds a point to the model. |
protected void |
fireModelChanged(int changed)
Notifies all listeners that the current tool has changed. |
void |
generatePoints(int numPoints,
int x1,
int y1,
int x2,
int y2)
|
int |
getNumPoints()
|
jdsl.geomobj.api.Point2D |
getPoint(int index)
|
Point2DIterator |
getPoints()
|
jdsl.geomobj.api.Rectangle2D |
getRange()
Returns the model's range. |
void |
load(java.io.StreamTokenizer st)
Reads the model from a text stream. |
void |
removeModelChangedListener(ModelChangedListener l)
Removes a listener for the ModelChangedEvent. |
void |
removePoint(int index)
Removes a point from the model. |
void |
save(java.io.Writer s)
Writes the model to a text stream. |
void |
setPoint(int index,
jdsl.geomobj.api.Point2D p)
Sets the point at the given index. |
void |
setPoints(jdsl.core.api.InspectableSequence points)
Sets the model's set of points. |
void |
setRange(jdsl.geomobj.api.Rectangle2D range)
Sets the model's range. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected jdsl.core.api.Sequence m_points
protected jdsl.geomobj.api.Rectangle2D m_range
protected javax.swing.event.EventListenerList m_listenerList
Constructor Detail |
public RangeModel()
Method Detail |
public void generatePoints(int numPoints, int x1, int y1, int x2, int y2)
public void setPoints(jdsl.core.api.InspectableSequence points)
public int addPoint(jdsl.geomobj.api.Point2D p)
public void setPoint(int index, jdsl.geomobj.api.Point2D p)
public void removePoint(int index)
public jdsl.geomobj.api.Point2D getPoint(int index)
public Point2DIterator getPoints()
public int getNumPoints()
public void setRange(jdsl.geomobj.api.Rectangle2D range)
public jdsl.geomobj.api.Rectangle2D getRange()
public void addModelChangedListener(ModelChangedListener l)
public void removeModelChangedListener(ModelChangedListener l)
protected void fireModelChanged(int changed)
public void save(java.io.Writer s) throws java.io.IOException
java.io.IOException
public void load(java.io.StreamTokenizer st) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |