Class GridStyle
- All Implemented Interfaces:
Resettable, IGridStyle, AttributesRepresentable, Element, SpecificationRepresentable, MultiStateConfiguration<IGridStyle, ControlState>, MutableElement, RespondingMutableElement<IGridStyle>, BackgroundStyle<IGridStyle>, BorderStyle<IGridStyle>, ControlBaseStyle<IGridStyle>, ControlStyle<IGridStyle>, CornerStyle<IGridStyle>, PaddingStyle<IGridStyle>, ShadowStyle<IGridStyle>, SizeStyle<IGridStyle>
- Author:
- Silvan Wyss
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final booleanstatic final intstatic final Fontstatic final Colorstatic final intstatic final GridTypestatic final doublestatic final Colorstatic final LineDecorationFields inherited from class AbstractControlStyle
DEFAULT_BACKGROUND, DEFAULT_BORDER_COLOR, DEFAULT_BORDER_THICKNESS, DEFAULT_CORNER_RADIUS, DEFAULT_PADDING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanfinal IGridStyleforStateSetBoldTextFlag(ControlState state, boolean boldTextFlag) final IGridStyleforStateSetFont(ControlState state, Font font) final IGridStyleforStateSetOpacity(ControlState state, double opacity) final IGridStyleforStateSetTextColor(ControlState state, IColor textColor) forStateSetTextLineDecoration(ControlState state, LineDecoration textLineDecoration) final IGridStyleforStateSetTextSize(ControlState state, int textSize) final booleanintfinal FontgetFontWhenHasState(ControlState state) intfinal doublefinal IColorfinal intfinal voidvoidfinal voidvoidvoidvoidfinal voidfinal voidvoidfinal voidsetChildControlMarginForState(ControlState state, int childControlMargin) setGridColorForState(ControlState state, IColor gridColor) setGridThicknessForState(ControlState state, int gridThickness) setGridTypeForState(ControlState state, GridType gridType) Methods inherited from class AbstractControlStyle
definesHeightForState, definesWidthForState, forStateSetBackground, forStateSetBackgroundColor, forStateSetBackgroundColorGradient, forStateSetBackgroundImage, forStateSetBorderColor, forStateSetBorderThickness, forStateSetBottomBorderColor, forStateSetBottomBorderThickness, forStateSetBottomPadding, forStateSetCornerRadius, forStateSetCornerShadow, forStateSetCornerShadows, forStateSetCornerShadows, forStateSetHeight, forStateSetHeightInPercentOfViewArea, forStateSetLeftBorderColor, forStateSetLeftBorderThickness, forStateSetLeftPadding, forStateSetPadding, forStateSetRightBorderColor, forStateSetRightBorderThickness, forStateSetRightPadding, forStateSetTopBorderColor, forStateSetTopBorderThickness, forStateSetTopPadding, forStateSetWidth, forStateSetWidthInPercentOfViewAreaWidth, getBackgroundWhenHasState, getBottomBorderColorWhenHasState, getBottomBorderThicknessWhenHasState, getBottomPaddingWhenHasState, getCornerRadiusWhenHasState, getCornerShadowsWhenHasState, getHeightForState, getLeftBorderColorWhenHasState, getLeftBorderThicknessWhenHasState, getLeftPaddingWhenHasState, getRightBorderColorWhenHasState, getRightBorderThicknessWhenHasState, getRightPaddingWhenHasState, getTopBorderColorWhenHasState, getTopBorderThicknessWhenHasState, getTopPaddingWhenHasState, getWidthForState, removeCustomBackgrounds, removeCustomBorderColors, removeCustomBorderThicknesses, removeCustomBottomBorderColors, removeCustomBottomBorderThicknesses, removeCustomBottomPaddings, removeCustomCornerRadiuses, removeCustomCornerShadows, removeCustomHeights, removeCustomLeftBorderColors, removeCustomLeftBorderThicknesses, removeCustomLeftPaddings, removeCustomPaddings, removeCustomRightBorderColors, removeCustomRightBorderThicknesses, removeCustomRightPaddings, removeCustomTopBorderColors, removeCustomTopBorderThicknesses, removeCustomTopPaddings, removeCustomWidthsMethods inherited from class AbstractMultiStateConfiguration
addChild, addedOrChangedAttribute, addOrChangeAttribute, addOrChangeAttribute, getAttributes, getBaseState, removeChild, reset, setFromMethods inherited from class AbstractElement
equals, getSpecification, hashCode, toStringMethods inherited from interface AttributesRepresentable
getAttributesMethods inherited from interface BackgroundStyle
forStateSetBackground, forStateSetBackgroundColor, forStateSetBackgroundColorGradient, forStateSetBackgroundImage, getBackgroundWhenHasState, removeCustomBackgroundsMethods inherited from interface BorderStyle
forStateSetBorderColor, forStateSetBorderThickness, forStateSetBottomBorderColor, forStateSetBottomBorderThickness, forStateSetLeftBorderColor, forStateSetLeftBorderThickness, forStateSetRightBorderColor, forStateSetRightBorderThickness, forStateSetTopBorderColor, forStateSetTopBorderThickness, getBottomBorderColorWhenHasState, getBottomBorderThicknessWhenHasState, getLeftBorderColorWhenHasState, getLeftBorderThicknessWhenHasState, getRightBorderColorWhenHasState, getRightBorderThicknessWhenHasState, getTopBorderColorWhenHasState, getTopBorderThicknessWhenHasState, removeCustomBorderColors, removeCustomBorderThicknesses, removeCustomBottomBorderColors, removeCustomBottomBorderThicknesses, removeCustomLeftBorderColors, removeCustomLeftBorderThicknesses, removeCustomRightBorderColors, removeCustomRightBorderThicknesses, removeCustomTopBorderColors, removeCustomTopBorderThicknessesMethods inherited from interface ControlBaseStyle
definesTextLineDecorationForState, forStateSetBoldTextFlag, forStateSetFont, forStateSetOpacity, forStateSetTextColor, forStateSetTextLineDecoration, forStateSetTextSize, getBoldTextFlagWhenHasState, getFontWhenHasState, getOpacityWhenHasState, getTextColorWhenHasState, getTextLineDecorationWhenHasState, getTextSizeWhenHasState, removeCustomBoldTextFlags, removeCustomFonts, removeCustomOpacities, removeCustomTextColors, removeCustomTextLineDecorations, removeCustomTextSizesMethods inherited from interface CornerStyle
forStateSetCornerRadius, getCornerRadiusWhenHasState, removeCustomCornerRadiusesMethods inherited from interface MultiStateConfiguration
addChild, getBaseState, removeChildMethods inherited from interface MutableElement
addOrChangeAttribute, addOrChangeAttribute, addOrChangeAttributes, resetFromAttributes, resetFromSpecificationMethods inherited from interface PaddingStyle
forStateSetBottomPadding, forStateSetLeftPadding, forStateSetPadding, forStateSetRightPadding, forStateSetTopPadding, getBottomPaddingWhenHasState, getLeftPaddingWhenHasState, getRightPaddingWhenHasState, getTopPaddingWhenHasState, removeCustomBottomPaddings, removeCustomLeftPaddings, removeCustomPaddings, removeCustomRightPaddings, removeCustomTopPaddingsMethods inherited from interface Resettable
resetMethods inherited from interface RespondingMutableElement
addedOrChangedAttributeMethods inherited from interface ShadowStyle
forStateSetCornerShadow, forStateSetCornerShadows, forStateSetCornerShadows, getCornerShadowsWhenHasState, removeCustomCornerShadowsMethods inherited from interface SizeStyle
definesHeightForState, definesWidthForState, forStateSetHeight, forStateSetHeightInPercentOfViewArea, forStateSetWidth, forStateSetWidthInPercentOfViewAreaWidth, getHeightForState, getWidthForState, removeCustomHeights, removeCustomWidthsMethods inherited from interface SpecificationRepresentable
getSpecification, hasEqualSpecificationAsElement, toFormatedString
-
Field Details
-
DEFAULT_GRID_TYPE
-
DEFAULT_GRID_THICKNESS
public static final int DEFAULT_GRID_THICKNESS- See Also:
-
DEFAULT_GRID_COLOR
-
DEFAULT_CHILD_CONTROL_MARGIN
public static final int DEFAULT_CHILD_CONTROL_MARGIN- See Also:
-
DEFAULT_OPACITY
public static final double DEFAULT_OPACITY- See Also:
-
DEFAULT_FONT
-
DEFAULT_BOLD_TEXT_FLAG
public static final boolean DEFAULT_BOLD_TEXT_FLAG- See Also:
-
DEAULT_TEXT_SIZE
public static final int DEAULT_TEXT_SIZE- See Also:
-
DEFAULT_TEXT_LINE_DECORATION
-
DEFAULT_TEXT_COLOR
-
-
Constructor Details
-
GridStyle
public GridStyle()
-
-
Method Details
-
getChildControlMarginWhenHasState
- Specified by:
getChildControlMarginWhenHasStatein interfaceIGridStyle
-
getGridColorWhenHasState
- Specified by:
getGridColorWhenHasStatein interfaceIGridStyle
-
getGridThicknessWhenHasState
- Specified by:
getGridThicknessWhenHasStatein interfaceIGridStyle
-
getGridTypeWhenHasState
- Specified by:
getGridTypeWhenHasStatein interfaceIGridStyle
-
removeCustomChildControlMargins
public void removeCustomChildControlMargins()- Specified by:
removeCustomChildControlMarginsin interfaceIGridStyle
-
removeCustomGridColors
public void removeCustomGridColors()- Specified by:
removeCustomGridColorsin interfaceIGridStyle
-
removeCustomGridThicknesses
public void removeCustomGridThicknesses()- Specified by:
removeCustomGridThicknessesin interfaceIGridStyle
-
removeCustomGridTypes
public void removeCustomGridTypes()- Specified by:
removeCustomGridTypesin interfaceIGridStyle
-
setChildControlMarginForState
- Specified by:
setChildControlMarginForStatein interfaceIGridStyle
-
setGridColorForState
- Specified by:
setGridColorForStatein interfaceIGridStyle
-
setGridThicknessForState
- Specified by:
setGridThicknessForStatein interfaceIGridStyle
-
setGridTypeForState
- Specified by:
setGridTypeForStatein interfaceIGridStyle
-
definesTextLineDecorationForState
- Specified by:
definesTextLineDecorationForStatein interfaceControlBaseStyle<C extends ControlBaseStyle<C>>
-
getBoldTextFlagWhenHasState
- Specified by:
getBoldTextFlagWhenHasStatein interfaceControlBaseStyle<C extends ControlBaseStyle<C>>
-
getFontWhenHasState
- Specified by:
getFontWhenHasStatein interfaceControlBaseStyle<C extends ControlBaseStyle<C>>
-
getOpacityWhenHasState
- Specified by:
getOpacityWhenHasStatein interfaceControlBaseStyle<C extends ControlBaseStyle<C>>
-
getTextColorWhenHasState
- Specified by:
getTextColorWhenHasStatein interfaceControlBaseStyle<C extends ControlBaseStyle<C>>
-
getTextLineDecorationWhenHasState
- Specified by:
getTextLineDecorationWhenHasStatein interfaceControlBaseStyle<C extends ControlBaseStyle<C>>
-
getTextSizeWhenHasState
- Specified by:
getTextSizeWhenHasStatein interfaceControlBaseStyle<C extends ControlBaseStyle<C>>
-
removeCustomBoldTextFlags
public final void removeCustomBoldTextFlags()- Specified by:
removeCustomBoldTextFlagsin interfaceControlBaseStyle<C extends ControlBaseStyle<C>>
-
removeCustomFonts
public final void removeCustomFonts()- Specified by:
removeCustomFontsin interfaceControlBaseStyle<C extends ControlBaseStyle<C>>
-
removeCustomOpacities
public final void removeCustomOpacities()- Specified by:
removeCustomOpacitiesin interfaceControlBaseStyle<C extends ControlBaseStyle<C>>
-
removeCustomTextColors
public final void removeCustomTextColors()- Specified by:
removeCustomTextColorsin interfaceControlBaseStyle<C extends ControlBaseStyle<C>>
-
removeCustomTextLineDecorations
public void removeCustomTextLineDecorations()- Specified by:
removeCustomTextLineDecorationsin interfaceControlBaseStyle<C extends ControlBaseStyle<C>>
-
removeCustomTextSizes
public final void removeCustomTextSizes()- Specified by:
removeCustomTextSizesin interfaceControlBaseStyle<C extends ControlBaseStyle<C>>
-
forStateSetBoldTextFlag
- Specified by:
forStateSetBoldTextFlagin interfaceControlBaseStyle<C extends ControlBaseStyle<C>>
-
forStateSetFont
- Specified by:
forStateSetFontin interfaceControlBaseStyle<C extends ControlBaseStyle<C>>
-
forStateSetOpacity
- Specified by:
forStateSetOpacityin interfaceControlBaseStyle<C extends ControlBaseStyle<C>>
-
forStateSetTextColor
- Specified by:
forStateSetTextColorin interfaceControlBaseStyle<C extends ControlBaseStyle<C>>
-
forStateSetTextLineDecoration
public IGridStyle forStateSetTextLineDecoration(ControlState state, LineDecoration textLineDecoration) - Specified by:
forStateSetTextLineDecorationin interfaceControlBaseStyle<C extends ControlBaseStyle<C>>
-
forStateSetTextSize
- Specified by:
forStateSetTextSizein interfaceControlBaseStyle<C extends ControlBaseStyle<C>>
-