public class ProportionalStrokeLegend extends ConstantColorAndDashesPSLegend implements IInterpolationLegend
PenStroke is defined using a Width attribute, which is a
RealAttribute. Consequently, it can be defined as linearly interpolated upon
some numeric attribute. This way, we obtain a "proportional line" analysis.| Constructor and Description |
|---|
ProportionalStrokeLegend()
Builds an empty
ProportionalStrokeLegend. |
ProportionalStrokeLegend(PenStroke penStroke)
Builds a
ProportionalStrokeLegend from the given PenStroke. |
ProportionalStrokeLegend(PenStroke penStroke,
LinearInterpolationLegend width,
ConstantFillLegend fill,
LegendStructure dashes)
Build a new
ProportionalStrokeLegend, using the given PenStroke. |
| 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 |
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.
|
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.
|
getDashArray, getLineColor, getLineOpacity, setDashArray, setLineColor, setLineOpacitygetDashLegend, getFillAnalysis, getLineWidthLegend, getStroke, getStrokeUom, setDashLegend, setLineWidthLegend, setStrokeUompublic ProportionalStrokeLegend()
ProportionalStrokeLegend. It will change 0 to
0 and 1 to 1. The lookup field can't be properly set from this
method, it's up to the caller to do it.public ProportionalStrokeLegend(PenStroke penStroke)
ProportionalStrokeLegend from the given PenStroke. We suppose the given parameter has
been validated. Otherwise, we will receive ClassCastException during initialization.penStroke - public ProportionalStrokeLegend(PenStroke penStroke, LinearInterpolationLegend width, ConstantFillLegend fill, LegendStructure dashes)
ProportionalStrokeLegend, using the given PenStroke.penStroke - public 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 void setLookupFieldName(String name)
LookupFieldNamesetLookupFieldName in interface LookupFieldNamename - Namepublic String getLookupFieldName()
LookupFieldNamegetLookupFieldName in interface LookupFieldNameCopyright © 2015 IRSTV CNRS-FR-2488. All Rights Reserved.