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. |
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, getDefaultSymbol, getListeners, removeLegendListenerloadFromState, saveToStateaddDrawingObserver, deleteDrawingObserver, deleteDrawingObserversISymbol getSymbolByFeature(Feature feat) throws MapContextException
feat - IFeature.MapContextExceptionint 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 fromLegendExceptionvoid 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.LegendExceptionvoid print(Graphics2D g, ViewPort viewPort, Cancellable cancel, double scale, Map queryParameters, ICoordTrans coordTrans, FeatureStore featureStore, PrintAttributes properties) throws LegendException
LegendExceptionvoid print(Graphics2D g, ViewPort viewPort, Cancellable cancel, double scale, Map queryParameters, ICoordTrans coordTrans, FeatureStore featureStore, FeatureQuery featureQuery, PrintAttributes properties) throws LegendException
LegendException