Home  Products  Purchase  Downloads  Demos  Forums  Blogs  Ticket  Wiki  API  Corporate


com.aspose.cells
Class ShapeLine

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

public class ShapeLine
extends java.lang.Object

Encapsulates the object that contains formatting information for the shape's border.


Method Summary
 Color getColor()
          Gets the border line color of the shape.
 int getDashStyle()
          Gets the border line dash style of the shape.
 int getStyle()
          Gets the border line style of the shape.
 float getWeight()
          Gets the border line weight of the shape,in unit of pts.
 boolean isVisible()
          Indicates whether the border line to be visible or not.
 void setColor(Color color)
          Sets the border line color of the shape.
 void setDashStyle(int dashStyle)
          Sets the border line dash style of the shape.
 void setStyle(int style)
          Sets the border line style of the shape.
 void setVisible(boolean visible)
          Sets whether the border line to be visible or not.
 void setWeight(float weight)
          Sets the border line weight of the shape,in unit of pts.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isVisible

public boolean isVisible()
Indicates whether the border line to be visible or not.

Returns:
whether the border line to be visible or not.

setVisible

public void setVisible(boolean visible)
Sets whether the border line to be visible or not.

Parameters:
visible - whether the border line to be visible or not.

getColor

public Color getColor()
Gets the border line color of the shape.

Returns:
the border line color of the shape.

setColor

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

Parameters:
color - the border line color of the shape.

getWeight

public float getWeight()
Gets the border line weight of the shape,in unit of pts.

Returns:
the border line weight of the shape.

setWeight

public void setWeight(float weight)
Sets the border line weight of the shape,in unit of pts.

Parameters:
weight - the border line weight of the shape.

getDashStyle

public int getDashStyle()
Gets the border line dash style of the shape.

Returns:
dash style
See Also:
setDashStyle(int)

setDashStyle

public void setDashStyle(int dashStyle)
Sets the border line dash style of the shape.

Parameters:
dashStyle - dash style. It could be one of the following values:
MsoLineDashStyle.DASH
MsoLineDashStyle.DASH_DOT
MsoLineDashStyle.LONG_DASH
MsoLineDashStyle.LONG_DASH_DOT
MsoLineDashStyle.LONG_DASH_DOT_DOT
MsoLineDashStyle.ROUND_DOT
MsoLineDashStyle.SOLID
MsoLineDashStyle.SQUARE_DOT
Throws:
java.lang.IllegalArgumentException - if dashStyle is not valid.

getStyle

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

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

setStyle

public void setStyle(int style)
Sets the border line style of the shape.

Parameters:
style - line style. It could be one of the following values:
MsoLineStyle.SINGLE
MsoLineStyle.THICK_BETWEEN_THIN
MsoLineStyle.THIN_THICK
MsoLineStyle.THICK_THIN
MsoLineStyle.THIN_THIN
Throws:
java.lang.IllegalArgumentException - if style is not valid.