|
|||||||||||
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.EditNodesDrawModel
A model used for highlighting features on the map as the pointer is moved over it. Creation date: (4/18/2001 3:20:16 PM)
Field Summary | |
static int |
ADD
|
static int |
DELETE
|
static int |
MOVE
Modes in which this draw model may operate. |
static int |
MOVE_SHAPE
|
Fields inherited from class gistoolkit.display.drawmodel.SimpleDrawModel |
myCommand, myGISDisplay |
Constructor Summary | |
EditNodesDrawModel()
Create a new EditNodesDrawModel. |
|
EditNodesDrawModel(Command inCommand)
Create a new EditNodesDrawModel, with a connection to the command. |
Method Summary | |
void |
addEditNodesDrawModelListener(EditNodesDrawModelListener inListener)
Add a listener to this draw model to recieve events when they happen. |
void |
done()
Ends the editing of the polygon, and updates the record. |
void |
draw()
The function which is called to draw the image on the map. |
void |
drawPoint(Point inPoint)
The function which is called to draw the point on the screen. |
protected void |
fireEvent(EditNodesDrawModelEvent inEvent)
notify the listeners of an event |
protected void |
firePointAdded(Point inPoint)
Fire an event when a point is added. |
protected void |
firePointMoved(Point inPoint)
Fire an event when a point is moved. |
protected void |
firePointRemoved(Point inPoint)
Fire an event when a point is deleted. |
Layer |
getLayer()
Returns the layer associated with the record. |
int |
getMode()
Get the state of the model, Add = add nodes, Move = move nodes, Delete = delete nodes. |
Record |
getRecord()
Returns the last selected record. |
boolean |
isSelected()
Determines if the draw model has a selection to operate on. |
void |
mouseDragged(java.awt.event.MouseEvent e)
Invoked when the mouse button has been moved on a component (with no buttons down). |
void |
mousePressed(java.awt.event.MouseEvent e)
Called when the user presses the mouse button. |
void |
mouseReleased(java.awt.event.MouseEvent e)
Called when the user releases the mouse butotn. |
void |
removeEditNodesDrawModelListener(EditNodesDrawModelListener inListener)
Remove this listsner. |
void |
setLayer(Layer newLayer)
Sets the layer that goes along with the record. |
void |
setMode(int inState)
Set the state of the model, Add = add nodes, Move = move nodes, Delete = delete nodes. |
void |
setRecord(Record inRecord)
Returns the last selected record. |
void |
setShader(Shader inShader)
Set the shader used for shading the highlighted shapes. |
Methods inherited from class gistoolkit.display.drawmodel.SimpleDrawModel |
getGISDisplay, keyPressed, keyReleased, keyTyped, mouseClicked, mouseEntered, mouseExited, mouseMoved, remove, reset, setCommand, setGISDisplay |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static int MOVE
public static int ADD
public static int DELETE
public static int MOVE_SHAPE
Constructor Detail |
public EditNodesDrawModel()
public EditNodesDrawModel(Command inCommand)
Method Detail |
public void addEditNodesDrawModelListener(EditNodesDrawModelListener inListener)
public void removeEditNodesDrawModelListener(EditNodesDrawModelListener inListener)
protected void firePointAdded(Point inPoint)
protected void firePointMoved(Point inPoint)
protected void firePointRemoved(Point inPoint)
protected void fireEvent(EditNodesDrawModelEvent inEvent)
public void done() throws java.lang.Exception
java.lang.Exception
public void draw()
draw
in interface DrawModel
draw
in class SimpleDrawModel
public void drawPoint(Point inPoint)
public Layer getLayer()
public int getMode()
public Record getRecord()
public boolean isSelected()
public void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged
in interface java.awt.event.MouseMotionListener
mouseDragged
in class SimpleDrawModel
public void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
mousePressed
in class SimpleDrawModel
public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
mouseReleased
in class SimpleDrawModel
public void setLayer(Layer newLayer)
newLayer
- gistoolkit.display.Layerpublic void setMode(int inState)
public void setRecord(Record inRecord)
public void setShader(Shader inShader)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |