|
Chart FX for Java 6.5 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object SoftwareFX.ChartFX.Line
public final class Line
Provides access to the Line object.
Using these properties you can set the color, width and style of many line objects including Axis, ConstantLines and GridLines.
Members also allow for shapes to be applied to all the supported line objects. This allows for interesting design ideas such as an Axis representing a thermometer.
Constructor Summary | |
---|---|
Line()
|
Method Summary | |
---|---|
java.awt.Color |
getColor()
Gets the Color. |
int |
getEndCap()
Gets the EndCap. |
int |
getStartCap()
Gets the StartCap. |
int |
getStyle()
Gets the Style. |
int |
getWidth()
Gets the Width. |
void |
setColor(java.awt.Color value)
Allows you to set the line color for a selected line. |
void |
setEndCap(int value)
Allows you to configure a marker shape at the ending of a selected line. |
void |
setStartCap(int value)
Allows you to configure a marker shape at the beginning of a selected line. |
void |
setStyle(int value)
Allows you to set the line style for a selected line. |
void |
setWidth(int value)
Gets or sets the line width for a selected line. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Line()
Method Detail |
---|
public java.awt.Color getColor()
Gets the Color. For more detail see setColor(java.awt.Color)
.
public int getEndCap()
Gets the EndCap. For more detail see setEndCap(int)
.
public int getStartCap()
Gets the StartCap. For more detail see setStartCap(int)
.
public int getStyle()
Gets the Style. For more detail see setStyle(int)
.
public int getWidth()
Gets the Width. For more detail see setWidth(int)
.
public void setColor(java.awt.Color value)
Allows you to set the line color for a selected line.
When this property is applied to an axis line, both the primary and secondary axes are affected. For instance, when you change the X axis line color using this property both axes lines above and below the chart area are colored.
You may also control the setWidth(int)
and setStyle(int)
of the selected line using the supported members of the Line
Class
.
The setEndCap(int)
and setStartCap(int)
properties allow you to configured various shapes at the beginning and ending of a selected line.
For more information regarding the Color type, please refer to the Java API Documentation.
setEndCap(int)
,
setStartCap(int)
,
setStyle(int)
,
setWidth(int)
,
ChartCore.getAxisY()
,
ChartCore.getAxisX()
,
ChartCore.getConstantLines()
,
Chart
,
ConstantLine
public void setEndCap(int value)
Allows you to configure a marker shape at the ending of a selected line.
LineCap :
Specifies the available cap styles with which a line can end.Value | Description |
---|---|
LineCap.ANCHOR_MASK | Specifies a mask used to check whether a line cap is an anchor cap. |
LineCap.ARROW_ANCHOR | Specifies an arrow-shaped anchor cap. |
LineCap.CUSTOM | Specifies a custom line cap. |
LineCap.DIAMOND_ANCHOR | Specifies a diamond anchor cap. |
LineCap.FLAT | Specifies a flat line cap. |
LineCap.NO_ANCHOR | Specifies no anchor. |
LineCap.ROUND | Specifies a round line cap. |
LineCap.ROUND_ANCHOR | Specifies a round anchor cap. |
LineCap.SQUARE | Specifies a square line cap. |
LineCap.SQUARE_ANCHOR | Specifies a square anchor line cap. |
LineCap.TRIANGLE | Specifies a triangular line cap. |
When this property is applied to an axis line, both the primary and secondary axes are affected. For instance, when you change the X axis EndCap using this property both axes lines above and below the chart area are modified.
An starting marker shape may be applied to lines using the setStartCap(int)
property.
You can also control setColor(java.awt.Color)
, setStyle(int)
and setWidth(int)
for a selected line object using the supported members of the Line
Class
.
setStartCap(int)
,
setColor(java.awt.Color)
,
setStyle(int)
,
setWidth(int)
,
ChartCore.getAxisX()
,
ChartCore.getAxisY()
,
Chart
public void setStartCap(int value)
Allows you to configure a marker shape at the beginning of a selected line.
LineCap :
Specifies the available cap styles with which a line can end.Value | Description |
---|---|
LineCap.ANCHOR_MASK | Specifies a mask used to check whether a line cap is an anchor cap. |
LineCap.ARROW_ANCHOR | Specifies an arrow-shaped anchor cap. |
LineCap.CUSTOM | Specifies a custom line cap. |
LineCap.DIAMOND_ANCHOR | Specifies a diamond anchor cap. |
LineCap.FLAT | Specifies a flat line cap. |
LineCap.NO_ANCHOR | Specifies no anchor. |
LineCap.ROUND | Specifies a round line cap. |
LineCap.ROUND_ANCHOR | Specifies a round anchor cap. |
LineCap.SQUARE | Specifies a square line cap. |
LineCap.SQUARE_ANCHOR | Specifies a square anchor line cap. |
LineCap.TRIANGLE | Specifies a triangular line cap. |
When this property is applied to an axis line, both the primary and secondary axes are affected. For instance, when you change the X axis StartCap using this property both axes lines above and below the chart area are modified.
An ending marker shape may be applied to lines using the setEndCap(int)
property.
You can also control setColor(java.awt.Color)
, setStyle(int)
and setWidth(int)
for a selected line object using the supported members of the Line
Class
.
setEndCap(int)
,
setColor(java.awt.Color)
,
setStyle(int)
,
setWidth(int)
,
ChartCore.getAxisX()
,
ChartCore.getAxisY()
,
Chart
public void setStyle(int value)
Allows you to set the line style for a selected line.
DashStyle :
Specifies the style with which dashed lines are drawn.Value | Description |
---|---|
DashStyle.CUSTOM | Specifies a user-defined custom dash style. |
DashStyle.DASH | Specifies a line consisting of dashes. |
DashStyle.DASH_DOT | Specifies a line consisting of a repeating pattern of dash-dot. |
DashStyle.DASH_DOT_DOT | Specifies a line consisting of a repeating pattern of dash-dot-dot. |
DashStyle.DOT | Specifies a line consisting of dots. |
DashStyle.SOLID | Specifies a solid line. |
When this property is applied to an axis line, both the primary and secondary axes are affected. For instance, when you change the X axis line style using this property both axes lines above and below the chart area are effected.
You may also control the setWidth(int)
and setColor(java.awt.Color)
of the selected line using the supported members of the Line
Class
.
The setEndCap(int)
and setStartCap(int)
properties allow you to configured various shapes at the beginning and ending of a selected line.
The image below depicts a 'DashDotDot' Line style assigned to the Y axis:
setEndCap(int)
,
setStartCap(int)
,
setColor(java.awt.Color)
,
setWidth(int)
,
ChartCore.getAxisY()
,
ChartCore.getAxisX()
,
ChartCore.getConstantLines()
,
Chart
,
ConstantLine
public void setWidth(int value)
Gets or sets the line width for a selected line.
When this property is applied to an axis line, both the primary and secondary axes are affected. For instance, when you change the X axis line width using this property both axes lines above and below the chart area are effected.
You may also control the setStyle(int)
and setColor(java.awt.Color)
of the selected line using the supported members of the Line
Class
.
The setEndCap(int)
and setStartCap(int)
properties allow you to configured various shapes at the beginning and ending of a selected line.
setEndCap(int)
,
setStartCap(int)
,
setStyle(int)
,
setColor(java.awt.Color)
,
ChartCore.getAxisY()
,
ChartCore.getAxisX()
,
ChartCore.getConstantLines()
,
Chart
,
ConstantLine
|
http://www.softwarefx.com | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |