public class CSSObject extends BaseOption
Maps to the Highcharts CSSObject and Highcharts.CSSObject data types.
Example: chart.style
ref: https://api.highcharts.com/highcharts/chart.style
Constructor and Description |
---|
CSSObject() |
CSSObject(String cssValue)
Contruct with a CSS Javascript value.
|
Modifier and Type | Method and Description |
---|---|
boolean |
_isOptionNull(String option) |
String |
getBackground()
Background style for the element.
|
Color |
getBackgroundColor()
Background color of the element.
|
String |
getBorder()
Border style for the element.
|
Number |
getBorderRadius()
Radius of the element border.
|
Color |
getColor()
Color used in the element.
|
String |
getCssValue()
Get the the CSS Javascript value.
|
String |
getCursor()
Style of the mouse cursor when resting over the element.
|
String |
getFontFamily()
Font family of the element text.
|
String |
getFontSize()
Font size of the element text.
|
String |
getFontStyle() |
String |
getFontWeight()
Font weight of the element text.
|
Number |
getHeight()
Height of the element.
|
Number |
getLineWidth()
Width of the element border.
|
Number |
getOpacity()
Opacity of the element.
|
String |
getPadding()
Space around the element content.
|
String |
getPointerEvents()
Behaviour of the element when the mouse cursor rests over it.
|
String |
getPosition()
Positioning of the element.
|
String |
getRawValue()
Get raw CSS Javascript Value.
|
String |
getTextAlign()
Alignment of the element text.
|
String |
getTextDecoration()
Additional decoration of the element text.
|
String |
getTextOutline()
Outline style of the element text.
|
String |
getTextOverflow()
Line break style of the element text.
|
String |
getTop()
Top spacing of the element relative to the parent element.
|
String |
getTransition()
Animated transition of selected element properties.
|
String |
getWhiteSpace()
Line break style of the element text.
|
Number |
getWidth()
Width of the element.
|
CSSObject |
setBackground(String background)
Background style for the element.
|
CSSObject |
setBackgroundColor(Color backgroundColor)
Background color of the element.
|
CSSObject |
setBorder(String border)
Border style for the element.
|
CSSObject |
setBorderRadius(Number borderRadius)
Radius of the element border.
|
CSSObject |
setColor(Color color)
Color used in the element.
|
CSSObject |
setCssValue(String cssValue)
Set the CSS Javascript value.
|
CSSObject |
setCursor(String cursor)
Style of the mouse cursor when resting over the element.
|
CSSObject |
setFontFamily(String fontFamily)
Font family of the element text.
|
CSSObject |
setFontSize(String fontSize)
Font size of the element text.
|
CSSObject |
setFontStyle(String fontStyle) |
CSSObject |
setFontWeight(String fontWeight)
Font weight of the element text.
|
CSSObject |
setHeight(Number height)
Height of the element.
|
CSSObject |
setLineWidth(Number lineWidth)
Width of the element border.
|
CSSObject |
setOpacity(Number opacity)
Opacity of the element.
|
CSSObject |
setPadding(String padding)
Space around the element content.
|
CSSObject |
setPointerEvents(String pointerEvents)
Behaviour of the element when the mouse cursor rests over it.
|
CSSObject |
setPosition(String position)
Positioning of the element.
|
CSSObject |
setTextAlign(String textAlign)
Alignment of the element text.
|
CSSObject |
setTextDecoration(String textDecoration)
Additional decoration of the element text.
|
CSSObject |
setTextOutline(String textOutline)
Outline style of the element text.
|
CSSObject |
setTextOverflow(String textOverflow)
Line break style of the element text.
|
CSSObject |
setTop(String top)
Top spacing of the element relative to the parent element.
|
CSSObject |
setTransition(String transition)
Animated transition of selected element properties.
|
CSSObject |
setWhiteSpace(String whiteSpace)
Line break style of the element text.
|
CSSObject |
setWidth(Number width)
Width of the element.
|
set_hcNulledOption
public static final CSSObject NULL
public CSSObject()
public CSSObject(String cssValue)
cssValue
- the cssobject Javascript value.public String getRawValue()
public CSSObject setCssValue(String cssValue)
cssValue
- the css Javascript value.public String getCssValue()
public boolean _isOptionNull(String option)
option
- the option to test is nullpublic String getBackground()
public CSSObject setBackground(String background)
background
- the value for the background optionpublic Color getBackgroundColor()
public CSSObject setBackgroundColor(Color backgroundColor)
backgroundColor
- the value for the backgroundColor optionpublic String getBorder()
public CSSObject setBorder(String border)
border
- the value for the border optionpublic Number getBorderRadius()
public CSSObject setBorderRadius(Number borderRadius)
borderRadius
- the value for the borderRadius optionpublic Color getColor()
public CSSObject setColor(Color color)
color
- the value for the color optionpublic String getCursor()
public CSSObject setCursor(String cursor)
cursor
- the value for the cursor optionpublic String getFontFamily()
public CSSObject setFontFamily(String fontFamily)
fontFamily
- the value for the fontFamily optionpublic String getFontSize()
public CSSObject setFontSize(String fontSize)
fontSize
- the value for the fontSize optionpublic String getFontStyle()
public CSSObject setFontStyle(String fontStyle)
fontStyle
- the value for the fontStyle optionpublic String getFontWeight()
public CSSObject setFontWeight(String fontWeight)
fontWeight
- the value for the fontWeight optionpublic Number getHeight()
public CSSObject setHeight(Number height)
height
- the value for the height optionpublic Number getLineWidth()
public CSSObject setLineWidth(Number lineWidth)
lineWidth
- the value for the lineWidth optionpublic Number getOpacity()
public CSSObject setOpacity(Number opacity)
opacity
- the value for the opacity optionpublic String getPadding()
public CSSObject setPadding(String padding)
padding
- the value for the padding optionpublic String getPointerEvents()
public CSSObject setPointerEvents(String pointerEvents)
pointerEvents
- the value for the pointerEvents optionpublic String getPosition()
public CSSObject setPosition(String position)
position
- the value for the position optionpublic String getTextAlign()
public CSSObject setTextAlign(String textAlign)
textAlign
- the value for the textAlign optionpublic String getTextDecoration()
public CSSObject setTextDecoration(String textDecoration)
textDecoration
- the value for the textDecoration optionpublic String getTextOutline()
public CSSObject setTextOutline(String textOutline)
textOutline
- the value for the textOutline optionpublic String getTextOverflow()
public CSSObject setTextOverflow(String textOverflow)
textOverflow
- the value for the textOverflow optionpublic String getTop()
public CSSObject setTop(String top)
top
- the value for the top optionpublic String getTransition()
public CSSObject setTransition(String transition)
transition
- the value for the transition optionpublic String getWhiteSpace()
public CSSObject setWhiteSpace(String whiteSpace)
whiteSpace
- the value for the whiteSpace optionpublic Number getWidth()
Copyright © 2022. All rights reserved.