Package | Description |
---|---|
com.hyjavastock.model.common |
Modifier and Type | Field and Description |
---|---|
static PatternOptions |
PatternOptions.NULL |
Modifier and Type | Method and Description |
---|---|
PatternOptions |
Color.getPattern() |
PatternOptions |
PatternOptions.setAspectRatio(Number aspectRatio)
For automatically calculated width and height on images, it is possible to set an aspect ratio.
|
PatternOptions |
PatternOptions.setBackgroundColor(Color backgroundColor)
Background color for the pattern if a path is set (not images).
|
PatternOptions |
PatternOptions.setColor(Color color)
Pattern color, used as default path stroke.
|
PatternOptions |
PatternOptions.setHeight(Number height)
Analogous to pattern.width.
|
PatternOptions |
PatternOptions.setId(String id)
ID to assign to the pattern.
|
PatternOptions |
PatternOptions.setImage(String image)
URL to an image to use as the pattern.
|
PatternOptions |
PatternOptions.setOpacity(Number opacity)
Opacity of the pattern as a float value from 0 to 1.
|
PatternOptions |
PatternOptions.setPath(String pathAsString)
Either an SVG path as string, or an object.
|
PatternOptions |
PatternOptions.setPath(SVGAttributes pathAsObject)
Either an SVG path as string, or an object.
|
PatternOptions |
PatternOptions.setPatternTransform(String patternTransform)
SVG patternTransform to apply to the entire pattern.
|
PatternOptions |
PatternOptions.setWidth(Number width)
Width of the pattern.
|
PatternOptions |
PatternOptions.setX(Number x)
Horizontal offset of the pattern.
|
PatternOptions |
PatternOptions.setY(Number y)
Vertical offset of the pattern.
|
Modifier and Type | Method and Description |
---|---|
Color |
Color.setPattern(PatternOptions pattern) |
Constructor and Description |
---|
Color(PatternOptions pattern)
Construct with pattern fill options.
|
Copyright © 2022. All rights reserved.