Interface HasPosition<T>
- Type Parameters:
T- origin class type
- All Known Implementing Classes:
AbstractLegend,AbstractVisualMap,ContinuousVisualMap,FunnelSeries,Grid,Legend,PiecewiseVisualMap,PieSeries,ScrollableLegend,SliderDataZoom,Title,Toolbox
public interface HasPosition<T>
A component that has position.
-
Method Summary
Modifier and TypeMethodDescriptiongetLeft()getRight()getTop()voidSets a distance between component and the bottom side of the container.
Possible values are: A pixel value like"20".voidSets a distance between component and the left side of the container.
Possible values are: A pixel value like"20".voidSets a distance between component and the right side of the container.
Possible values are: A pixel value like"20".voidSets a distance between component and the top side of the container.
Possible values are: A pixel value like"20".default TwithBottom(String bottom) default Tdefault Tdefault T
-
Method Details
-
getLeft
String getLeft()- Returns:
- distance between component and the left side of the container
-
setLeft
Sets a distance between component and the left side of the container.
Possible values are:-
A pixel value like
"20". -
Percentage value relative to container width like
"20%". -
Predefined values like
"left","center","right".
- Parameters:
left- distance to set
-
A pixel value like
-
withLeft
- Parameters:
left- distance to set- Returns:
- this
- See Also:
-
getTop
String getTop()- Returns:
- distance between component and the top side of the container
-
setTop
Sets a distance between component and the top side of the container.
Possible values are:-
A pixel value like
"20". -
Percentage value relative to container width like
"20%". -
Predefined values like
"top","middle","bottom".
- Parameters:
top- distance to set
-
A pixel value like
-
withTop
- Parameters:
top- distance to set- Returns:
- this
- See Also:
-
getRight
String getRight()- Returns:
- distance between component and the right side of the container
-
setRight
Sets a distance between component and the right side of the container.
Possible values are:-
A pixel value like
"20". -
Percentage value relative to container width like
"20%".
- Parameters:
right- distance to set
-
A pixel value like
-
withRight
- Parameters:
right- distance to set- Returns:
- this
- See Also:
-
getBottom
String getBottom()- Returns:
- distance between component and the bottom side of the container
-
setBottom
Sets a distance between component and the bottom side of the container.
Possible values are:-
A pixel value like
"20". -
Percentage value relative to container width like
"20%".
- Parameters:
bottom- distance to set
-
A pixel value like
-
withBottom
- Parameters:
bottom- distance to set- Returns:
- this
- See Also:
-