public class RecodedSolidFillLegend extends SolidFillLegend implements RecodedLegendStructure
Legend that represents a SolidFill where the color is defined
according to a Recode operation.| Constructor and Description |
|---|
RecodedSolidFillLegend(SolidFill fill)
Build a new
RecodedSolidFill from the given SolidFill. |
| Modifier and Type | Method and Description |
|---|---|
List<org.orbisgis.legend.structure.recode.RecodedLegend> |
getRecodedLegends()
Get all the instances of
RecodedLegend that are needed to configure this legend. |
void |
replaceColor(SeParameter sp)
Replace the
ColorParameter embedded in the inner SolidFill with sp. |
void |
replaceOpacity(SeParameter sp)
Replace the
RealParameter embedded in the inner SolidFill with sp. |
getFill, getFillColorLegend, getFillOpacityLegendpublic RecodedSolidFillLegend(SolidFill fill)
RecodedSolidFill from the given SolidFill. If it can't be recognized as a RecodedSolidFill, you'll receive UnsupportedOperationException or ClassCastException.fill - The original SolidFillpublic void replaceColor(SeParameter sp)
ColorParameter embedded in the inner SolidFill with sp. This method is called
when a type change occurs in the associated RecodedColor happens.sp - The new ColorParameterClassCastException - if sp is not a ColorParameterpublic void replaceOpacity(SeParameter sp)
RealParameter embedded in the inner SolidFill with sp. This method is called
when a type change occurs in the associated RecodedReal happens.sp - The new RealParameterClassCastException - if sp is not a RealParameterpublic 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.