public class PatternOptions extends BaseOption
Maps to the Highcharts.PatternOptionsObject data type.
Eg. chart.style
ref: https://api.highcharts.com/class-reference/Highcharts.PatternOptionsObject
Constructor and Description |
---|
PatternOptions() |
Modifier and Type | Method and Description |
---|---|
Number |
aspectRatio()
For automatically calculated width and height on images, it is possible to set an aspect ratio.
|
PatternOptions |
aspectRatio(Number aspectRatio)
For automatically calculated width and height on images, it is possible to set an aspect ratio.
|
Color |
backgroundColor()
Background color for the pattern if a path is set (not images).
|
PatternOptions |
backgroundColor(Color backgroundColor)
Background color for the pattern if a path is set (not images).
|
Color |
color()
Pattern color, used as default path stroke.
|
PatternOptions |
color(Color color)
Pattern color, used as default path stroke.
|
Number |
getAspectRatio()
For automatically calculated width and height on images, it is possible to set an aspect ratio.
|
Color |
getBackgroundColor()
Background color for the pattern if a path is set (not images).
|
Color |
getColor()
Pattern color, used as default path stroke.
|
Number |
getHeight()
Analogous to pattern.width.
|
String |
getId()
ID to assign to the pattern.
|
String |
getImage()
URL to an image to use as the pattern.
|
Number |
getOpacity()
Opacity of the pattern as a float value from 0 to 1.
|
SVGAttributes |
getPathAsObject()
Either an SVG path as string, or an object.
|
String |
getPathAsString()
Either an SVG path as string, or an object.
|
Number |
getWidth()
Width of the pattern.
|
Number |
getX()
Horizontal offset of the pattern.
|
Number |
getY()
Vertical offset of the pattern.
|
Number |
height()
Analogous to pattern.width.
|
PatternOptions |
height(Number height)
Analogous to pattern.width.
|
String |
id()
ID to assign to the pattern.
|
PatternOptions |
id(String id)
ID to assign to the pattern.
|
String |
image()
URL to an image to use as the pattern.
|
PatternOptions |
image(String image)
URL to an image to use as the pattern.
|
Number |
opacity()
Opacity of the pattern as a float value from 0 to 1.
|
PatternOptions |
opacity(Number opacity)
Opacity of the pattern as a float value from 0 to 1.
|
SVGAttributes |
pathAsObject()
Either an SVG path as string, or an object.
|
PatternOptions |
pathAsObject(SVGAttributes pathAsObject)
Either an SVG path as string, or an object.
|
String |
pathAsString()
Either an SVG path as string, or an object.
|
PatternOptions |
pathAsString(String pathAsString)
Either an SVG path as string, or an object.
|
PatternOptions |
setAspectRatio(Number aspectRatio)
For automatically calculated width and height on images, it is possible to set an aspect ratio.
|
PatternOptions |
setBackgroundColor(Color backgroundColor)
Background color for the pattern if a path is set (not images).
|
PatternOptions |
setColor(Color color)
Pattern color, used as default path stroke.
|
PatternOptions |
setHeight(Number height)
Analogous to pattern.width.
|
PatternOptions |
setId(String id)
ID to assign to the pattern.
|
PatternOptions |
setImage(String image)
URL to an image to use as the pattern.
|
PatternOptions |
setOpacity(Number opacity)
Opacity of the pattern as a float value from 0 to 1.
|
PatternOptions |
setPathAsObject(SVGAttributes pathAsObject)
Either an SVG path as string, or an object.
|
PatternOptions |
setPathAsString(String pathAsString)
Either an SVG path as string, or an object.
|
PatternOptions |
setWidth(Number width)
Width of the pattern.
|
PatternOptions |
setX(Number x)
Horizontal offset of the pattern.
|
PatternOptions |
setY(Number y)
Vertical offset of the pattern.
|
Number |
width()
Width of the pattern.
|
PatternOptions |
width(Number width)
Width of the pattern.
|
Number |
x()
Horizontal offset of the pattern.
|
PatternOptions |
x(Number x)
Horizontal offset of the pattern.
|
Number |
y()
Vertical offset of the pattern.
|
PatternOptions |
y(Number y)
Vertical offset of the pattern.
|
set_hcNulledOption
public Number aspectRatio()
public PatternOptions aspectRatio(Number aspectRatio)
aspectRatio
- the value for the aspectRatio optionpublic Number getAspectRatio()
public PatternOptions setAspectRatio(Number aspectRatio)
aspectRatio
- the value for the aspectRatio optionpublic Color backgroundColor()
public PatternOptions backgroundColor(Color backgroundColor)
backgroundColor
- the value for the backgroundColor optionpublic Color getBackgroundColor()
public PatternOptions setBackgroundColor(Color backgroundColor)
backgroundColor
- the value for the backgroundColor optionpublic Color color()
public PatternOptions color(Color color)
color
- the value for the color optionpublic Color getColor()
public PatternOptions setColor(Color color)
color
- the value for the color optionpublic Number height()
public PatternOptions height(Number height)
height
- the value for the height optionpublic Number getHeight()
public PatternOptions setHeight(Number height)
height
- the value for the height optionpublic String id()
public PatternOptions id(String id)
id
- the value for the id optionpublic String getId()
public PatternOptions setId(String id)
id
- the value for the id optionpublic String image()
public PatternOptions image(String image)
image
- the value for the image optionpublic String getImage()
public PatternOptions setImage(String image)
image
- the value for the image optionpublic Number opacity()
public PatternOptions opacity(Number opacity)
opacity
- the value for the opacity optionpublic Number getOpacity()
public PatternOptions setOpacity(Number opacity)
opacity
- the value for the opacity optionpublic SVGAttributes pathAsObject()
public PatternOptions pathAsObject(SVGAttributes pathAsObject)
pathAsObject
- the value for the pathAsObject optionpublic SVGAttributes getPathAsObject()
public PatternOptions setPathAsObject(SVGAttributes pathAsObject)
pathAsObject
- the value for the pathAsObject optionpublic String pathAsString()
public PatternOptions pathAsString(String pathAsString)
pathAsString
- the value for the pathAsString optionpublic String getPathAsString()
public PatternOptions setPathAsString(String pathAsString)
pathAsString
- the value for the pathAsString optionpublic Number width()
public PatternOptions width(Number width)
width
- the value for the width optionpublic Number getWidth()
public PatternOptions setWidth(Number width)
width
- the value for the width optionpublic Number x()
public PatternOptions x(Number x)
x
- the value for the x optionpublic Number getX()
public PatternOptions setX(Number x)
x
- the value for the x optionpublic Number y()
public PatternOptions y(Number y)
y
- the value for the y optionpublic Number getY()
public PatternOptions setY(Number y)
y
- the value for the y optionCopyright © 2022. All rights reserved.