public class FillStyle extends PropertiesHolder
Modifier and Type | Class and Description |
---|---|
static class |
FillStyle.Fill
Define the fill styles
|
NL
Constructor and Description |
---|
FillStyle()
Create a new fill style object with default style
|
FillStyle(FillStyle.Fill style)
Create a new fill style object with a specific fill style
|
Modifier and Type | Method and Description |
---|---|
void |
appendProperties(java.lang.StringBuilder buf)
Retrieve information for this style.
|
void |
removeBorder()
Remove the border of this graph
|
void |
setBorder(int type)
Set the border type
|
void |
setDensity(float density)
Set the density of this fill style
|
void |
setPattern(int pattern)
Set the fill pattern
|
void |
setStyle(FillStyle.Fill style)
Set the fill style
|
set, set, unset
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
public FillStyle()
public FillStyle(FillStyle.Fill style)
style
- The style to use If it is null, then this graph will not be
filled.public void setBorder(int type)
type
- An integer describing how the border will look like. This
parameter is terminal specificpublic void removeBorder()
public void setDensity(float density)
density
- A number between 0 and 1public void setPattern(int pattern)
pattern
- An integer describing the fill pattern. This parameter is
terminal specificpublic void setStyle(FillStyle.Fill style)
style
- The style to use. If it is null, then this graph will not be
filled.public void appendProperties(java.lang.StringBuilder buf)
appendProperties
in class PropertiesHolder
buf
- The String buffer to store information about this style