Class SwitchPresentationModel
- java.lang.Object
-
- org.pushingpixels.radiance.component.api.common.model.SwitchPresentationModel
-
- All Implemented Interfaces:
ImmutablePresentationModel,PresentationModel
public class SwitchPresentationModel extends java.lang.Object implements ImmutablePresentationModel
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSwitchPresentationModel.Builder
-
Field Summary
Fields Modifier and Type Field Description static java.awt.InsetsDEFAULT_SWITCH_CONTENT_PADDINGstatic intSWITCH_THUMB_SIZE_OFFstatic intSWITCH_THUMB_SIZE_ONstatic intSWITCH_TRACK_HEIGHTstatic intSWITCH_TRACK_WIDTH
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SwitchPresentationModel.Builderbuilder()java.awt.InsetsgetContentPadding()HorizontalAlignmentgetHorizontalAlignment()RichTooltipPresentationModelgetRichTooltipPresentationModel()intgetThumbSizeOff()intgetThumbSizeOn()java.awt.DimensiongetTrackSize()
-
-
-
Field Detail
-
DEFAULT_SWITCH_CONTENT_PADDING
public static final java.awt.Insets DEFAULT_SWITCH_CONTENT_PADDING
-
SWITCH_TRACK_WIDTH
public static final int SWITCH_TRACK_WIDTH
- See Also:
- Constant Field Values
-
SWITCH_TRACK_HEIGHT
public static final int SWITCH_TRACK_HEIGHT
- See Also:
- Constant Field Values
-
SWITCH_THUMB_SIZE_ON
public static final int SWITCH_THUMB_SIZE_ON
- See Also:
- Constant Field Values
-
SWITCH_THUMB_SIZE_OFF
public static final int SWITCH_THUMB_SIZE_OFF
- See Also:
- Constant Field Values
-
-
Method Detail
-
builder
public static SwitchPresentationModel.Builder builder()
-
getContentPadding
public java.awt.Insets getContentPadding()
-
getTrackSize
public java.awt.Dimension getTrackSize()
-
getThumbSizeOn
public int getThumbSizeOn()
-
getThumbSizeOff
public int getThumbSizeOff()
-
getHorizontalAlignment
public HorizontalAlignment getHorizontalAlignment()
-
getRichTooltipPresentationModel
public RichTooltipPresentationModel getRichTooltipPresentationModel()
-
-