public class ConstantViewBox extends DefaultViewBox
| Constructor and Description |
|---|
ConstantViewBox(RealLiteralLegend realLiteralLegend,
boolean isHeight,
ViewBox vb)
As
ViewBox instances can be defined with only one dimension
parameter, we must be able to treat this case. |
ConstantViewBox(RealLiteralLegend height,
RealLiteralLegend width,
ViewBox view)
Build a new instance of
ConstantViewBox. |
| Modifier and Type | Method and Description |
|---|---|
Double |
getHeight()
Gets the height of the associated
ViewBox. |
Double |
getWidth()
Gets the width of the associated
ViewBox. |
void |
setHeight(Double d)
Set the Width of this ViewBox.
|
void |
setWidth(Double d)
Set the Width of this ViewBox.
|
getHeightLegend, getViewBox, getWidthLegend, setHeightLegend, setWidthLegendpublic ConstantViewBox(RealLiteralLegend height, RealLiteralLegend width, ViewBox view)
ConstantViewBox. We directly use RealLiteralLegend instances.height - width - view - public ConstantViewBox(RealLiteralLegend realLiteralLegend, boolean isHeight, ViewBox vb)
ViewBox instances can be defined with only one dimension
parameter, we must be able to treat this case.realLiteralLegend - isHeight - vb - public Double getWidth()
ViewBox. As it is defined
as a Literal, its value is constant whatever the input data
are.Double that can be null. A ViewBox can be defined with
only one dimension set.public Double getHeight()
ViewBox. As it is defined
as a Literal, its value is constant whatever the input data
are.Double that can be null. A ViewBox can be defined with
only one dimension set.public void setHeight(Double d)
d - A Double that can be null. A ViewBox can be defined with
only one dimension set.IllegalArgumentException - If d is null and getHeight() returns null too. At
least one of the dimensions must be not null.public void setWidth(Double d)
d - A Double that can be null. A ViewBox can be defined with
only one dimension set.IllegalArgumentException - If d is null and getHeight() returns null too. At
least one of the dimensions must be not null.Copyright © 2015 IRSTV CNRS-FR-2488. All Rights Reserved.