Class Position
- java.lang.Object
-
- com.vaadin.flow.component.charts.model.AbstractConfigurationObject
-
- com.vaadin.flow.component.charts.model.Position
-
- All Implemented Interfaces:
Serializable
public class Position extends AbstractConfigurationObject
Position configuration for the credits label. Supported properties are align, verticalAlign, x and y. Defaults to position: { align: 'right', x: -10, verticalAlign: 'bottom', y: -5 }- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Position()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HorizontalAlign
getHorizontalAlign()
VerticalAlign
getVerticalAlign()
Number
getX()
Number
getY()
void
setHorizontalAlign(HorizontalAlign horizontalAlign)
The horizontal alignment of the credits.void
setVerticalAlign(VerticalAlign verticalAlign)
Sets the vertical alignment of the credits.void
setX(Number x)
The X position of the credits.void
setY(Number y)
The Y position of the credits.
-
-
-
Method Detail
-
getVerticalAlign
public VerticalAlign getVerticalAlign()
- Returns:
- the verticalAlign
- See Also:
setVerticalAlign(VerticalAlign)
-
setVerticalAlign
public void setVerticalAlign(VerticalAlign verticalAlign)
Sets the vertical alignment of the credits. Can be one ofVerticalAlign.TOP
,VerticalAlign.MIDDLE
andVerticalAlign.BOTTOM
. Defaults toVerticalAlign.TOP
.- Parameters:
verticalAlign
- the align to set
-
getHorizontalAlign
public HorizontalAlign getHorizontalAlign()
- Returns:
- the horizontal alignment
- See Also:
setHorizontalAlign(HorizontalAlign)
-
setHorizontalAlign
public void setHorizontalAlign(HorizontalAlign horizontalAlign)
The horizontal alignment of the credits. Can be one ofHorizontalAlign.LEFT
,HorizontalAlign.CENTER
andHorizontalAlign.RIGHT
. Defaults toHorizontalAlign.CENTER
.- Parameters:
horizontalAlign
- the alignment to set
-
getX
public Number getX()
- Returns:
- the X position of the credits
- See Also:
setX(Number)
-
setX
public void setX(Number x)
The X position of the credits. Defaults to -10.- Parameters:
x
- the X position to set
-
getY
public Number getY()
- Returns:
- the Y position of the credits
- See Also:
setY(Number)
-
setY
public void setY(Number y)
The Y position of the credits. Defaults to -5.- Parameters:
y
- the Y position to set
-
-