|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.fhg.igd.mapviewer.AbstractTileOverlayPainter
de.fhg.igd.mapviewer.MapKitTileOverlayPainter
de.fhg.igd.mapviewer.waypoints.CustomWaypointPainter<W>
de.fhg.igd.mapviewer.waypoints.GenericWaypointPainter<InstanceReference,InstanceWaypoint>
eu.esdihumboldt.hale.ui.views.styledmap.painter.AbstractInstancePainter
public abstract class AbstractInstancePainter
Abstract instance painter implementation based on an InstanceService
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class de.fhg.igd.mapviewer.AbstractTileOverlayPainter |
---|
de.fhg.igd.mapviewer.AbstractTileOverlayPainter.Refresher |
Field Summary |
---|
Fields inherited from class de.fhg.igd.mapviewer.AbstractTileOverlayPainter |
---|
DEF_PRIORITY |
Constructor Summary | |
---|---|
AbstractInstancePainter(InstanceService instanceService,
DataSet dataSet)
Create an instance painter. |
Method Summary | |
---|---|
void |
clearWaypoints()
|
static org.eclipse.jface.viewers.ISelection |
combineSelection(org.eclipse.jface.viewers.ISelection oldSelection,
org.eclipse.jface.viewers.ISelection newSelection)
Try to combine two selections. |
protected InstanceWaypoint |
createWaypoint(Instance instance,
InstanceService instanceService)
Create a way-point for an instance |
void |
datasetAboutToChange(DataSet type)
Called when a data set is about to change. |
void |
datasetChanged(DataSet type)
Called when a data set has changed |
protected void |
drawOverlay(Graphics2D gfx,
BufferedImage img,
int zoom,
int tilePosX,
int tilePosY,
int tileWidth,
int tileHeight,
Rectangle viewportBounds,
org.jdesktop.swingx.mapviewer.PixelConverter converter)
|
InstanceWaypoint |
findWaypoint(InstanceReference object)
|
static de.cs3d.common.metamodel.helperGeometry.BoundingBox |
getBoundingBox(com.vividsolutions.jts.geom.Geometry geometry)
Determine the bounding box for a geometry. |
DataSet |
getDataSet()
|
GeometrySchemaServiceListener |
getGeometryListener()
|
InstanceService |
getInstanceService()
|
protected int |
getMaxOverlap()
|
org.eclipse.jface.viewers.ISelection |
getSelection(Point point)
Get the selection for the given point. |
org.eclipse.jface.viewers.ISelection |
getSelection(Polygon poly)
Get the selection for a given polygon on the screen. |
org.eclipse.jface.viewers.ISelection |
getSelection(Rectangle rect)
Get the selection for a given rectangle on the screen. |
StyleServiceListener |
getStyleListener()
|
org.opengis.referencing.crs.CoordinateReferenceSystem |
getWaypointCRS()
Get the CRS for use in way-point bounding boxes. |
static org.eclipse.jface.viewers.ISelection |
preferSelection(org.eclipse.jface.viewers.ISelection oldSelection,
org.eclipse.jface.viewers.ISelection newSelection)
Selects the preferred selection. |
void |
selectionChanged(org.eclipse.ui.IWorkbenchPart part,
org.eclipse.jface.viewers.ISelection selection)
|
void |
setClip(Clip clip)
Set the clip algorithm. |
protected void |
styleRefresh()
Refresh with style update. |
void |
transformationToggled(boolean enabled)
Called when the transformation has been enabled or disabled. |
void |
update(org.eclipse.jface.viewers.ISelection selection)
Do a complete update of the way-points. |
Methods inherited from class de.fhg.igd.mapviewer.waypoints.GenericWaypointPainter |
---|
addWaypoint, iterateWaypoints, removeWaypoint |
Methods inherited from class de.fhg.igd.mapviewer.waypoints.CustomWaypointPainter |
---|
dispose, findWaypoint, findWaypoints, findWaypoints, findWaypoints, getBoundingBox, removeWaypoint, repaintTile, setRenderer |
Methods inherited from class de.fhg.igd.mapviewer.MapKitTileOverlayPainter |
---|
getCurrentViewBounds, getMapKit, isCurrentZoom, repaint, setMapKit |
Methods inherited from class de.fhg.igd.mapviewer.AbstractTileOverlayPainter |
---|
compareTo, configureGraphics, createImage, getPriority, paintTile, prepareRefresh, prepareRefresh, refreshAll, setAntialiasing, setPriority, setTileProvider |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractInstancePainter(InstanceService instanceService, DataSet dataSet)
instanceService
- the instance servicedataSet
- the data setMethod Detail |
---|
protected void styleRefresh()
public void datasetChanged(DataSet type)
InstanceServiceListener
datasetChanged
in interface InstanceServiceListener
type
- the data set typeInstanceServiceListener.datasetChanged(DataSet)
public org.opengis.referencing.crs.CoordinateReferenceSystem getWaypointCRS()
public void update(org.eclipse.jface.viewers.ISelection selection)
selection
- the current selectionprotected InstanceWaypoint createWaypoint(Instance instance, InstanceService instanceService)
instance
- the instanceinstanceService
- the instance service
null
ifpublic static de.cs3d.common.metamodel.helperGeometry.BoundingBox getBoundingBox(com.vividsolutions.jts.geom.Geometry geometry)
geometry
- the geometry
null
if it is either an empty
geometry or the bounding box cannot be determinedprotected int getMaxOverlap()
getMaxOverlap
in class de.fhg.igd.mapviewer.AbstractTileOverlayPainter
AbstractTileOverlayPainter.getMaxOverlap()
public InstanceService getInstanceService()
public DataSet getDataSet()
public static org.eclipse.jface.viewers.ISelection combineSelection(org.eclipse.jface.viewers.ISelection oldSelection, org.eclipse.jface.viewers.ISelection newSelection)
oldSelection
- the first selectionnewSelection
- the second selection
public static org.eclipse.jface.viewers.ISelection preferSelection(org.eclipse.jface.viewers.ISelection oldSelection, org.eclipse.jface.viewers.ISelection newSelection)
oldSelection
- the first selectionnewSelection
- the second selection
public org.eclipse.jface.viewers.ISelection getSelection(Polygon poly)
poly
- the polygon
null
public org.eclipse.jface.viewers.ISelection getSelection(Rectangle rect)
rect
- the rectangle
null
public org.eclipse.jface.viewers.ISelection getSelection(Point point)
point
- the point (viewport coordinates)
null
public void selectionChanged(org.eclipse.ui.IWorkbenchPart part, org.eclipse.jface.viewers.ISelection selection)
selectionChanged
in interface org.eclipse.ui.ISelectionListener
ISelectionListener.selectionChanged(IWorkbenchPart, ISelection)
public void clearWaypoints()
clearWaypoints
in class de.fhg.igd.mapviewer.waypoints.GenericWaypointPainter<InstanceReference,InstanceWaypoint>
GenericWaypointPainter.clearWaypoints()
public StyleServiceListener getStyleListener()
public GeometrySchemaServiceListener getGeometryListener()
public void setClip(Clip clip)
ClipPainter
setClip
in interface ClipPainter
clip
- the clip algorithmClipPainter.setClip(Clip)
protected void drawOverlay(Graphics2D gfx, BufferedImage img, int zoom, int tilePosX, int tilePosY, int tileWidth, int tileHeight, Rectangle viewportBounds, org.jdesktop.swingx.mapviewer.PixelConverter converter)
drawOverlay
in class de.fhg.igd.mapviewer.AbstractTileOverlayPainter
AbstractTileOverlayPainter.drawOverlay(Graphics2D, BufferedImage,
int, int, int, int, int, Rectangle, PixelConverter)
public InstanceWaypoint findWaypoint(InstanceReference object)
findWaypoint
in class de.fhg.igd.mapviewer.waypoints.GenericWaypointPainter<InstanceReference,InstanceWaypoint>
GenericWaypointPainter.findWaypoint(Object)
public void transformationToggled(boolean enabled)
InstanceServiceListener
transformationToggled
in interface InstanceServiceListener
enabled
- if the transformation is enabled nowInstanceServiceListener.transformationToggled(boolean)
public void datasetAboutToChange(DataSet type)
InstanceServiceListener
datasetAboutToChange
in interface InstanceServiceListener
type
- the data set typeInstanceServiceListener.datasetAboutToChange(DataSet)
|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |