Chart FX 7 for Java Server

com.softwarefx.chartfx.server
Class LineAttributes

java.lang.Object
  extended by com.softwarefx.chartfx.server.LineAttributes

public class LineAttributes
extends Object

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

LineAttributes

public LineAttributes()
Method Detail

getEndCap

public LineCap getEndCap()

Gets the EndCap. For more detail see setEndCap(com.softwarefx.LineCap).


getStartCap

public LineCap getStartCap()

Gets the StartCap. For more detail see setStartCap(com.softwarefx.LineCap).


getStyle

public DashStyle getStyle()

Gets the Style. For more detail see setStyle(com.softwarefx.DashStyle).


getWidth

public short getWidth()

Gets the Width. For more detail see setWidth(short).


setEndCap

public void setEndCap(LineCap value)

Sets a marker shape at the end of a PointAttribute's Line.

Remarks:
  • 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

  • See Also:
    setStartCap(com.softwarefx.LineCap), setStyle(com.softwarefx.DashStyle), setWidth(short), PointAttributes.getLine(), PointAttributes

    setStartCap

    public void setStartCap(LineCap value)

    Sets a marker shape at the start of a PointAttribute's Line.

    Remarks:
  • 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

  • See Also:
    setEndCap(com.softwarefx.LineCap), setStyle(com.softwarefx.DashStyle), setWidth(short), PointAttributes.getLine(), PointAttributes

    setStyle

    public void setStyle(DashStyle value)

    Sets the style for a PointAttribute's Line.

    Remarks:
  • 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:

  • See Also:
    setStartCap(com.softwarefx.LineCap), setEndCap(com.softwarefx.LineCap), setWidth(short), PointAttributes.getLine(), PointAttributes

    setWidth

    public void setWidth(short value)

    Sets the width for a PointAttribute's Line.

    Remarks:
  • 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.

  • See Also:
    setStartCap(com.softwarefx.LineCap), setEndCap(com.softwarefx.LineCap), setStyle(com.softwarefx.DashStyle), PointAttributes.getLine(), PointAttributes

    http://www.softwarefx.com

    2008 Software FX, Inc. All Rights Reserved. Chart FX is a registered trademark of Software FX, Inc
    All other names are trademarks or registered trademarks of their respective owners.