public class RecodedPenStroke extends Object implements RecodedLegendStructure
PenStroke instances that just contain Recode
instances. These Recode must be linked to the same field and must
be simple analysis.| Constructor and Description |
|---|
RecodedPenStroke(PenStroke stroke)
Builds a
RecodedPenStroke from the given stroke. |
| Modifier and Type | Method and Description |
|---|---|
org.orbisgis.legend.structure.recode.RecodedString |
getDashLegend()
Gets the LegendStructure that is used to describe the dash patterns
in this PenStroke.
|
RecodedSolidFillLegend |
getFillLegend()
Gets the inner
RecodedSolidFillLegend. |
List<org.orbisgis.legend.structure.recode.RecodedLegend> |
getRecodedLegends()
Get all the instances of
RecodedLegend that are needed to configure this legend. |
org.orbisgis.legend.structure.recode.RecodedReal |
getWidthLegend()
Gets the legend that describe the width of the inner
PenStroke. |
void |
replaceDash(SeParameter sp)
Replace the
StringParameter embedded in the inner PenStroke with sp. |
void |
replaceWidth(SeParameter sp)
Replace the
RealParameter embedded in the inner PenStroke with sp. |
public RecodedPenStroke(PenStroke stroke)
RecodedPenStroke from the given stroke. You must be sure that the given parameter is valid.
You'll receive ClassCastException and UnsupportedOperationException if it's not...stroke - The original PenStroke we want to manage through this legend.public void replaceDash(SeParameter sp)
StringParameter embedded in the inner PenStroke with sp. This method is called
when a type change occurs in the associated RecodedString happens.sp - The new StringParameterClassCastException - if sp is not a StringParameterpublic void replaceWidth(SeParameter sp)
RealParameter embedded in the inner PenStroke with sp. This method is called
when a type change occurs in the associated RecodedString happens.sp - The new RealParameterClassCastException - if sp is not a RealParameterpublic final RecodedSolidFillLegend getFillLegend()
RecodedSolidFillLegend.RecodedSolidFillLegend.public final org.orbisgis.legend.structure.recode.RecodedReal getWidthLegend()
PenStroke.PenStroke.public final org.orbisgis.legend.structure.recode.RecodedString getDashLegend()
RecodedString representing the associated dash pattern.public List<org.orbisgis.legend.structure.recode.RecodedLegend> getRecodedLegends()
RecodedLegendStructureRecodedLegend that are needed to configure this legend.getRecodedLegends in interface RecodedLegendStructureCopyright © 2015 IRSTV CNRS-FR-2488. All Rights Reserved.