public class NFEProgressIndicatorLayer extends ProgressIndicatorLayer
PROPERTY_NAME, PROPERTY_PROVIDERID, PROPERTY_SRID, PROPERTY_VISIBLE
Constructor and Description |
---|
NFEProgressIndicatorLayer(MapCanvas canvas) |
Modifier and Type | Method and Description |
---|---|
boolean |
handleEvent(java.util.EventObject evt)
The main method that performs event handling for this tool.
|
void |
mapRegionChanged(MapRegionEvent e)
When the associated canvas's map region is changed, this method is called to notify the layer of the change.
|
long |
render(java.awt.Graphics2D g)
Renders the layer contents to the given Graphics.
|
void |
reset()
Resets the internal task count to zero.
|
void |
taskCompleted()
Call this method when the task is completed or aborted.
|
void |
taskStarted()
Call this method to display a progress indicator on the map.
|
void |
update(long elapsedTime)
updates the contents data model or structure.
|
added, addPropertyChangeListener, addPropertyChangeListener, clear, fromXMLElement, getCanvas, getDataMBR, getFullExtent, getIcon, getName, getProperties, getProperty, getProperty, getPropertyChangeListeners, getPropertyChangeListeners, getProviderID, getSRID, hitTest, hitTest, isVisible, removed, removePropertyChangeListener, removePropertyChangeListener, repaint, setCanvas, setName, setProperty, setProviderID, setSRID, setVisible, toXMLElement
public NFEProgressIndicatorLayer(MapCanvas canvas)
public void taskStarted()
taskStarted
in class ProgressIndicatorLayer
public void taskCompleted()
taskCompleted
in class ProgressIndicatorLayer
public void update(long elapsedTime)
Layer
update
in interface Layer
update
in class ProgressIndicatorLayer
elapsedTime
- The elapsed time since last update.public void mapRegionChanged(MapRegionEvent e)
Layer
mapRegionChanged
in interface Layer
mapRegionChanged
in class ProgressIndicatorLayer
public long render(java.awt.Graphics2D g)
Layer
render
in interface Layer
render
in class ProgressIndicatorLayer
g
- the graphics objectpublic void reset()
reset
in class ProgressIndicatorLayer
public boolean handleEvent(java.util.EventObject evt)
Layer
handleEvent
in interface Layer
handleEvent
in class ProgressIndicatorLayer