Package viewer.symbols
Class Symbol
java.lang.Object
viewer.symbols.Symbol
- Direct Known Subclasses:
LineSymbol
,PointSymbol
,PolygonSymbol
public abstract class Symbol
extends java.lang.Object
abstract class that must be implemented by all classes representing symbols
that can be displayed in a map
- Author:
- haunert
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description abstract void
draw(java.awt.Graphics2D g, Transformation t)
This method is called to draw this Symbol into a specified Graphics object.Envelope
getBoundingBox()
Feature
getFeature()
Returns the feature this Symbol represents.
-
Field Details
-
Constructor Details
-
Symbol
Default constructor to enforce setting of feature.- Parameters:
feature
- the feature this symbol represents
-
-
Method Details
-
draw
This method is called to draw this Symbol into a specified Graphics object.- Parameters:
g
- the Graphics objectt
- the Transformation that maps world coordinates to image coordinates
-
getBoundingBox
- Returns:
- the bounding box
-
getFeature
Returns the feature this Symbol represents.- Returns:
- a feature, consisting of geometry and attributes
-