Interface HasPadding<T>
- Type Parameters:
T- origin class type
- All Known Implementing Classes:
AbstractEnhancedLabel,AbstractLegend,AbstractLegend.SelectorLabel,AbstractLegend.TextStyle,AbstractSeries.Tooltip,AbstractTooltip,AbstractVisualMap,AxisLabel,ContinuousVisualMap,Emphasis.IconStyle,GaugeSeries.AbstractGaugeText,GaugeSeries.Detail,GaugeSeries.Title,HasAxisName.NameTextStyle,InnerTooltip,Label,Label,Legend,LineSeries.EndLabel,PiecewiseVisualMap,Radar.AxisName,RichStyle,ScrollableLegend,Title,Tooltip
public interface HasPadding<T>
A component that has a space around content.
-
Method Summary
Modifier and TypeMethodDescriptionvoidsetPadding(Integer padding) Sets padding on each of the four sides or replaces an existing one.voidsetPadding(Integer vertical, Integer horizontal) Sets the top/bottom and left/right paddings or replaces an existing one.voidsetPadding(Integer top, Integer right, Integer bottom, Integer left) Sets each of the four paddings separately.default TwithPadding(Integer padding) default TwithPadding(Integer vertical, Integer horizontal) default TwithPadding(Integer top, Integer right, Integer bottom, Integer left)
-
Method Details
-
getPadding
Padding getPadding()- Returns:
- space around content
-
setPadding
Sets padding on each of the four sides or replaces an existing one. The unit is px.- Parameters:
padding- padding to set
-
setPadding
Sets the top/bottom and left/right paddings or replaces an existing one. The unit is px.- Parameters:
vertical- top and bottom padding to sethorizontal- left and right padding to set
-
setPadding
Sets each of the four paddings separately. The unit is px.- Parameters:
top- top padding to setright- right padding to setbottom- bottom padding to setleft- left padding to set
-
withPadding
- Parameters:
padding- padding to set- Returns:
- this
- See Also:
-
withPadding
- Parameters:
vertical- top and bottom padding to sethorizontal- left and right padding to set- Returns:
- this
- See Also:
-
withPadding
- Parameters:
top- top padding to setright- right padding to setbottom- bottom padding to setleft- left padding to set- Returns:
- this
- See Also:
-