public abstract class AbstractVectorialLegend extends AbstractLegend implements IVectorLegend
Modifier and Type | Class and Description |
---|---|
static class |
AbstractVectorialLegend.RegisterPersistence |
Modifier and Type | Field and Description |
---|---|
protected static Logger |
LOG |
static String |
VECTORIAL_LEGEND_PERSISTENCE_DEFINITION_NAME |
protected ZSort |
zSort |
LEGEND_PERSISTENCE_DEFINITION_NAME
Constructor and Description |
---|
AbstractVectorialLegend() |
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Creates a copy of the object.
|
void |
draw(BufferedImage image,
Graphics2D g,
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 g,
ViewPort viewPort,
Cancellable cancel,
double scale,
Map queryParameters,
ICoordTrans coordTrans,
FeatureStore featureStore,
FeatureQuery featureQuery)
Draws the
FeatureStore data using this legend simbology. |
protected void |
draw(BufferedImage image,
Graphics2D g,
ViewPort viewPort,
Cancellable cancel,
double scale,
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 void |
drawFeatures(BufferedImage image,
Graphics2D g,
ViewPort viewPort,
Cancellable cancel,
ICoordTrans coordTrans,
double dpi,
DefaultFeatureDrawnNotification drawnNotification,
FeatureSet featureSet,
FeatureSelection selection)
Draws the features from the
FeatureSet , with the symbols of the
legend. |
protected abstract String[] |
getRequiredFeatureAttributeNames(FeatureStore featureStore)
|
ZSort |
getZSort() |
protected void |
internalDraw(BufferedImage image,
Graphics2D g,
ViewPort viewPort,
Cancellable cancel,
double scale,
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(Graphics2D g,
ViewPort viewPort,
Cancellable cancel,
double scale,
Map queryParameters,
ICoordTrans coordTrans,
FeatureStore featureStore,
FeatureQuery fquery,
PrintAttributes properties) |
void |
print(Graphics2D g,
ViewPort viewPort,
Cancellable cancel,
double scale,
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, removeLegendListener
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDefaultSymbol, getShapeType, getSymbolByFeature, isSuitableForShapeType, isUseDefaultSymbol, setDefaultSymbol, setShapeType, useDefaultSymbol
addLegendListener, cloneLegend, fireDefaultSymbolChangedEvent, getListeners, removeLegendListener
addDrawingObserver, deleteDrawingObserver, deleteDrawingObservers
protected static final Logger LOG
public static final String VECTORIAL_LEGEND_PERSISTENCE_DEFINITION_NAME
protected ZSort zSort
public ZSort getZSort()
public void setZSort(ZSort zSort)
public void draw(BufferedImage image, Graphics2D g, ViewPort viewPort, Cancellable cancel, double scale, Map queryParameters, ICoordTrans coordTrans, FeatureStore featureStore) throws LegendException
IVectorLegend
FeatureStore
data using this legend simbology.draw
in interface IVectorLegend
image
- 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 fromLegendException
public void draw(BufferedImage image, Graphics2D g, ViewPort viewPort, Cancellable cancel, double scale, Map queryParameters, ICoordTrans coordTrans, FeatureStore featureStore, FeatureQuery featureQuery) throws LegendException
IVectorLegend
FeatureStore
data using this legend simbology.draw
in interface IVectorLegend
image
- 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.LegendException
public void print(Graphics2D g, ViewPort viewPort, Cancellable cancel, double scale, Map queryParameters, ICoordTrans coordTrans, FeatureStore featureStore, PrintAttributes properties) throws LegendException
print
in interface IVectorLegend
LegendException
public void print(Graphics2D g, ViewPort viewPort, Cancellable cancel, double scale, Map queryParameters, ICoordTrans coordTrans, FeatureStore featureStore, FeatureQuery fquery, PrintAttributes properties) throws LegendException
print
in interface IVectorLegend
LegendException
protected void draw(BufferedImage image, Graphics2D g, ViewPort viewPort, Cancellable cancel, double scale, 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.image
- g
- viewPort
- cancel
- scale
- queryParameters
- coordTrans
- featureStore
- featureQuery
- dpi
- LegendException
protected void internalDraw(BufferedImage image, Graphics2D g, ViewPort viewPort, Cancellable cancel, double scale, Map queryParameters, ICoordTrans coordTrans, FeatureStore featureStore, FeatureQuery featureQuery, double dpi, SimpleTaskStatus taskStatus) throws LegendDrawingException
LegendDrawingException
protected void drawFeatures(BufferedImage image, Graphics2D g, ViewPort viewPort, Cancellable cancel, ICoordTrans coordTrans, double dpi, DefaultFeatureDrawnNotification drawnNotification, FeatureSet featureSet, FeatureSelection selection) throws BaseException
FeatureSet
, with the symbols of the
legend.BaseException
public Object clone() throws CloneNotSupportedException
Cloneable
clone
in class AbstractLegend
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
Persistent
loadFromState
in interface Persistent
loadFromState
in class AbstractLegend
PersistenceException
public void saveToState(PersistentState state) throws PersistenceException
Persistent
saveToState
in interface Persistent
saveToState
in class AbstractLegend
PersistenceException
protected abstract String[] getRequiredFeatureAttributeNames(FeatureStore featureStore) throws DataException
featureStore
- the store where the Feature
s belong toFeature
attribute namesDataException
- if there is an error getting the attribute names