public class RecodedArea extends AbstractRecodedLegend<AreaParameters> implements EnablesStroke
MappedLegend.MappedLegendEntry, MappedLegend.NumComparator| Constructor and Description |
|---|
RecodedArea()
Default constructor : builds an empty classification based on the default
AreaSymbolizer. |
RecodedArea(AreaSymbolizer sym)
Builds a new
RecodedArea considering that sym matches the configuration constraints expected
by this class. |
| Modifier and Type | Method and Description |
|---|---|
AreaParameters |
get(Object objKey) |
AreaParameters |
getFallbackParameters()
Gets the configuration used to draw features we can't get a value for in the map in the style .
|
org.orbisgis.legend.structure.recode.RecodedColor |
getFillColor()
Gets the wrapper that manages the color of the line.
|
org.orbisgis.legend.structure.recode.RecodedReal |
getFillOpacity()
Gets the wrapper that manages the opacity of the line.
|
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() |
boolean |
isStrokeEnabled()
Returns true if the stroke of the associated symbolizer.
|
AreaParameters |
put(String key,
AreaParameters value) |
AreaParameters |
remove(Object objKey) |
void |
setFallbackParameters(AreaParameters ap)
Sets the fallback configuration according to the one given in argument.
|
void |
setStrokeEnabled(boolean enable)
Enables or disables the usage of a stroke for the drawn geometries.
|
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 RecodedArea()
AreaSymbolizer.public RecodedArea(AreaSymbolizer sym)
RecodedArea considering that sym matches the configuration constraints expected
by this class. That means it must be made of a PenStroke and of a SolidFill and that both of
them are built with literals or recode instances containing only literals, and that the recode instances are
all built with the same analysis field. Use the analyzer dedicated to area to check that automatically.sym - The base Symbolizerpublic Symbolizer getSymbolizer()
LegendSymbolizer.getSymbolizer in interface Legendpublic String getLegendTypeName()
LegendgetLegendTypeName in interface Legendpublic 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 org.orbisgis.legend.structure.recode.RecodedReal getFillOpacity()
public org.orbisgis.legend.structure.recode.RecodedColor getFillColor()
public Uom getStrokeUom()
StrokeUomgetStrokeUom in interface StrokeUompublic void setStrokeUom(Uom u)
StrokeUomsetStrokeUom in interface StrokeUompublic AreaParameters get(Object objKey)
get in interface Map<String,AreaParameters>public AreaParameters put(String key, AreaParameters value)
put in interface Map<String,AreaParameters>public AreaParameters remove(Object objKey)
remove in interface Map<String,AreaParameters>public List<org.orbisgis.legend.structure.recode.RecodedLegend> getRecodedLegends()
RecodedLegendStructureRecodedLegend that are needed to configure this legend.getRecodedLegends in interface RecodedLegendStructurepublic AreaParameters getFallbackParameters()
MappedLegendgetFallbackParameters in class MappedLegend<String,AreaParameters>public void setFallbackParameters(AreaParameters ap)
MappedLegendsetFallbackParameters in class MappedLegend<String,AreaParameters>ap - The new basis for the fallback configuration.public int hashCode()
public String getLegendTypeId()
LegendgetLegendTypeId in interface LegendgetLegendTypeId in class SymbolizerLegendpublic boolean isStrokeEnabled()
EnablesStrokeisStrokeEnabled in interface EnablesStrokePenStroke is not null.public void setStrokeEnabled(boolean enable)
EnablesStrokesetStrokeEnabled in interface EnablesStrokeenable - If true, the stroke will be drawn. If false, it won't be
drawn.Copyright © 2015 IRSTV CNRS-FR-2488. All Rights Reserved.