eu.esdihumboldt.hale.ui.views.styledmap.tool
Class AbstractInstanceTool
java.lang.Object
de.fhg.igd.mapviewer.tools.AbstractMapTool
eu.esdihumboldt.hale.ui.views.styledmap.tool.AbstractInstanceTool
- All Implemented Interfaces:
- de.fhg.igd.mapviewer.MapTool, Comparable<de.fhg.igd.mapviewer.tools.AbstractMapTool>, EventListener, org.eclipse.jface.viewers.ISelectionProvider, org.eclipse.ui.ISelectionListener
- Direct Known Subclasses:
- InstanceTool
public abstract class AbstractInstanceTool
- extends de.fhg.igd.mapviewer.tools.AbstractMapTool
- implements org.eclipse.jface.viewers.ISelectionProvider, org.eclipse.ui.ISelectionListener
Instance selection tool.
- Author:
- Simon Templer
Nested classes/interfaces inherited from class de.fhg.igd.mapviewer.tools.AbstractMapTool |
de.fhg.igd.mapviewer.tools.AbstractMapTool.ActivationListener |
Fields inherited from class de.fhg.igd.mapviewer.tools.AbstractMapTool |
mapKit |
Methods inherited from class de.fhg.igd.mapviewer.tools.AbstractMapTool |
addActivationListener, addPosition, compareTo, getCursor, getDescription, getIconURL, getId, getName, getPoints, getPositions, getRenderer, isActive, mouseClicked, mousePressed, mouseReleased, removeActivationListener, removeLastPosition, repaint, reset, setActivator, setActive, setDescription, setIconURL, setId, setMapKit, setName, setPriority, setRenderer |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface de.fhg.igd.mapviewer.MapTool |
isPanEnabled |
AbstractInstanceTool
public AbstractInstanceTool()
- Default constructor
activate
public void activate()
- Overrides:
activate
in class de.fhg.igd.mapviewer.tools.AbstractMapTool
- See Also:
AbstractMapTool.activate()
click
public void click(MouseEvent me,
org.jdesktop.swingx.mapviewer.GeoPosition pos)
- Specified by:
click
in class de.fhg.igd.mapviewer.tools.AbstractMapTool
- See Also:
AbstractMapTool.click(MouseEvent, GeoPosition)
popup
public void popup(MouseEvent me,
org.jdesktop.swingx.mapviewer.GeoPosition pos)
- Specified by:
popup
in class de.fhg.igd.mapviewer.tools.AbstractMapTool
- See Also:
AbstractMapTool.popup(MouseEvent, GeoPosition)
released
public void released(MouseEvent me,
org.jdesktop.swingx.mapviewer.GeoPosition pos)
- Specified by:
released
in class de.fhg.igd.mapviewer.tools.AbstractMapTool
- See Also:
AbstractMapTool.released(MouseEvent, GeoPosition)
pressed
public void pressed(MouseEvent me,
org.jdesktop.swingx.mapviewer.GeoPosition pos)
- Specified by:
pressed
in class de.fhg.igd.mapviewer.tools.AbstractMapTool
- See Also:
AbstractMapTool.pressed(MouseEvent, GeoPosition)
fireSelectionChange
protected void fireSelectionChange(org.eclipse.jface.viewers.ISelection selection)
- Fire a selection change
- Parameters:
selection
- the new selection
addSelectionChangedListener
public void addSelectionChangedListener(org.eclipse.jface.viewers.ISelectionChangedListener listener)
- Specified by:
addSelectionChangedListener
in interface org.eclipse.jface.viewers.ISelectionProvider
- See Also:
ISelectionProvider.addSelectionChangedListener(ISelectionChangedListener)
getSelection
public org.eclipse.jface.viewers.ISelection getSelection()
- Specified by:
getSelection
in interface org.eclipse.jface.viewers.ISelectionProvider
- See Also:
ISelectionProvider.getSelection()
removeSelectionChangedListener
public void removeSelectionChangedListener(org.eclipse.jface.viewers.ISelectionChangedListener listener)
- Specified by:
removeSelectionChangedListener
in interface org.eclipse.jface.viewers.ISelectionProvider
- See Also:
ISelectionProvider.removeSelectionChangedListener(ISelectionChangedListener)
setSelection
public void setSelection(org.eclipse.jface.viewers.ISelection selection)
- Specified by:
setSelection
in interface org.eclipse.jface.viewers.ISelectionProvider
- See Also:
ISelectionProvider.setSelection(ISelection)
selectionChanged
public void selectionChanged(org.eclipse.ui.IWorkbenchPart part,
org.eclipse.jface.viewers.ISelection selection)
- Specified by:
selectionChanged
in interface org.eclipse.ui.ISelectionListener
- See Also:
ISelectionListener.selectionChanged(org.eclipse.ui.IWorkbenchPart,
org.eclipse.jface.viewers.ISelection)
updateSelection
protected void updateSelection(Object selectionArea,
boolean combineWithLast,
boolean allowPainterCombine)
- Update the selection for the given selection area.
- Parameters:
selectionArea
- the selection area (as supported by
getSelection(AbstractInstancePainter, Object)
)combineWithLast
- if the selection shall be combined with the last
selectionallowPainterCombine
- if selections from different painters may be
combined
getSelection
protected org.eclipse.jface.viewers.ISelection getSelection(AbstractInstancePainter painter,
Object selectionArea)
- Get the selection for the given painter in the given selection area.
- Parameters:
painter
- the instance painterselectionArea
- the selection area (supported are Rectangle
,
Point
, Polygon
or a Polygon
array)
- Returns:
- the selection or
null
Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d