|
Chart FX 7 for Java Server | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.softwarefx.chartfx.server.LineAttributes
public class LineAttributes
Provides access to the LineAttributes object.
The LineAttibutes members allows customization of the lines at the PointAttributes
level. The PointAttributes's PointAttributes.getLine()
property will provide access to the LineAttributes for each particular point of the chart.
chart1.Points[0, 2].Line.Width = 4;
chart1.Points[0, 2].Line.EndCap = System.Drawing.Drawing2D.LineCap.ArrowAnchor;
Will have the following effect in a Line chart:
And will have the following effect in a Bar chart:
Constructor Summary | |
---|---|
LineAttributes()
|
Method Summary | |
---|---|
LineCap |
getEndCap()
Gets the EndCap. |
LineCap |
getStartCap()
Gets the StartCap. |
DashStyle |
getStyle()
Gets the Style. |
short |
getWidth()
Gets the Width. |
void |
setEndCap(LineCap value)
Sets a marker shape at the end of a PointAttribute's Line. |
void |
setStartCap(LineCap value)
Sets a marker shape at the start of a PointAttribute's Line. |
void |
setStyle(DashStyle value)
Sets the style for a PointAttribute's Line. |
void |
setWidth(short value)
Sets the width for a PointAttribute's Line. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LineAttributes()
Method Detail |
---|
public LineCap getEndCap()
Gets the EndCap. For more detail see setEndCap(com.softwarefx.LineCap)
.
public LineCap getStartCap()
Gets the StartCap. For more detail see setStartCap(com.softwarefx.LineCap)
.
public DashStyle getStyle()
Gets the Style. For more detail see setStyle(com.softwarefx.DashStyle)
.
public short getWidth()
Gets the Width. For more detail see setWidth(short)
.
public void setEndCap(LineCap value)
Sets a marker shape at the end of a PointAttribute's Line.
The PointAttributes.getLine()
property of the PointAttributes
Class
is used to return a LineAttributes object.
A starting marker shape may be applied to lines using the setStartCap(com.softwarefx.LineCap)
property.
These are the supported styles:
AnchorMask
ArrowAnchor
Custom
DiamondAnchor
Flat
NoAnchor
Round
RoundAnchor
Square
SquareAnchor
Triangle
setStartCap(com.softwarefx.LineCap)
,
setStyle(com.softwarefx.DashStyle)
,
setWidth(short)
,
PointAttributes.getLine()
,
PointAttributes
public void setStartCap(LineCap value)
Sets a marker shape at the start of a PointAttribute's Line.
The PointAttributes.getLine()
property of the PointAttributes
Class
is used to return a LineAttributes object.
An ending marker shape may be applied to lines using the setEndCap(com.softwarefx.LineCap)
property.
These are the supported styles:
AnchorMask
ArrowAnchor
Custom
DiamondAnchor
Flat
NoAnchor
Round
RoundAnchor
Square
SquareAnchor
Triangle
setEndCap(com.softwarefx.LineCap)
,
setStyle(com.softwarefx.DashStyle)
,
setWidth(short)
,
PointAttributes.getLine()
,
PointAttributes
public void setStyle(DashStyle value)
Sets the style for a PointAttribute's Line.
The PointAttributes.getLine()
property of the PointAttributes
Class
is used to return a LineAttributes object.
The setEndCap(com.softwarefx.LineCap)
and setStartCap(com.softwarefx.LineCap)
properties allow you to configured various shapes at the beginning and end of a selected line.
The setWidth(short)
property gets or sets the width for a PointAttribute's Line.
For more information regarding the Drawing type, please refer to the Java API Documentation.
These are the supported DashStyles:
Custom
Dash
DashDot
DashDotDot
Dot
Solid
The image below depicts a 'Dot' Line style assigned to the second point:
setStartCap(com.softwarefx.LineCap)
,
setEndCap(com.softwarefx.LineCap)
,
setWidth(short)
,
PointAttributes.getLine()
,
PointAttributes
public void setWidth(short value)
Sets the width for a PointAttribute's Line.
The PointAttributes.getLine()
property of the PointAttributes
Class
is used to return a LineAttributes object.
The setEndCap(com.softwarefx.LineCap)
and setStartCap(com.softwarefx.LineCap)
properties allow you to configured various shapes at the beginning and end of a selected line.
The setStyle(com.softwarefx.DashStyle)
property gets or sets the style for a PointAttribute's Line.
setStartCap(com.softwarefx.LineCap)
,
setEndCap(com.softwarefx.LineCap)
,
setStyle(com.softwarefx.DashStyle)
,
PointAttributes.getLine()
,
PointAttributes
|
http://www.softwarefx.com | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |