public class DashedLineStyleLibrary extends Object implements LineStyleLibrary
LineStyleLibrary.FLAG_STRONG
will result in thicker lines.
LineStyleLibrary.FLAG_WEAK
will result in thinner and semi-transparent lines.
LineStyleLibrary.FLAG_INTERPOLATED
will result in shorter dashing patterns.Modifier and Type | Field and Description |
---|---|
private ColorLibrary |
colors
The style library we use for colors
|
private int |
dashnum |
private double[][] |
dashpatterns
Dash patterns to regularly use
|
private double[] |
solidreplacement
Replacement for the solid pattern in 'interpolated' mode
|
FLAG_INTERPOLATED, FLAG_STRONG, FLAG_WEAK
Constructor and Description |
---|
DashedLineStyleLibrary(StyleLibrary style)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
formatCSSClass(CSSClass cls,
int style,
double width,
Object... flags)
Add the formatting statements to the given CSS class.
|
private ColorLibrary colors
private double[][] dashpatterns
private double[] solidreplacement
private int dashnum
public DashedLineStyleLibrary(StyleLibrary style)
style
- Style librarypublic void formatCSSClass(CSSClass cls, int style, double width, Object... flags)
LineStyleLibrary
formatCSSClass
in interface LineStyleLibrary
cls
- CSS class to modifystyle
- style numberwidth
- line widthflags
- meta objects to request line variants