public class ProportionalLine extends ConstantColorAndDashesLine implements IInterpolationLegend
ProportionalLine represents a LineSymbolizer containing a
PenStroke whose only varying parameter is the width of the line.
This width is defined thanks to a linear interpolation made directly on the
raw value (i.e. we don't apply any mathematical function to the input values).| Constructor and Description |
|---|
ProportionalLine() |
ProportionalLine(LineSymbolizer symbolizer)
Tries to build a new
ProportionalLine from the given LineSymbolizer. |
ProportionalLine(LineSymbolizer symbolizer,
ProportionalStrokeLegend legend)
Build a new
ProportionalLine instance from the given symbolizer
and legend. |
| Modifier and Type | Method and Description |
|---|---|
double |
getFirstData()
Gets the data of the first interpolation point.
|
double |
getFirstValue()
Gets the value of the first interpolation point as a double.
|
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.
|
String |
getLookupFieldName()
Gets the field name.
|
double |
getSecondData()
Gets the data of the second interpolation point.
|
double |
getSecondValue()
Gets the value of the second interpolation point as a double.
|
ProportionalStrokeLegend |
getStrokeLegend()
Get the
LegendStructure associated to the Stroke of this
ConstantColorAndDashesLine. |
void |
setFirstData(double d)
Sets the data of the first interpolation point.
|
void |
setFirstValue(double d)
Sets the value of the first interpolation point as a double.
|
void |
setLookupFieldName(String name)
Sets the field name.
|
void |
setSecondData(double d)
Sets the data of the second interpolation point
|
void |
setSecondValue(double d)
Set the value of the second interpolation point as a double.
|
getLineColor, getStrokeUom, getSymbolizer, setLineColor, setStrokeUomgetMaxScale, getMinScale, getName, setMaxScale, setMinScale, setNamepublic static final String NAME
public ProportionalLine()
public ProportionalLine(LineSymbolizer symbolizer)
ProportionalLine from the given LineSymbolizer. If a ProportionalLine can't be built, an IllegalArgumentException is thrown.symbolizer - public ProportionalLine(LineSymbolizer symbolizer, ProportionalStrokeLegend legend)
ProportionalLine instance from the given symbolizer
and legend. As the inner analysis is given directly with the symbolizer,
we won't check they match. It is up to the caller to check they do.symbolizer - legend - public String getLookupFieldName()
LookupFieldNamegetLookupFieldName in interface LookupFieldNamepublic void setLookupFieldName(String name)
LookupFieldNamesetLookupFieldName in interface LookupFieldNamename - Namepublic ProportionalStrokeLegend getStrokeLegend()
ConstantColorAndDashesLineLegendStructure associated to the Stroke of this
ConstantColorAndDashesLine. This method is abstract, as it is the
only particularity of the implementations.getStrokeLegend in class ConstantColorAndDashesLinepublic double getFirstData()
IInterpolationLegendgetFirstData in interface IInterpolationLegendpublic double getSecondData()
IInterpolationLegendgetSecondData in interface IInterpolationLegendpublic void setFirstData(double d)
IInterpolationLegendsetFirstData in interface IInterpolationLegendd - First interpolation point data to setpublic void setSecondData(double d)
IInterpolationLegendsetSecondData in interface IInterpolationLegendd - Second interpolation point data to setpublic double getFirstValue()
throws ParameterException
IInterpolationLegendgetFirstValue in interface IInterpolationLegendParameterException - If a problem is encountered while retrieving
the double value.public void setFirstValue(double d)
IInterpolationLegendsetFirstValue in interface IInterpolationLegendd - First value to setpublic double getSecondValue()
throws ParameterException
IInterpolationLegendgetSecondValue in interface IInterpolationLegendParameterException - If a problem is encountered while retrieving
the double value.public void setSecondValue(double d)
IInterpolationLegendsetSecondValue in interface IInterpolationLegendd - Second value to setpublic String getLegendTypeName()
LegendgetLegendTypeName in interface Legendpublic String getLegendTypeId()
LegendgetLegendTypeId in interface LegendgetLegendTypeId in class SymbolizerLegendCopyright © 2015 IRSTV CNRS-FR-2488. All Rights Reserved.