|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgistoolkit.display.drawmodel.SimpleDrawModel
gistoolkit.display.drawmodel.SelectDrawModel
Super class for handling selections from the interface.
Field Summary | |
Record[] |
mySelectedRecords
These are the selected records. |
Fields inherited from class gistoolkit.display.drawmodel.SimpleDrawModel |
myCommand, myGISDisplay |
Constructor Summary | |
SelectDrawModel()
Creates new SelectDrawModel |
Method Summary | |
void |
add(SelectDrawModelListener inListener)
Adds the Listeners interest to events from this HighlightDrawModel. |
void |
draw()
Draw the selected records |
protected void |
fireRecordsDeselected(Record[] inRecords)
Notifies the listener that a record was Deselected. |
protected void |
fireRecordsSelected(Record[] inRecords)
Notifies the listener that a record was selected. |
protected Record |
getNear(Layer inLayer,
Point inPoint,
double inDistance)
Loops through the layer to find an object near this point |
Layer |
getSelectedLayer()
Get the currently selected layer |
Record[] |
getSelectedRecords()
Get the currently selected records. |
void |
remove(SelectDrawModelListener inListener)
Removes this listener from the list of listeners interested in events from this HighlightDrawModel. |
void |
reset()
Reset the display |
void |
setSelectedLayer(Layer inLayer)
Set the currently selected layer |
void |
setSelectedRecords(Record[] inSelectedRecords)
Set the currently selected records. |
void |
setSelectedRecordsNoNotify(Record[] inSelectedRecords)
Set the currently selected records, and do not notify the listeners of the event. |
Methods inherited from class gistoolkit.display.drawmodel.SimpleDrawModel |
getGISDisplay, keyPressed, keyReleased, keyTyped, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, remove, setCommand, setGISDisplay |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public Record[] mySelectedRecords
Constructor Detail |
public SelectDrawModel()
Method Detail |
public void add(SelectDrawModelListener inListener)
public void remove(SelectDrawModelListener inListener)
protected void fireRecordsDeselected(Record[] inRecords)
protected void fireRecordsSelected(Record[] inRecords)
public Record[] getSelectedRecords()
public void setSelectedRecordsNoNotify(Record[] inSelectedRecords)
public void setSelectedRecords(Record[] inSelectedRecords)
public void setSelectedLayer(Layer inLayer)
public Layer getSelectedLayer()
public void draw()
draw
in interface DrawModel
draw
in class SimpleDrawModel
protected Record getNear(Layer inLayer, Point inPoint, double inDistance)
public void reset()
reset
in interface DrawModel
reset
in class SimpleDrawModel
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |