public class VectorialLayerEdited extends DefaultLayerEdited implements LayerDrawingListener, Observer
Constructor and Description |
---|
VectorialLayerEdited(FLayer lyr,
MapControl mapControl) |
getLayer
public VectorialLayerEdited(FLayer lyr, MapControl mapControl)
public ArrayList getSelectedHandler()
public void clearSelection() throws DataException
DataException
public void selectWithPoint(double x, double y, boolean multipleSelection)
public void selectWithSecondPoint(double x, double y)
public void selectContainsSurface(Geometry polygon)
public void selectIntersectsSurface(Geometry polygon)
public void selectOutPolygon(Geometry polygon)
public void selectAll()
public Image getSelectionImage()
public void setSelectionImage(Image image)
public Image getHandlersImage()
public void setHandlersImage(Image image)
public void beforeLayerDraw(LayerDrawEvent e) throws CancelationException
LayerDrawingListener
beforeLayerDraw
in interface LayerDrawingListener
e
- a layer event objectCancelationException
- if cancels the operation, this exception will have the message
that user will see.LayerDrawEvent
public void afterLayerDraw(LayerDrawEvent e) throws CancelationException
LayerDrawingListener
Process to execute after a layer had been drawn.
afterLayerDraw
in interface LayerDrawingListener
e
- a layer event objectCancelationException
- if cancels the operation, this exception will have the message
that user will see.LayerDrawEvent
public void beforeGraphicLayerDraw(LayerDrawEvent e) throws CancelationException
LayerDrawingListener
Process to execute before a GraphicLayer
had been drawn.
beforeGraphicLayerDraw
in interface LayerDrawingListener
e
- a layer event objectCancelationException
- if cancels the operation, this exception will have the message
that user will see.LayerDrawEvent
public void afterLayerGraphicDraw(LayerDrawEvent e) throws CancelationException
LayerDrawingListener
Process to execute after a GraphicLayer
had been drawn.
afterLayerGraphicDraw
in interface LayerDrawingListener
e
- a layer event objectCancelationException
- if cancels the operation, this exception will have the message
that user will see.LayerDrawEvent
public void activationGained(LayerEvent e)
public void activationLost(LayerEvent e)
public void setLegend(ILegend legend)
public ILegend getLegend()
public FeatureStore getFeatureStore() throws ReadException
ReadException
public void update(Observable observable, Object notification)
Observer
Observable
object is changed and this
Observer
has registered on it to receive notifications.
Implementations of this method will be called for each simple notification or, if a complex notification is created, for each of the child notifications.
In the latter case, don't assume any ordering in the notification between
this Observer
and other Observer
s listening to the same
Observable
.
In a complex notification scenario, if you want to receive only the
complex notification and not each of the child notifications, just
implement the ComplexObserver
and prepare this method
implementation to handle receiving DefaultComplexNotification
instances
as well as direct notification objects.
public EditionChangeManager getEditionChangeManager()
public void setEditionChangeManager(EditionChangeManager echm)