public interface IVectorLegend extends ILegend, DrawingObservable
Modifier and Type | Method and Description |
---|---|
void |
draw(BufferedImage image,
Graphics2D graphics2D,
ViewPort viewPort,
Cancellable cancel,
double scale,
Map queryParameters,
ICoordTrans coordTrans,
FeatureStore featureStore)
Draws the
FeatureStore data using this legend simbology. |
void |
draw(BufferedImage image,
Graphics2D graphics2D,
ViewPort viewPort,
Cancellable cancel,
double scale,
Map queryParameters,
ICoordTrans coordTrans,
FeatureStore featureStore,
FeatureQuery featureQuery)
Draws the
FeatureStore data using this legend simbology. |
ISymbol |
getDefaultSymbol()
Obtains the default symbol of the legend.
|
int |
getShapeType()
Returns the type of the shape.
|
ISymbol |
getSymbolByFeature(Feature feat)
Returns a symbol starting from an IFeature.
|
boolean |
isSuitableForShapeType(int shapeType) |
boolean |
isUseDefaultSymbol()
Returns true or false depending on if the rest of values are used.
|
void |
print(Graphics2D g,
ViewPort viewPort,
Cancellable cancel,
double scale,
Map queryParameters,
ICoordTrans coordTrans,
FeatureStore featureStore,
FeatureQuery featureQuery,
PrintAttributes properties) |
void |
print(Graphics2D g,
ViewPort viewPort,
Cancellable cancel,
double scale,
Map queryParameters,
ICoordTrans coordTrans,
FeatureStore featureStore,
PrintAttributes properties) |
void |
setDefaultSymbol(ISymbol s)
Establishes the default symbol of a legend.
|
void |
setShapeType(int shapeType)
Defines the type of the shape.
|
void |
useDefaultSymbol(boolean b) |
addLegendListener, cloneLegend, fireDefaultSymbolChangedEvent, getListeners, removeLegendListener
loadFromState, saveToState
addDrawingObserver, deleteDrawingObserver, deleteDrawingObservers
ISymbol getDefaultSymbol()
getDefaultSymbol
in interface ILegend
ISymbol getSymbolByFeature(Feature feat) throws MapContextException
feat
- IFeature.MapContextException
int getShapeType()
void setShapeType(int shapeType)
shapeType
- type of the shape.void setDefaultSymbol(ISymbol s)
s
- default symbol.boolean isUseDefaultSymbol()
void useDefaultSymbol(boolean b)
boolean isSuitableForShapeType(int shapeType)
void draw(BufferedImage image, Graphics2D graphics2D, ViewPort viewPort, Cancellable cancel, double scale, Map queryParameters, ICoordTrans coordTrans, FeatureStore featureStore) throws LegendException
FeatureStore
data using this legend simbology.image
- the base image to draw overgraphics2D
- the Graphics2D
to draw toviewPort
- the ViewPort to usecancel
- the Cancellable
delegate objectscale
- the scale of the viewqueryParameters
- the query parameterscoordTrans
- the transformation coordinates to use for reprojectionfeatureStore
- FeatureStore
to load the data to draw fromLegendException
void draw(BufferedImage image, Graphics2D graphics2D, ViewPort viewPort, Cancellable cancel, double scale, Map queryParameters, ICoordTrans coordTrans, FeatureStore featureStore, FeatureQuery featureQuery) throws LegendException
FeatureStore
data using this legend simbology.image
- the base image to draw overgraphics2D
- the Graphics2D
to draw toviewPort
- the ViewPort to usecancel
- the Cancellable
delegate objectscale
- the scale of the viewqueryParameters
- the query parameterscoordTrans
- the transformation coordinates to use for reprojectionfeatureStore
- FeatureStore
to load the data to draw fromfeatureQuery
- the query used to filter the features.LegendException
void print(Graphics2D g, ViewPort viewPort, Cancellable cancel, double scale, Map queryParameters, ICoordTrans coordTrans, FeatureStore featureStore, PrintAttributes properties) throws LegendException
LegendException
void print(Graphics2D g, ViewPort viewPort, Cancellable cancel, double scale, Map queryParameters, ICoordTrans coordTrans, FeatureStore featureStore, FeatureQuery featureQuery, PrintAttributes properties) throws LegendException
LegendException