public final class Line extends ChartContainer
LineChart
Constructor and Description |
---|
Line(AbstractChart<?,?> chart)
Builds the object storing the chart instance.
|
Modifier and Type | Method and Description |
---|---|
IsColor |
getBackgroundColor()
Returns the background color.
|
java.lang.String |
getBackgroundColorAsString()
Returns the background color.
|
CapStyle |
getBorderCapStyle()
Returns how the end points of every line are drawn.
|
IsColor |
getBorderColor()
Returns the border color.
|
java.lang.String |
getBorderColorAsString()
Returns the border color.
|
java.util.List<java.lang.Integer> |
getBorderDash()
Returns the line dash pattern used when stroking lines, using an array of values which specify alternating lengths of lines and gaps which describe the pattern.
|
int |
getBorderDashOffset()
Returns the line dash pattern offset or "phase".
|
JoinStyle |
getBorderJoinStyle()
Returns how two connecting segments (of lines, arcs or curves) with non-zero lengths in a shape are joined together (degenerate segments with zero lengths, whose specified endpoints and control points are exactly at the same position, are
skipped).
There are three possible values for this property: round, bevel and miter. |
int |
getBorderWidth()
Returns the border width.
|
protected java.lang.String |
getDefaultBackgroundColor()
Returns the default background color.
|
protected java.lang.String |
getDefaultBorderColor()
Returns the default border color.
|
protected int |
getDefaultBorderWidth()
Returns the default border width.
|
Fill |
getFill()
Returns how to fill the area under the line.
|
double |
getTension()
Returns the Bezier curve tension (0 for no Bezier curves).
|
boolean |
isCapBezierPoints()
Returns
true to keep Bezier control inside the chart, false for no restriction. |
boolean |
isStepped()
Returns
true to show the line as a stepped line (tension will be ignored). |
void |
setBackgroundColor(IsColor backgroundColor)
Sets the background color.
|
void |
setBackgroundColor(java.lang.String backgroundColor)
Sets the background color.
|
void |
setBorderCapStyle(CapStyle borderCapStyle)
Sets how the end points of every line are drawn.
|
void |
setBorderColor(IsColor borderColor)
Sets the border color.
|
void |
setBorderColor(java.lang.String borderColor)
Sets the border color.
|
void |
setBorderDash(int... borderDash)
Sets the line dash pattern used when stroking lines, using an array of values which specify alternating lengths of lines and gaps which describe the pattern.
|
void |
setBorderDashOffset(int borderDashOffset)
Sets the line dash pattern offset or "phase".
|
void |
setBorderJoinStyle(JoinStyle borderJoinStyle)
Sets how two connecting segments (of lines, arcs or curves) with non-zero lengths in a shape are joined together (degenerate segments with zero lengths, whose specified endpoints and control points are exactly at the same position, are
skipped).
There are three possible values for this property: round, bevel and miter. |
void |
setBorderWidth(int borderWidth)
Sets the border width.
|
void |
setCapBezierPoints(boolean capBezierPoints)
Sets
true to keep Bezier control inside the chart, false for no restriction. |
void |
setFill(Fill fill)
Sets how to fill the area under the line.
|
void |
setStepped(boolean stepped)
Sets
true to show the line as a stepped line (tension will be ignored). |
void |
setTension(double tension)
Returns the Bezier curve tension (0 for no Bezier curves).
|
getChart
checkAndGetDoubleValues, checkAndGetEnumValues, checkAndGetIntegerValues, checkAndGetStringValues, checkAndSetDoubleValues, checkAndSetEnumValues, checkAndSetIntegerValues, checkAndSetStringValues, getDoubleArray, getIntegerArray, getJavaScriptObject, getObjectArray, getStringArray, getValue, getValue, getValue, getValue, getValue, getValue, getValue, has, has, hasToBeRegistered, isEmpty, keys, remove, remove, removeIfExists, setDoubleArray, setEnumValueArray, setIntegerArray, setObjectArray, setStringArray, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, toString, type
public Line(AbstractChart<?,?> chart)
chart
- chart instanceprotected java.lang.String getDefaultBackgroundColor()
protected int getDefaultBorderWidth()
protected java.lang.String getDefaultBorderColor()
public void setTension(double tension)
tension
- the Bezier curve tension (0 for no Bezier curves).public double getTension()
public void setBorderCapStyle(CapStyle borderCapStyle)
borderCapStyle
- how the end points of every line are drawn.CapStyle
public CapStyle getBorderCapStyle()
CapStyle
public void setBorderDash(int... borderDash)
borderDash
- the line dash pattern used when stroking lines, using an array of values which specify alternating lengths of lines and gaps which describe the pattern.public java.util.List<java.lang.Integer> getBorderDash()
public void setBorderDashOffset(int borderDashOffset)
borderDashOffset
- the line dash pattern offset or "phase".public int getBorderDashOffset()
public void setBorderJoinStyle(JoinStyle borderJoinStyle)
borderJoinStyle
- There are three possible values for this property: round, bevel and miter.JoinStyle
public JoinStyle getBorderJoinStyle()
JoinStyle
public void setCapBezierPoints(boolean capBezierPoints)
true
to keep Bezier control inside the chart, false
for no restriction.capBezierPoints
- true
to keep Bezier control inside the chart, false
for no restriction.public boolean isCapBezierPoints()
true
to keep Bezier control inside the chart, false
for no restriction.true
to keep Bezier control inside the chart, false
for no restriction.public void setFill(Fill fill)
fill
- how to fill the area under the line.Fill
public Fill getFill()
Fill
public void setStepped(boolean stepped)
true
to show the line as a stepped line (tension will be ignored).stepped
- true
to show the line as a stepped line (tension will be ignored).public boolean isStepped()
true
to show the line as a stepped line (tension will be ignored).true
to show the line as a stepped line (tension will be ignored).public void setBackgroundColor(IsColor backgroundColor)
backgroundColor
- the background color.public void setBackgroundColor(java.lang.String backgroundColor)
backgroundColor
- the background color.public java.lang.String getBackgroundColorAsString()
public IsColor getBackgroundColor()
public void setBorderWidth(int borderWidth)
borderWidth
- the border width.public int getBorderWidth()
public void setBorderColor(IsColor borderColor)
borderColor
- the border color.public void setBorderColor(java.lang.String borderColor)
borderColor
- the border color.public java.lang.String getBorderColorAsString()
public IsColor getBorderColor()