com.aspose.cells
Class Line

java.lang.Object
    extended by com.aspose.cells.Line
Direct Known Subclasses:
ErrorBar, Trendline

public class Line 
extends java.lang.Object

Encapsulates the object that represents the line format.

Example:

//Applying a dotted line style on the lines of an NSeries
chart.getNSeries().get(0).getLine().setStyle(LineType.DOT);
//Applying a triangular marker style on the data markers of an NSeries
chart.getNSeries().get(0).setMarkerStyle(ChartMarkerType.TRIANGLE);
//Setting the weight of all lines in an NSeries to medium
chart.getNSeries().get(1).getLine().setWeight(WeightType.MEDIUM_LINE);

Property Getters/Setters Summary
com.aspose.cells.ColorgetColor()
voidsetColor(com.aspose.cells.Color value)
           Represents the com.aspose.cells.Color of the line.
GradientFillgetGradientFill()
           Represents gradient fill.
booleanisAuto()
voidsetAuto(boolean value)
           Indicates whether this line style is auto assigned.
booleanisAutomaticColor()
           Indicates whether the color of line is auotmatic assigned.
booleanisVisible()
voidsetVisible(boolean value)
           Represents whether the line is visible.
intgetStyle()
voidsetStyle(int value)
           Represents the style of the line. The value of the property is LineType integer constant.
doublegetTransparency()
voidsetTransparency(double value)
           Returns or sets the degree of transparency of the line as a value from 0.0 (opaque) through 1.0 (clear).
intgetWeight()
voidsetWeight(int value)
           Gets or sets the WeightType of the line. The value of the property is WeightType integer constant.
doublegetWeightPt()
voidsetWeightPt(double value)
           Gets or sets the weight of the line in unit of points. Only applies for Excel 2007 file.
 

Property Getters/Setters Detail

getColor/setColor

public com.aspose.cells.Color getColor() / public void setColor(com.aspose.cells.Color value)
Represents the com.aspose.cells.Color of the line.

getTransparency/setTransparency

public double getTransparency() / public void setTransparency(double value)
Returns or sets the degree of transparency of the line as a value from 0.0 (opaque) through 1.0 (clear).

getStyle/setStyle

public int getStyle() / public void setStyle(int value)
Represents the style of the line. The value of the property is LineType integer constant.

getWeight/setWeight

public int getWeight() / public void setWeight(int value)
Gets or sets the WeightType of the line. The value of the property is WeightType integer constant.

getWeightPt/setWeightPt

public double getWeightPt() / public void setWeightPt(double value)
Gets or sets the weight of the line in unit of points. Only applies for Excel 2007 file.

isAutomaticColor

public boolean isAutomaticColor()
Indicates whether the color of line is auotmatic assigned.

isVisible/setVisible

public boolean isVisible() / public void setVisible(boolean value)
Represents whether the line is visible.

isAuto/setAuto

public boolean isAuto() / public void setAuto(boolean value)
Indicates whether this line style is auto assigned.

getGradientFill

public GradientFill getGradientFill()
Represents gradient fill.

See Also:
          Aspose.Cells Documentation - the home page for the Aspose.Cellss Product Documentation.
          Aspose.Cells Support Forum - our preferred method of support.