com.spire.doc.formatting
Class Borders

java.lang.Object
  extended by com.spire.doc.OwnerHolder
      extended by com.spire.doc.documents.xml.DocumentSerializable
          extended by com.spire.doc.formatting.FormatBase
              extended by com.spire.doc.formatting.AttrCollection
                  extended by com.spire.doc.formatting.WordAttrCollection
                      extended by com.spire.doc.formatting.Borders
All Implemented Interfaces:
IDocumentSerializable

public class Borders
extends WordAttrCollection

Represents a collection of four borders.


Constructor Summary
Borders()
          Initializes a new instance of the class.
 
Method Summary
 Borders deepClone()
          Clones self.
 Border getBottom()
          Gets bottom border.
 Border getDiagonalDown()
          Gets diagonal border from top left corner to bottom right corner.
 Border getDiagonalUp()
          Gets diagonal border from bottom left corner to top right corner.
 Border getHorizontal()
          Gets horizontal border.
 Border getLeft()
          Gets left border.
 boolean getNoBorder()
          Gets whether the border exists
 Border getRight()
          Gets right border.
 Border getTop()
          Gets top border.
 Border getVertical()
          Gets vertical border.
 boolean isDefault()
          Gets a value indicating whether format is default.
 void isShadow(boolean value)
          Sets whether borders are drawn with shadow.
 void setBorderType(BorderStyle value)
          Sets style of the borders.
 void setColor(java.awt.Color value)
          Sets color of the borders.
 void setLineWidth(float value)
          Sets width of the borders.
 void setOnlyLineWidth(float lineWidth)
           
 void setSpace(float value)
          Sets width of space to maintain between borders and text within borders.
 
Methods inherited from class com.spire.doc.formatting.FormatBase
clearBackground, clearFormatting, hasKey
 
Methods inherited from class com.spire.doc.OwnerHolder
getDocument
 

Constructor Detail

Borders

public Borders()
Initializes a new instance of the class.

Method Detail

getNoBorder

public boolean getNoBorder()
Gets whether the border exists


getLeft

public Border getLeft()
Gets left border.


getTop

public Border getTop()
Gets top border.


getRight

public Border getRight()
Gets right border.


getBottom

public Border getBottom()
Gets bottom border.


getVertical

public Border getVertical()
Gets vertical border.


getHorizontal

public Border getHorizontal()
Gets horizontal border.


getDiagonalDown

public Border getDiagonalDown()
Gets diagonal border from top left corner to bottom right corner.


getDiagonalUp

public Border getDiagonalUp()
Gets diagonal border from bottom left corner to top right corner.


setColor

public void setColor(java.awt.Color value)
Sets color of the borders.


setLineWidth

public void setLineWidth(float value)
Sets width of the borders.


setOnlyLineWidth

public void setOnlyLineWidth(float lineWidth)

setBorderType

public void setBorderType(BorderStyle value)
Sets style of the borders.


setSpace

public void setSpace(float value)
Sets width of space to maintain between borders and text within borders.


isShadow

public void isShadow(boolean value)
Sets whether borders are drawn with shadow.


isDefault

public boolean isDefault()
Gets a value indicating whether format is default.

Overrides:
isDefault in class FormatBase
Returns:
true if format is default; otherwise,false.>

deepClone

public Borders deepClone()
Clones self.

Overrides:
deepClone in class AttrCollection
Returns: