public class BasePieChartLegend extends VectorialUniqueValueLegend
Modifier and Type | Class and Description |
---|---|
static class |
BasePieChartLegend.RegisterPersistence |
VectorialUniqueValueLegend.RegisterLegend
Modifier and Type | Field and Description |
---|---|
protected ISymbol |
backgroundSymbol |
protected Color[] |
colors |
protected FeatureSelection |
featSelection |
protected String |
fieldNormalize |
protected String[] |
fields |
protected String |
fieldSize |
protected boolean |
is3D |
protected boolean |
isActiveLimits |
protected boolean |
isOutlineShow |
protected String[] |
labels |
protected double |
maxFeature |
protected double |
minFeature |
protected boolean |
onlySelection |
protected Color |
outlineColor |
protected int |
outlineWidth |
static String |
PIE_CHART_LEGEND_PERSISTENCE_DEFINITION_NAME |
protected int |
referenceSystem |
protected int |
size |
protected int |
sizeFrom |
protected int |
sizeOption |
protected int |
sizeTo |
protected IChartSymbol |
symbol |
protected int |
unit |
protected ZSort |
zSort |
VECTORIAL_UNIQUE_VALUE_LEGEND_PERSISTENCE_DEFINITION_NAME
CLASSIFIED_VECTOR_LEGEND_PERSISTENCE_DEFINITION_NAME
VECTORIAL_LEGEND_PERSISTENCE_DEFINITION_NAME
LEGEND_PERSISTENCE_DEFINITION_NAME
LEGEND_NAME
Constructor and Description |
---|
BasePieChartLegend() |
BasePieChartLegend(int shapeType) |
Modifier and Type | Method and Description |
---|---|
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. |
ISymbol |
getBackgroundSymbol() |
Color[] |
getColors() |
String[] |
getFieldLabels() |
String[] |
getFieldNames() |
String |
getFieldNormalize() |
String |
getFieldSize() |
Color |
getOutlineColor() |
int |
getOutlineWidth() |
int |
getReferenceSystem() |
int |
getSize() |
int |
getSizeFrom() |
int |
getSizeOption() |
int |
getSizeTo() |
ISymbol |
getSymbolByFeature(Feature feat)
Devuelve un símbolo a partir de una IFeature.
|
int |
getUnit() |
boolean |
is3D() |
boolean |
isActiveLimits() |
boolean |
isOnlySelection() |
boolean |
isOutlineShow() |
void |
loadFromState(PersistentState state)
Set the state of the object from the state passed as parameter.
|
void |
saveToState(PersistentState state)
Saves the internal state of the object on the provided
PersistentState object.
|
void |
setActiveLimits(boolean b) |
void |
setBackgroundSymbol(ISymbol backgroundSymbol) |
void |
setColors(Color[] colors) |
void |
setFieldNormalize(String f) |
void |
setFields(String[] fields) |
void |
setFieldSize(String f) |
void |
setIs3D(boolean b) |
void |
setLabels(String[] fields) |
void |
setMaxFeature(double max) |
void |
setMinFeature(double min) |
void |
setOnlySelection(boolean onlySelection) |
void |
setOutlineColor(Color outlineColor) |
void |
setOutlineShow(boolean isOutlineShow) |
void |
setOutlineWidth(int outlineWidth) |
void |
setReferenceSystem(int rs) |
void |
setSize(int size) |
void |
setSizeFrom(int s) |
void |
setSizeOption(int option) |
void |
setSizeTo(int s) |
void |
setUnit(int unit) |
addSymbol, clear, clone, delSymbol, getClassName, getColorScheme, getDefaultSymbol, getDescriptions, getShapeType, getSymbolByValue, getSymbolKey, getSymbols, getValues, isUseDefaultSymbol, replace, setClassifyingFieldNames, setColorScheme, setDefaultSymbol, setShapeType, setValueSymbolByID, useDefaultSymbol
fireClassifiedSymbolChangeEvent, fireLegendClearEvent, getClassifyingFieldNames, getClassifyingFieldTypes, getRequiredFeatureAttributeNames, isSuitableForShapeType, setClassifyingFieldTypes
draw, draw, drawFeatures, getZSort, internalDraw, print, print, setZSort
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
getZSort, setZSort
getClassifyingFieldNames, getClassifyingFieldTypes, setClassifyingFieldTypes
draw, isSuitableForShapeType, print, print
addLegendListener, cloneLegend, fireDefaultSymbolChangedEvent, getListeners, removeLegendListener
addDrawingObserver, deleteDrawingObserver, deleteDrawingObservers
public static final String PIE_CHART_LEGEND_PERSISTENCE_DEFINITION_NAME
protected ISymbol backgroundSymbol
protected String[] fields
protected String[] labels
protected int size
protected boolean is3D
protected boolean isOutlineShow
protected Color outlineColor
protected int outlineWidth
protected boolean onlySelection
protected int referenceSystem
protected String fieldSize
protected String fieldNormalize
protected int sizeFrom
protected int sizeTo
protected int unit
protected int sizeOption
protected ZSort zSort
protected boolean isActiveLimits
protected double minFeature
protected double maxFeature
protected Color[] colors
protected IChartSymbol symbol
protected FeatureSelection featSelection
public BasePieChartLegend()
public BasePieChartLegend(int shapeType)
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
draw
in class AbstractVectorialLegend
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 boolean is3D()
public void setIs3D(boolean b)
public int getSize()
public void setSize(int size)
public boolean isOutlineShow()
public void setOutlineShow(boolean isOutlineShow)
public Color getOutlineColor()
public void setOutlineColor(Color outlineColor)
public int getOutlineWidth()
public void setOutlineWidth(int outlineWidth)
public void setOnlySelection(boolean onlySelection)
public boolean isOnlySelection()
public ISymbol getBackgroundSymbol()
public void setBackgroundSymbol(ISymbol backgroundSymbol)
public int getSizeOption()
public String getFieldSize()
public String getFieldNormalize()
public int getSizeFrom()
public int getSizeTo()
public int getUnit()
public void setSizeFrom(int s)
public void setSizeTo(int s)
public void setUnit(int unit)
public void setFieldSize(String f)
public void setFieldNormalize(String f)
public void setSizeOption(int option)
public boolean isActiveLimits()
public void setActiveLimits(boolean b)
public Color[] getColors()
public void setColors(Color[] colors)
public int getReferenceSystem()
public void setReferenceSystem(int rs)
public void setMinFeature(double min)
public void setMaxFeature(double max)
public ISymbol getSymbolByFeature(Feature feat) throws MapContextException
VectorialUniqueValueLegend
getSymbolByFeature
in interface IVectorLegend
getSymbolByFeature
in class VectorialUniqueValueLegend
feat
- IFeatureMapContextException
public String[] getFieldNames()
public String[] getFieldLabels()
public void setFields(String[] fields)
public void setLabels(String[] fields)
public void loadFromState(PersistentState state) throws PersistenceException
Persistent
loadFromState
in interface Persistent
loadFromState
in class VectorialUniqueValueLegend
PersistenceException
public void saveToState(PersistentState state) throws PersistenceException
Persistent
saveToState
in interface Persistent
saveToState
in class VectorialUniqueValueLegend
PersistenceException