public class BarsChartLegend extends VectorialUniqueValueLegend implements IBarsChartLegend
Modifier and Type | Class and Description |
---|---|
static class |
BarsChartLegend.RegisterLegend |
static class |
BarsChartLegend.RegisterPersistence |
Modifier and Type | Field and Description |
---|---|
protected ISymbol |
backgroundSymbol |
static String |
BARS_CHART_LEGEND_PERSISTENCE_DEFINITION_NAME |
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 |
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
BARSCHART_LEGEND_NAME, LINKED_LEGEND_NAME, PIECHART_LEGEND_NAME
LEGEND_NAME
Constructor and Description |
---|
BarsChartLegend() |
BarsChartLegend(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, 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
getColorScheme, getSymbolByValue, getSymbolKey, getZSort, setColorScheme, setValueSymbolByID, setZSort
addSymbol, clear, delSymbol, getClassifyingFieldNames, getClassifyingFieldTypes, replace, setClassifyingFieldNames, setClassifyingFieldTypes
getDescriptions, getSymbols, getValues
draw, getDefaultSymbol, getShapeType, isSuitableForShapeType, isUseDefaultSymbol, print, print, setDefaultSymbol, setShapeType, useDefaultSymbol
addLegendListener, cloneLegend, fireDefaultSymbolChangedEvent, getListeners, removeLegendListener
addDrawingObserver, deleteDrawingObserver, deleteDrawingObservers
public static final String BARS_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 BarsChartLegend()
public BarsChartLegend(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()
IChartLegend
is3D
in interface IChartLegend
public void setIs3D(boolean b)
IChartLegend
setIs3D
in interface IChartLegend
public int getSize()
IChartLegend
getSize
in interface IChartLegend
public void setSize(int size)
IChartLegend
setSize
in interface IChartLegend
public boolean isOutlineShow()
IChartLegend
isOutlineShow
in interface IChartLegend
public void setOutlineShow(boolean isOutlineShow)
IChartLegend
setOutlineShow
in interface IChartLegend
public Color getOutlineColor()
IChartLegend
getOutlineColor
in interface IChartLegend
public void setOutlineColor(Color outlineColor)
IChartLegend
setOutlineColor
in interface IChartLegend
public int getOutlineWidth()
IChartLegend
getOutlineWidth
in interface IChartLegend
public void setOutlineWidth(int outlineWidth)
IChartLegend
setOutlineWidth
in interface IChartLegend
public void setOnlySelection(boolean onlySelection)
IChartLegend
setOnlySelection
in interface IChartLegend
public boolean isOnlySelection()
IChartLegend
isOnlySelection
in interface IChartLegend
public ISymbol getBackgroundSymbol()
IChartLegend
getBackgroundSymbol
in interface IChartLegend
public void setBackgroundSymbol(ISymbol backgroundSymbol)
IChartLegend
setBackgroundSymbol
in interface IChartLegend
backgroundSymbol
- the symbol for the backgroundpublic int getSizeOption()
IChartLegend
getSizeOption
in interface IChartLegend
public String getFieldSize()
IChartLegend
getFieldSize
in interface IChartLegend
public String getFieldNormalize()
IChartLegend
getFieldNormalize
in interface IChartLegend
public int getSizeFrom()
IChartLegend
getSizeFrom
in interface IChartLegend
public int getSizeTo()
IChartLegend
getSizeTo
in interface IChartLegend
public int getUnit()
IChartLegend
getUnit
in interface IChartLegend
public void setSizeFrom(int s)
IChartLegend
setSizeFrom
in interface IChartLegend
s
- minimum size.public void setSizeTo(int s)
IChartLegend
setSizeTo
in interface IChartLegend
s
- maximum size.public void setUnit(int unit)
IChartLegend
setUnit
in interface IChartLegend
public void setFieldSize(String f)
IChartLegend
setFieldSize
in interface IChartLegend
public void setFieldNormalize(String f)
IChartLegend
setFieldNormalize
in interface IChartLegend
public void setSizeOption(int option)
IChartLegend
setSizeOption
in interface IChartLegend
public boolean isActiveLimits()
IChartLegend
isActiveLimits
in interface IChartLegend
public void setActiveLimits(boolean b)
IChartLegend
setActiveLimits
in interface IChartLegend
public Color[] getColors()
IChartLegend
getColors
in interface IChartLegend
public void setColors(Color[] colors)
IChartLegend
setColors
in interface IChartLegend
public int getReferenceSystem()
getReferenceSystem
in interface IChartLegend
public void setReferenceSystem(int rs)
setReferenceSystem
in interface IChartLegend
public void setMinFeature(double min)
setMinFeature
in interface IChartLegend
public void setMaxFeature(double max)
setMaxFeature
in interface IChartLegend
public ISymbol getSymbolByFeature(Feature feat) throws MapContextException
VectorialUniqueValueLegend
getSymbolByFeature
in interface IVectorLegend
getSymbolByFeature
in class VectorialUniqueValueLegend
feat
- IFeatureMapContextException
public String[] getFieldNames()
public String[] getFieldLabels()
IChartLegend
getFieldLabels
in interface IChartLegend
public void setFields(String[] fields)
IChartLegend
setFields
in interface IChartLegend
public void setLabels(String[] fields)
setLabels
in interface IChartLegend
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