public class MonovariateProportionalViewBox extends DefaultViewBox implements IInterpolationLegend
ViewBox,
and it is associated to an Interpolation that can be recognized as a
SqrtInterpolationLegend.| Constructor and Description |
|---|
MonovariateProportionalViewBox()
Builds a new
MonovariateProportionalViewBox. |
MonovariateProportionalViewBox(SqrtInterpolationLegend inter,
boolean onHeight,
ViewBox view)
Build a new
MonovariateProportionalViewBox using the given
SqrtInterpolationLegend and boolean instances. |
| 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.
|
SqrtInterpolationLegend |
getInterpolation()
Get the
SqrtInterpolationLegend associated to 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.
|
boolean |
isOnHeight()
This method lets us check if the interpolation is made on the width
or on the height of the
ViewBox. |
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.
|
getHeightLegend, getViewBox, getWidthLegend, setHeightLegend, setWidthLegendpublic MonovariateProportionalViewBox()
MonovariateProportionalViewBox. It contains a
ViewBox with a null width and an interpolated height.
Interpolation is built such than 1 gives 1. Note that the lookup
value won't be set from this constructor, this has to be made
externally !public MonovariateProportionalViewBox(SqrtInterpolationLegend inter, boolean onHeight, ViewBox view)
MonovariateProportionalViewBox using the given
SqrtInterpolationLegend and boolean instances. onHeight is used to know if the interpolation is made on the height
(onHeight is true) or on the width (onHeight is
false) of the associated ViewBox;inter - view - onHeight - public SqrtInterpolationLegend getInterpolation()
SqrtInterpolationLegend associated to this Legend.SqrtInterpolationLegend instance.public boolean isOnHeight()
ViewBox.true if the interpolation is made on the height of the
ViewBox, ie if getViewBox().getHeight() returns a
not-null instance of Interpolate.public double getFirstData()
IInterpolationLegendgetFirstData in interface IInterpolationLegendpublic void setFirstData(double d)
IInterpolationLegendsetFirstData in interface IInterpolationLegendd - First interpolation point data to setpublic double getSecondData()
IInterpolationLegendgetSecondData in interface IInterpolationLegendpublic 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 getLookupFieldName()
LookupFieldNamegetLookupFieldName in interface LookupFieldNamepublic void setLookupFieldName(String name)
LookupFieldNamesetLookupFieldName in interface LookupFieldNamename - NameCopyright © 2015 IRSTV CNRS-FR-2488. All Rights Reserved.