public class DefaultViewBox extends Object implements ViewBoxLegend
ViewBox instances can all be described as being associated to two
random NumericLegend instances. Consequently, this class is the base
legend description of ViewBox, and can be reused freely for more
accurate descriptions.| Constructor and Description |
|---|
DefaultViewBox()
Builds a new DefaultViewBox with 3 as height and width.
|
DefaultViewBox(NumericLegend nl,
boolean isHeight,
ViewBox view)
Build a new
DefaultViewBox. |
DefaultViewBox(NumericLegend height,
NumericLegend width,
ViewBox view)
Build a new
DefaultViewBox with the given parameters, using
directly the two needed NumericLegend instances. |
| Modifier and Type | Method and Description |
|---|---|
NumericLegend |
getHeightLegend()
Gets the
LegendStructure associated to the height of this ViewBox. |
ViewBox |
getViewBox()
Gets the
ViewBox associated to this LegendStructure. |
NumericLegend |
getWidthLegend()
Gets the
LegendStructure associated to the width of this ViewBox. |
void |
setHeightLegend(NumericLegend nl)
Gets the
LegendStructure associated to the height of this ViewBox. |
void |
setWidthLegend(NumericLegend nl)
Gets the
LegendStructure associated to the width of this ViewBox. |
public DefaultViewBox()
public DefaultViewBox(NumericLegend height, NumericLegend width, ViewBox view)
DefaultViewBox with the given parameters, using
directly the two needed NumericLegend instances.height - width - view - public DefaultViewBox(NumericLegend nl, boolean isHeight, ViewBox view)
DefaultViewBox. We have just one NumericLegend here. Its meaning is dependant on isHeight. If
isHeight, nl is supposed to be the description of the
height of view. If not , it is the description
of the width.nl - isHeight - view - public ViewBox getViewBox()
ViewBox associated to this LegendStructure.getViewBox in interface ViewBoxLegendpublic NumericLegend getHeightLegend()
LegendStructure associated to the height of this ViewBox.public NumericLegend getWidthLegend()
LegendStructure associated to the width of this ViewBox.public void setHeightLegend(NumericLegend nl)
LegendStructure associated to the height of this ViewBox.public void setWidthLegend(NumericLegend nl)
LegendStructure associated to the width of this ViewBox.nl - Copyright © 2015 IRSTV CNRS-FR-2488. All Rights Reserved.