public class PieChartLegend extends VectorialUniqueValueLegend implements IPieChartLegend
| Modifier and Type | Class and Description |
|---|---|
static class |
PieChartLegend.RegisterLegend |
static class |
PieChartLegend.RegisterPersistence |
| 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_NAMECLASSIFIED_VECTOR_LEGEND_PERSISTENCE_DEFINITION_NAMEVECTORIAL_LEGEND_PERSISTENCE_DEFINITION_NAMELEGEND_PERSISTENCE_DEFINITION_NAMEBARSCHART_LEGEND_NAME, LINKED_LEGEND_NAME, PIECHART_LEGEND_NAMELEGEND_NAME| Constructor and Description |
|---|
PieChartLegend() |
PieChartLegend(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()
Gets the background symbol of this legend
|
Color[] |
getColors()
Gets the colors of represent different parts of chart symbol
|
String[] |
getFieldLabels()
Gets the field's labels of the chart.
|
String[] |
getFieldNames() |
String |
getFieldNormalize()
Gets the field to represent the normalize size of chart.
|
String |
getFieldSize()
Gets the field to represent the size of chart.
|
Color |
getOutlineColor()
Return the color of the outline
|
int |
getOutlineWidth()
Return the width of the outline
|
int |
getReferenceSystem() |
int |
getSize()
Return the size of symbol
|
int |
getSizeFrom()
Gets the limit size minimum of chart.
|
int |
getSizeOption()
Gets the size option: IPieSymbol.SIZEFIXED, IPieSymbol.SIZESUM or IPieSymbol.SIZEFIELD
|
int |
getSizeTo()
Gets the limit size maximum of chart.
|
ISymbol |
getSymbolByFeature(Feature feat)
Devuelve un símbolo a partir de una IFeature.
|
int |
getUnit()
Gets the selected unit, the default selected is in pixels.
|
boolean |
is3D()
Return true if the chart is 3D.
|
boolean |
isActiveLimits()
Gets if the limits of size chart are active.
|
boolean |
isOnlySelection()
Gets if draw only diagrams of selection.
|
boolean |
isOutlineShow()
Return true if the chart show outline
|
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)
Sets if the limits of size chart are active.
|
void |
setBackgroundSymbol(ISymbol backgroundSymbol)
Sets the background symbol of this legend
|
void |
setColors(Color[] colors)
Sets the colors of represent different parts of chart symbol
|
void |
setFieldNormalize(String f)
Sets the field to represent the normalize size of chart.
|
void |
setFields(String[] fields)
Only the fields that will be used inside the Chart (you don't have to include here getFieldSize or getFieldNormalize)
|
void |
setFieldSize(String f)
Sets the field to represent the size of chart.
|
void |
setIs3D(boolean b)
Sets if the chart is 3D
|
void |
setLabels(String[] fields) |
void |
setMaxFeature(double max) |
void |
setMinFeature(double min) |
void |
setOnlySelection(boolean onlySelection)
Draw only the diagram of selection.
|
void |
setOutlineColor(Color outlineColor)
Sets the color of outline
|
void |
setOutlineShow(boolean isOutlineShow)
Sets if the chart show outline
|
void |
setOutlineWidth(int outlineWidth)
Sets the width of outline
|
void |
setReferenceSystem(int rs) |
void |
setSize(int size)
Sets size of symbols with the fixed size selected
|
void |
setSizeFrom(int s)
Sets the limit size minimum of chart.
|
void |
setSizeOption(int option)
Sets the size option: IPieSymbol.SIZEFIXED, IPieSymbol.SIZESUM or IPieSymbol.SIZEFIELD
|
void |
setSizeTo(int s)
Sets the limit size maximum of chart.
|
void |
setUnit(int unit)
Sets the selected unit, the default selected is in pixels.
|
addSymbol, clear, clone, delSymbol, getClassName, getColorScheme, getDefaultSymbol, getDescriptions, getShapeType, getSymbolByValue, getSymbolKey, getSymbols, getValues, isUseDefaultSymbol, replace, setClassifyingFieldNames, setColorScheme, setDefaultSymbol, setShapeType, setValueSymbolByID, useDefaultSymbolfireClassifiedSymbolChangeEvent, fireLegendClearEvent, getClassifyingFieldNames, getClassifyingFieldTypes, getRequiredFeatureAttributeNames, isSuitableForShapeType, setClassifyingFieldTypesdraw, draw, getZSort, internalDraw, print, print, setZSortaddDrawingObserver, 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, waitgetColorScheme, getSymbolByValue, getSymbolKey, getZSort, setColorScheme, setValueSymbolByID, setZSortaddSymbol, clear, delSymbol, getClassifyingFieldNames, getClassifyingFieldTypes, replace, setClassifyingFieldNames, setClassifyingFieldTypesgetDescriptions, getSymbols, getValuesdraw, getShapeType, isSuitableForShapeType, isUseDefaultSymbol, print, print, setDefaultSymbol, setShapeType, useDefaultSymboladdLegendListener, cloneLegend, fireDefaultSymbolChangedEvent, getDefaultSymbol, getListeners, removeLegendListeneraddDrawingObserver, deleteDrawingObserver, deleteDrawingObserverspublic 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 PieChartLegend()
public PieChartLegend(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
IVectorLegendFeatureStore data using this legend simbology.draw in interface IVectorLegenddraw in class AbstractVectorialLegendimage - 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 boolean is3D()
IChartLegendis3D in interface IChartLegendpublic void setIs3D(boolean b)
IChartLegendsetIs3D in interface IChartLegendpublic int getSize()
IChartLegendgetSize in interface IChartLegendpublic void setSize(int size)
IChartLegendsetSize in interface IChartLegendpublic boolean isOutlineShow()
IChartLegendisOutlineShow in interface IChartLegendpublic void setOutlineShow(boolean isOutlineShow)
IChartLegendsetOutlineShow in interface IChartLegendpublic Color getOutlineColor()
IChartLegendgetOutlineColor in interface IChartLegendpublic void setOutlineColor(Color outlineColor)
IChartLegendsetOutlineColor in interface IChartLegendpublic int getOutlineWidth()
IChartLegendgetOutlineWidth in interface IChartLegendpublic void setOutlineWidth(int outlineWidth)
IChartLegendsetOutlineWidth in interface IChartLegendpublic void setOnlySelection(boolean onlySelection)
IChartLegendsetOnlySelection in interface IChartLegendpublic boolean isOnlySelection()
IChartLegendisOnlySelection in interface IChartLegendpublic ISymbol getBackgroundSymbol()
IChartLegendgetBackgroundSymbol in interface IChartLegendpublic void setBackgroundSymbol(ISymbol backgroundSymbol)
IChartLegendsetBackgroundSymbol in interface IChartLegendbackgroundSymbol - the symbol for the backgroundpublic int getSizeOption()
IChartLegendgetSizeOption in interface IChartLegendpublic String getFieldSize()
IChartLegendgetFieldSize in interface IChartLegendpublic String getFieldNormalize()
IChartLegendgetFieldNormalize in interface IChartLegendpublic int getSizeFrom()
IChartLegendgetSizeFrom in interface IChartLegendpublic int getSizeTo()
IChartLegendgetSizeTo in interface IChartLegendpublic int getUnit()
IChartLegendgetUnit in interface IChartLegendpublic void setSizeFrom(int s)
IChartLegendsetSizeFrom in interface IChartLegends - minimum size.public void setSizeTo(int s)
IChartLegendsetSizeTo in interface IChartLegends - maximum size.public void setUnit(int unit)
IChartLegendsetUnit in interface IChartLegendpublic void setFieldSize(String f)
IChartLegendsetFieldSize in interface IChartLegendpublic void setFieldNormalize(String f)
IChartLegendsetFieldNormalize in interface IChartLegendpublic void setSizeOption(int option)
IChartLegendsetSizeOption in interface IChartLegendpublic boolean isActiveLimits()
IChartLegendisActiveLimits in interface IChartLegendpublic void setActiveLimits(boolean b)
IChartLegendsetActiveLimits in interface IChartLegendpublic Color[] getColors()
IChartLegendgetColors in interface IChartLegendpublic void setColors(Color[] colors)
IChartLegendsetColors in interface IChartLegendpublic int getReferenceSystem()
getReferenceSystem in interface IChartLegendpublic void setReferenceSystem(int rs)
setReferenceSystem in interface IChartLegendpublic void setMinFeature(double min)
setMinFeature in interface IChartLegendpublic void setMaxFeature(double max)
setMaxFeature in interface IChartLegendpublic ISymbol getSymbolByFeature(Feature feat) throws MapContextException
VectorialUniqueValueLegendgetSymbolByFeature in interface IVectorLegendgetSymbolByFeature in class VectorialUniqueValueLegendfeat - IFeatureMapContextExceptionpublic String[] getFieldNames()
public String[] getFieldLabels()
IChartLegendgetFieldLabels in interface IChartLegendpublic void setFields(String[] fields)
IChartLegendsetFields in interface IChartLegendpublic void setLabels(String[] fields)
setLabels in interface IChartLegendpublic void loadFromState(PersistentState state) throws PersistenceException
PersistentloadFromState in interface PersistentloadFromState in class VectorialUniqueValueLegendPersistenceExceptionpublic void saveToState(PersistentState state) throws PersistenceException
PersistentsaveToState in interface PersistentsaveToState in class VectorialUniqueValueLegendPersistenceException