Interface HasShadow<T>
- Type Parameters:
T
- origin class type
- All Known Implementing Classes:
AbstractAreaStyle
,AbstractAxisPointer.Handle
,AbstractBorderedTextStyle
,AbstractEnhancedLabel
,AbstractItemStyle
,AbstractLegend
,AbstractLegend.SelectorLabel
,AbstractLegend.TextStyle
,AreaStyle
,AxisLabel
,BarSeries.BackgroundStyle
,BarSeries.ItemStyle
,CandlestickSeries.ItemStyle
,Emphasis.IconStyle
,GaugeSeries.AbstractGaugeText
,GaugeSeries.AxisLine.LineStyle
,GaugeSeries.Detail
,GaugeSeries.Title
,Grid
,HasAxisName.NameTextStyle
,ItemStyle
,ItemStyleWithDecal
,Label
,Label
,Legend
,LineSeries.AbstractLineElement.AreaStyle
,LineSeries.AreaStyle
,LineSeries.EndLabel
,LineSeries.ItemStyle
,LineStyle
,Radar.AxisName
,RadarSeries.AreaStyle
,RichStyle
,ScrollableLegend
,ShadowStyle
,Title
public interface HasShadow<T>
A component that has shadow.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setShadowBlur
(Integer shadowBlur) Sets depth of shadow blur or replaces an existing one.void
setShadowColor
(Color shadowColor) Sets a color for shadow or replaces an existing one.void
setShadowOffsetX
(Integer shadowOffsetX) Sets horizontal offset for shadow or replaces an existing one.void
setShadowOffsetY
(Integer shadowOffsetY) Sets vertical offset for shadow or replaces an existing one.default T
withShadowBlur
(Integer shadowBlur) default T
withShadowColor
(Color shadowColor) default T
withShadowOffsetX
(Integer shadowOffsetX) default T
withShadowOffsetY
(Integer shadowOffsetY)
-
Method Details
-
getShadowBlur
Integer getShadowBlur()- Returns:
- depth of shadow blur
-
setShadowBlur
Sets depth of shadow blur or replaces an existing one.- Parameters:
shadowBlur
- depth of shadow blur
-
withShadowBlur
- Parameters:
shadowBlur
- depth of shadow blur- Returns:
- this
- See Also:
-
getShadowColor
Color getShadowColor()- Returns:
- shadow color
-
getShadowOffsetX
Integer getShadowOffsetX()- Returns:
- horizontal offset for shadow in pixels
-
setShadowOffsetX
Sets horizontal offset for shadow or replaces an existing one.- Parameters:
shadowOffsetX
- offset to set in pixels
-
withShadowOffsetX
- Parameters:
shadowOffsetX
- offset to set in pixels- Returns:
- this
- See Also:
-
getShadowOffsetY
Integer getShadowOffsetY()- Returns:
- vertical offset for shadow in pixels
-
setShadowOffsetY
Sets vertical offset for shadow or replaces an existing one.- Parameters:
shadowOffsetY
- offset to set in pixels
-
withShadowOffsetY
- Parameters:
shadowOffsetY
- offset to set in pixels- Returns:
- this
- See Also:
-