Home  Products  Purchase  Downloads  Demos  Forums  Blogs  Ticket  Wiki  API  Corporate

com.aspose.cells
Class Line

java.lang.Object
  extended by com.aspose.cells.Line

public class Line
extends java.lang.Object

Encapsulates the object that represents the chart line.


Method Summary
 Color getColor()
          Gets the Color of the line.
 int getStyle()
          Gets the style of the line.
 int getWeight()
          Gets the weight type of the line.
 boolean isAuto()
          Indicates whether Microsoft Workbook automatically determines the line pattern.
 boolean isVisible()
          Indicates whether the line is visible in the chart.
 void setAuto(boolean isAuto)
          Sets whether Microsoft Workbook automatically determines the line pattern.
 void setColor(Color color)
          Sets the Color of the line.
 void setStyle(int style)
          Sets the style of the line
 void setVisible(boolean visible)
          Sets whether the line is visible in the chart.
 void setWeight(int wight)
          Sets the weight type of the line.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getColor

public Color getColor()
Gets the Color of the line.

Returns:
the Color of the line.

setColor

public void setColor(Color color)
Sets the Color of the line.

Parameters:
color - the Color of the line.

isVisible

public boolean isVisible()
Indicates whether the line is visible in the chart.

Returns:
whether the line is visible in the chart.

setVisible

public void setVisible(boolean visible)
Sets whether the line is visible in the chart.

Parameters:
visible - whether the line is visible in the chart.

getStyle

public int getStyle()
Gets the style of the line.

Returns:
the style of the line.
See Also:
setStyle(int)

setStyle

public void setStyle(int style)
Sets the style of the line

Parameters:
style - the style of the line. It could be one of the following values:
LineType.DARK_GRAY
LineType.DASH
LineType.DASH_DOT
LineType.DASH_DOT_DOT
LineType.DOT
LineType.LIGHT_GRAY
LineType.MEDIUM_GRAY
LineType.SOLID
Throws:
java.lang.IllegalArgumentException - if line type is invalid.

getWeight

public int getWeight()
Gets the weight type of the line.

Returns:
the weight type of the line.
See Also:
setWeight(int)

setWeight

public void setWeight(int wight)
Sets the weight type of the line.

Parameters:
wight - the weight type of the line. It could be one of the following values:
WeightType.HAIR_LINE
WeightType.MEDIUME_LINE
WeightType.SINGLE_LINE
WeightType.WIDE_LINE
Throws:
java.lang.IllegalArgumentException - if line weight type is invalid.

setAuto

public void setAuto(boolean isAuto)
Sets whether Microsoft Workbook automatically determines the line pattern.

Parameters:
isAuto - whether Microsoft Workbook automatically determines the line pattern.

isAuto

public boolean isAuto()
Indicates whether Microsoft Workbook automatically determines the line pattern.

Returns:
whether Microsoft Workbook automatically determines the line pattern.