public class StyledInstanceMarker extends InstanceMarker
StyleService
.Constructor and Description |
---|
StyledInstanceMarker(InstanceWaypoint wp)
Create a instance marker supporting styles.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
applyFill(Graphics2D g,
InstanceWaypoint context) |
protected boolean |
applyStroke(Graphics2D g,
InstanceWaypoint context) |
protected Color |
getBorderColor(InstanceWaypoint context) |
protected Stroke |
getLineStroke(InstanceWaypoint context)
Get the stroke for drawing lines.
|
protected Color |
getPaintColor(InstanceWaypoint context) |
protected boolean |
isToSmall(int width,
int height,
int zoom) |
protected de.fhg.igd.mapviewer.marker.area.Area |
paintPoint(com.vividsolutions.jts.geom.Point geometry,
Graphics2D g,
CRSDefinition crsDefinition,
InstanceWaypoint context,
org.jdesktop.swingx.mapviewer.PixelConverter converter,
int zoom,
org.opengis.referencing.crs.CoordinateReferenceSystem mapCRS,
boolean calculateArea)
Paint a point geometry.
|
void |
resetStyle()
Reset the marker style
|
areaReset, doPaintMarker, getFallbackMarker, paintGeometry, paintLine, paintPolygon, reset
public StyledInstanceMarker(InstanceWaypoint wp)
wp
- the way-point the marker is associated withpublic void resetStyle()
protected Color getPaintColor(InstanceWaypoint context)
getPaintColor
in class InstanceMarker
InstanceMarker.getPaintColor(InstanceWaypoint)
protected Color getBorderColor(InstanceWaypoint context)
getBorderColor
in class InstanceMarker
InstanceMarker.getBorderColor(InstanceWaypoint)
protected Stroke getLineStroke(InstanceWaypoint context)
getLineStroke
in class InstanceMarker
context
- the contextprotected boolean applyFill(Graphics2D g, InstanceWaypoint context)
applyFill
in class de.fhg.igd.mapviewer.marker.BoundingBoxMarker<InstanceWaypoint>
BoundingBoxMarker.applyFill(Graphics2D, SelectableWaypoint)
protected boolean applyStroke(Graphics2D g, InstanceWaypoint context)
applyStroke
in class InstanceMarker
BoundingBoxMarker.applyStroke(Graphics2D, SelectableWaypoint)
protected boolean isToSmall(int width, int height, int zoom)
isToSmall
in class de.fhg.igd.mapviewer.marker.BoundingBoxMarker<InstanceWaypoint>
BoundingBoxMarker.isToSmall(int, int, int)
protected de.fhg.igd.mapviewer.marker.area.Area paintPoint(com.vividsolutions.jts.geom.Point geometry, Graphics2D g, CRSDefinition crsDefinition, InstanceWaypoint context, org.jdesktop.swingx.mapviewer.PixelConverter converter, int zoom, org.opengis.referencing.crs.CoordinateReferenceSystem mapCRS, boolean calculateArea)
InstanceMarker
paintPoint
in class InstanceMarker
geometry
- the pointg
- the graphics object to paint oncrsDefinition
- the CRS definition associated to the geometrycontext
- the contextconverter
- the pixel converterzoom
- the zoom levelmapCRS
- the map coordinate reference systemcalculateArea
- if the area representing the marker should be
calculated, if false
is given here the return
value is ignored and should be null
null
if painting failedInstanceMarker.paintPoint(Point, Graphics2D, CRSDefinition,
InstanceWaypoint, PixelConverter, int, CoordinateReferenceSystem,
boolean)
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a