public class VectorialIntervalLegend extends AbstractIntervalLegend
VectorialIntervalLegend (which should be better called GraduatedColorLegend) is a legend that allows to classify ranges of values using a color gradient based on a value.
The color gradient will be calculated according the starting color, the ending color and the amount of intervals.
| Modifier and Type | Class and Description |
|---|---|
static class |
VectorialIntervalLegend.RegisterLegend |
static class |
VectorialIntervalLegend.RegisterPersistence |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
VECTORIAL_INTERVAL_LEGEND_PERSISTENCE_DEFINITION_NAME |
defaultSymbol, EQUAL_INTERVALS, INTERVAL_LEGEND_PERSISTENCE_DEFINITION_NAME, intervalType, keys, NATURAL_INTERVALS, QUANTILE_INTERVALS, symbols, useDefaultSymbolCLASSIFIED_VECTOR_LEGEND_PERSISTENCE_DEFINITION_NAMELOG, VECTORIAL_LEGEND_PERSISTENCE_DEFINITION_NAME, zSortLEGEND_PERSISTENCE_DEFINITION_NAMELEGEND_NAME| Constructor and Description |
|---|
VectorialIntervalLegend()
Constructor method
|
VectorialIntervalLegend(int type)
Constructor method
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Creates a copy of the object.
|
IInterval |
createInterval(double min,
double max) |
java.lang.String |
getClassName() |
java.awt.Color |
getEndColor()
Returns the final color
|
int |
getShapeType()
Returns the type of the shape.
|
java.awt.Color |
getStartColor()
Returns the initial color.
|
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 |
setEndColor(java.awt.Color endColor)
Inserts the final color.
|
void |
setShapeType(int shapeType)
Defines the type of the shape.
|
void |
setStartColor(java.awt.Color startColor)
Inserts the initial color
|
addSymbol, calculateIntervals, clear, createSymbols, delSymbol, getDefaultSymbol, getDescriptions, getInterval, getIntervalType, getSymbol, getSymbolByFeature, getSymbolByInterval, getSymbols, getValues, isUseDefaultSymbol, replace, setDefaultSymbol, setIntervals, setIntervalType, useDefaultSymbolfireClassifiedSymbolChangeEvent, fireLegendClearEvent, getClassifyingFieldNames, getClassifyingFieldTypes, getRequiredFeatureAttributeNames, isSuitableForShapeType, setClassifyingFieldNames, setClassifyingFieldTypesdraw, draw, draw, drawFeatures, getZSort, internalDraw, isDrawSymbolInEeachPrimitive, print, print, setDrawSymbolInEeachPrimitive, 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, waitgetClassifyingFieldNames, getClassifyingFieldTypes, setClassifyingFieldNames, setClassifyingFieldTypesdraw, draw, isSuitableForShapeType, print, printaddLegendListener, cloneLegend, fireDefaultSymbolChangedEvent, getListeners, removeLegendListenercloneQuietly, cloneQuietlyaddDrawingObserver, deleteDrawingObserver, deleteDrawingObserverspublic static final java.lang.String VECTORIAL_INTERVAL_LEGEND_PERSISTENCE_DEFINITION_NAME
public VectorialIntervalLegend()
public VectorialIntervalLegend(int type)
type - type of the shape.public java.awt.Color getEndColor()
public void setEndColor(java.awt.Color endColor)
endColor - final color.public java.awt.Color getStartColor()
public void setStartColor(java.awt.Color startColor)
startColor - initial color.public int getShapeType()
IVectorLegendpublic void setShapeType(int shapeType)
IVectorLegendshapeType - type of the shape.public java.lang.String getClassName()
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
Cloneableclone in class AbstractIntervalLegendjava.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 IInterval createInterval(double min, double max)
public void loadFromState(PersistentState state) throws PersistenceException
PersistentloadFromState in interface PersistentloadFromState in class AbstractIntervalLegendPersistenceExceptionpublic void saveToState(PersistentState state) throws PersistenceException
PersistentsaveToState in interface PersistentsaveToState in class AbstractIntervalLegendPersistenceException