public class RecodedLine extends AbstractRecodedLegend<LineParameters>
PenStroke where parameters are made of
Recode instances on a common field or of Literal.MappedLegend.MappedLegendEntry, MappedLegend.NumComparator| Constructor and Description |
|---|
RecodedLine()
Default constructor.
|
RecodedLine(LineSymbolizer sym)
Builds a new
RecodedLine instance from the given LineSymbolizer. |
| Modifier and Type | Method and Description |
|---|---|
LineParameters |
get(Object objKey)
Gets the
LineParameters that is used to build the line associated to key. |
LineParameters |
getFallbackParameters()
Gets the configuration used to draw features we can't get a value for in the map in the style .
|
String |
getLegendTypeId()
Returns an Id that will be used to check that a Legend can be edited
with a given edition panel.
|
String |
getLegendTypeName()
Returns a string that describes - for human - the nature of the
thematic analysis made in this Legend.
|
org.orbisgis.legend.structure.recode.RecodedColor |
getLineColor()
Gets the wrapper that manages the color of the line.
|
org.orbisgis.legend.structure.recode.RecodedString |
getLineDash()
Gets the wrapper that manages the dash pattern of the line.
|
org.orbisgis.legend.structure.recode.RecodedReal |
getLineOpacity()
Gets the wrapper that manages the opacity of the line.
|
org.orbisgis.legend.structure.recode.RecodedReal |
getLineWidth()
Gets the wrapper that manages the width of the line.
|
List<org.orbisgis.legend.structure.recode.RecodedLegend> |
getRecodedLegends()
Get all the instances of
RecodedLegend that are needed to configure this legend. |
Uom |
getStrokeUom()
Gets the unit of measure used to compute the form of the stroke.
|
Symbolizer |
getSymbolizer()
Gets the associated
Symbolizer. |
int |
hashCode() |
LineParameters |
put(String key,
LineParameters value)
Puts the given line configuration in the unique values managed by this
RecodedLine. |
LineParameters |
remove(Object objKey)
Removes the mapping for the given key.
|
void |
setFallbackParameters(LineParameters lps)
Sets the fallback configuration according to the one given in argument.
|
void |
setStrokeUom(Uom u)
Sets the unit of measure used to compute the form of the stroke.
|
applyGlobalVisitor, applyGlobalVisitor, getComparator, getNotUsedKeyclear, containsKey, containsValue, entrySet, equals, getLookupFieldName, isEmpty, keySet, putAll, setComparator, setLookupFieldName, size, valuesgetMaxScale, getMinScale, getName, setMaxScale, setMinScale, setNamepublic static final String NAME
public RecodedLine()
RecodedLine from scratch using a constant LineSymbolizer that
embeds a constant PenStroke.public RecodedLine(LineSymbolizer sym)
RecodedLine instance from the given LineSymbolizer. Take care to validate the
configuration of the symbolizer before calling this constructor.sym - The original LineSymbolizer.ClassCastExceptionUnsupportedOperationException - If the inner stroke is not a PenStroke instance.IllegalStateException - If the inner parameters have different analysis fields.public org.orbisgis.legend.structure.recode.RecodedReal getLineWidth()
public org.orbisgis.legend.structure.recode.RecodedReal getLineOpacity()
public org.orbisgis.legend.structure.recode.RecodedColor getLineColor()
public org.orbisgis.legend.structure.recode.RecodedString getLineDash()
public LineParameters get(Object objKey)
LineParameters that is used to build the line associated to key.objKey - The key of the mapLineParameters instance associated to key.public LineParameters put(String key, LineParameters value)
RecodedLine. If there was
already a value associated to key, the former configuration is returned by the method.key - Key with which the specified value is to be associatedvalue - Value to be associated with the specified keykey, if any, null otherwise.NullPointerException - if key or value are null.public int hashCode()
public LineParameters remove(Object objKey)
objKey - The key we want to remove from this unique value analysis. If it's not a String, a
ClassCastException will be thrown.public Symbolizer getSymbolizer()
LegendSymbolizer.public String getLegendTypeName()
Legendpublic Uom getStrokeUom()
StrokeUompublic void setStrokeUom(Uom u)
StrokeUompublic List<org.orbisgis.legend.structure.recode.RecodedLegend> getRecodedLegends()
RecodedLegendStructureRecodedLegend that are needed to configure this legend.public LineParameters getFallbackParameters()
MappedLegendgetFallbackParameters in class MappedLegend<String,LineParameters>public void setFallbackParameters(LineParameters lps)
MappedLegendsetFallbackParameters in class MappedLegend<String,LineParameters>lps - The new basis for the fallback configuration.public String getLegendTypeId()
LegendgetLegendTypeId in interface LegendgetLegendTypeId in class SymbolizerLegendCopyright © 2015 IRSTV CNRS-FR-2488. All Rights Reserved.