public static class FontStyle.Stroke
extends java.lang.Object
implements java.io.Serializable
The Stroke.
Copyright (c) 2017 Nexusgeographics All rights reserved.
Constructor and Description |
---|
Stroke(java.lang.String color,
int width)
Instantiates a new Stroke.
|
Stroke(java.lang.String color,
java.lang.String width)
Instantiates a new Stroke.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getColor()
Gets color.
|
java.lang.String |
getWidth()
Gets width in pixels string.
|
void |
setColor(java.lang.String color)
Sets color.
|
void |
setWidth(java.lang.String width)
Sets width in pixels string.
|
public Stroke(@Nullable java.lang.String color, @Nullable java.lang.String width)
Example:
Stroke s = new Stroke("#ff0000", "1px")
Color format:
Named colors: red, blue, salmon, rebeccapurple Hex colors: "#fff", "#000", "#9CE6E5" RGB colors: "rgb(255, 190, 0)" RGBA colors**: "rgb(255, 190, 0, .5)" HSL colors: "hsl(180, 100%, 100%)" HSL colors**: "hsla(180, 100%, 100%, 50%)"**Currently, alpha values are ignored in the add and multiply blend modes, and respected in the inlay and overlay modes. For more on this, see the blend entry.
color
- the colorwidth
- the width in pixels stringpublic Stroke(@Nullable java.lang.String color, int width)
Example:
Stroke s = new Stroke("#ff0000", 1)
Color format:
Named colors: red, blue, salmon, rebeccapurple Hex colors: "#fff", "#000", "#9CE6E5" RGB colors: "rgb(255, 190, 0)" RGBA colors**: "rgb(255, 190, 0, .5)" HSL colors: "hsl(180, 100%, 100%)" HSL colors**: "hsla(180, 100%, 100%, 50%)"**Currently, alpha values are ignored in the add and multiply blend modes, and respected in the inlay and overlay modes. For more on this, see the blend entry.
color
- the colorwidth
- the width@Nullable public java.lang.String getColor()
public void setColor(@Nullable java.lang.String color)
Example:
Stroke.setColor("#ff0000")
Color format:
Named colors: red, blue, salmon, rebeccapurple Hex colors: "#fff", "#000", "#9CE6E5" RGB colors: "rgb(255, 190, 0)" RGBA colors**: "rgb(255, 190, 0, .5)" HSL colors: "hsl(180, 100%, 100%)" HSL colors**: "hsla(180, 100%, 100%, 50%)"**Currently, alpha values are ignored in the add and multiply blend modes, and respected in the inlay and overlay modes. For more on this, see the blend entry.
color
- the color@Nullable public java.lang.String getWidth()
public void setWidth(@Nullable java.lang.String width)
Example:
Stroke.setWidth("1px")
width
- the width in pixels string