com.jniwrapper.win32.jexcel.format
Class Border

java.lang.Object
  extended by com.jniwrapper.win32.jexcel.format.Border

public class Border
extends java.lang.Object

This class provides functionality for Range or Cell borders customization.


Nested Class Summary
static class Border.Kind
          This class is an enumaration of contants that specify the fragment of a Border.
static class Border.LineStyle
          This class is an enumeration of line styles that can be applied to a cell or range border.
static class Border.LineWeight
          This class is an enumeration of line weight contants that can be applied to a cell or range border.
 
Constructor Summary
Border()
          Creates a border and sets all its attributes to default.
 
Method Summary
 java.awt.Color getColor()
          Returns the color of the border.
 Border.LineStyle getLineStyle()
          Returns the line style of the border.
 Border.LineWeight getWeight()
          Returns the line weight of the border.
 void setColor(java.awt.Color color)
          Changes the color of the border.
 void setLineStyle(Border.LineStyle lineStyle)
          Changes the line style of the border.
 void setWeight(Border.LineWeight weight)
          Changes the line weight of the border.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Border

public Border()
Creates a border and sets all its attributes to default.

Method Detail

setColor

public void setColor(java.awt.Color color)
Changes the color of the border.

Parameters:
color -

getColor

public java.awt.Color getColor()
Returns the color of the border.

Returns:
the color of the border.

setWeight

public void setWeight(Border.LineWeight weight)
Changes the line weight of the border.

Parameters:
weight - is an instance of Border.LineWeight enumeration.
See Also:
Border.LineWeight

getWeight

public Border.LineWeight getWeight()
Returns the line weight of the border.

Returns:
the line weight of the border.
See Also:
Border.LineWeight

setLineStyle

public void setLineStyle(Border.LineStyle lineStyle)
Changes the line style of the border.

Parameters:
lineStyle - is an instance of Border.LineStyle enumeration.
See Also:
Border.LineStyle

getLineStyle

public Border.LineStyle getLineStyle()
Returns the line style of the border.

Returns:
the line style of the border.
See Also:
Border.LineStyle