public abstract class AbstractVectorialLegend extends AbstractLegend implements IVectorLegend
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractVectorialLegend.RegisterPersistence |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
VECTORIAL_LEGEND_PERSISTENCE_DEFINITION_NAME |
protected ZSort |
zSort |
LEGEND_PERSISTENCE_DEFINITION_NAME| Constructor and Description |
|---|
AbstractVectorialLegend() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Creates a copy of the object.
|
void |
draw(java.awt.image.BufferedImage image,
java.awt.Graphics2D g,
ViewPort viewPort,
Cancellable cancel,
double scale,
java.util.Map queryParameters,
ICoordTrans coordTrans,
FeatureStore featureStore)
Draws the
FeatureStore data using this legend simbology. |
void |
draw(java.awt.image.BufferedImage image,
java.awt.Graphics2D g,
ViewPort viewPort,
Cancellable cancel,
double scale,
java.util.Map queryParameters,
ICoordTrans coordTrans,
FeatureStore featureStore,
FeatureQuery featureQuery)
Draws the
FeatureStore data using this legend simbology. |
protected void |
draw(java.awt.image.BufferedImage image,
java.awt.Graphics2D g,
ViewPort viewPort,
Cancellable cancel,
double scale,
java.util.Map queryParameters,
ICoordTrans coordTrans,
FeatureStore featureStore,
FeatureQuery featureQuery,
double dpi)
Draws the features from the
FeatureStore, filtered with the scale
and the query parameters, with the symbols of the legend. |
protected abstract java.lang.String[] |
getRequiredFeatureAttributeNames(FeatureStore featureStore)
|
ZSort |
getZSort() |
protected void |
internalDraw(java.awt.image.BufferedImage image,
java.awt.Graphics2D g,
ViewPort viewPort,
Cancellable cancel,
double scale,
java.util.Map queryParameters,
ICoordTrans coordTrans,
FeatureStore featureStore,
FeatureQuery featureQuery,
double dpi,
SimpleTaskStatus taskStatus) |
void |
loadFromState(PersistentState state)
Set the state of the object from the state passed as parameter.
|
void |
print(java.awt.Graphics2D g,
ViewPort viewPort,
Cancellable cancel,
double scale,
java.util.Map queryParameters,
ICoordTrans coordTrans,
FeatureStore featureStore,
FeatureQuery fquery,
PrintAttributes properties) |
void |
print(java.awt.Graphics2D g,
ViewPort viewPort,
Cancellable cancel,
double scale,
java.util.Map queryParameters,
ICoordTrans coordTrans,
FeatureStore featureStore,
PrintAttributes properties) |
void |
saveToState(PersistentState state)
Saves the internal state of the object on the provided
PersistentState object.
|
void |
setZSort(ZSort zSort) |
addDrawingObserver, addLegendListener, addObserver, beginComplexNotification, cloneLegend, countObservers, deleteDrawingObserver, deleteDrawingObservers, deleteObserver, disableNotifications, enableNotifications, endComplexNotification, fireDefaultSymbolChangedEvent, getListeners, getManager, getSymbolManager, inComplex, isEnabledNotifications, notifyObservers, notifyObservers, removeLegendListenerequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetShapeType, getSymbolByFeature, isSuitableForShapeType, isUseDefaultSymbol, setDefaultSymbol, setShapeType, useDefaultSymboladdLegendListener, cloneLegend, fireDefaultSymbolChangedEvent, getDefaultSymbol, getListeners, removeLegendListeneraddDrawingObserver, deleteDrawingObserver, deleteDrawingObserverspublic static final java.lang.String VECTORIAL_LEGEND_PERSISTENCE_DEFINITION_NAME
protected ZSort zSort
public ZSort getZSort()
public void setZSort(ZSort zSort)
public void draw(java.awt.image.BufferedImage image,
java.awt.Graphics2D g,
ViewPort viewPort,
Cancellable cancel,
double scale,
java.util.Map queryParameters,
ICoordTrans coordTrans,
FeatureStore featureStore)
throws LegendException
IVectorLegendFeatureStore data using this legend simbology.draw in interface IVectorLegendimage - the base image to draw overg - 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 fromLegendExceptionpublic void draw(java.awt.image.BufferedImage image,
java.awt.Graphics2D g,
ViewPort viewPort,
Cancellable cancel,
double scale,
java.util.Map queryParameters,
ICoordTrans coordTrans,
FeatureStore featureStore,
FeatureQuery featureQuery)
throws LegendException
IVectorLegendFeatureStore data using this legend simbology.draw in interface IVectorLegendimage - the base image to draw overg - 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.LegendExceptionpublic void print(java.awt.Graphics2D g,
ViewPort viewPort,
Cancellable cancel,
double scale,
java.util.Map queryParameters,
ICoordTrans coordTrans,
FeatureStore featureStore,
PrintAttributes properties)
throws LegendException
print in interface IVectorLegendLegendExceptionpublic void print(java.awt.Graphics2D g,
ViewPort viewPort,
Cancellable cancel,
double scale,
java.util.Map queryParameters,
ICoordTrans coordTrans,
FeatureStore featureStore,
FeatureQuery fquery,
PrintAttributes properties)
throws LegendException
print in interface IVectorLegendLegendExceptionprotected void draw(java.awt.image.BufferedImage image,
java.awt.Graphics2D g,
ViewPort viewPort,
Cancellable cancel,
double scale,
java.util.Map queryParameters,
ICoordTrans coordTrans,
FeatureStore featureStore,
FeatureQuery featureQuery,
double dpi)
throws LegendException
FeatureStore, filtered with the scale
and the query parameters, with the symbols of the legend.LegendExceptionprotected void internalDraw(java.awt.image.BufferedImage image,
java.awt.Graphics2D g,
ViewPort viewPort,
Cancellable cancel,
double scale,
java.util.Map queryParameters,
ICoordTrans coordTrans,
FeatureStore featureStore,
FeatureQuery featureQuery,
double dpi,
SimpleTaskStatus taskStatus)
throws LegendDrawingException
LegendDrawingExceptionpublic java.lang.Object clone()
throws java.lang.CloneNotSupportedException
Cloneableclone in class AbstractLegendjava.lang.CloneNotSupportedException - if the instance of the object cannot
be cloned. As this is extending Cloneable so
its sure it implements it, so this exception may be used for problems
on specific object instances.Object#clone()}.public void loadFromState(PersistentState state) throws PersistenceException
PersistentloadFromState in interface PersistentloadFromState in class AbstractLegendPersistenceExceptionpublic void saveToState(PersistentState state) throws PersistenceException
PersistentsaveToState in interface PersistentsaveToState in class AbstractLegendPersistenceExceptionprotected abstract java.lang.String[] getRequiredFeatureAttributeNames(FeatureStore featureStore) throws DataException
featureStore - the store where the Features belong toFeature attribute namesDataException - if there is an error getting the attribute names