com.arctorus.documents.table
Class BorderStyleManager

java.lang.Object
  extended by com.arctorus.documents.table.BorderStyleManager

public final class BorderStyleManager
extends java.lang.Object

Class for managing collection of border styles.


Method Summary
static BorderStyleManager createInternalInstance()
          Internal method for creating style manager.
 BorderStyle findBorderStyle(StrokeFormat format)
          Returns existing border style with the specified parameters.
 BorderStyle getBorderStyle(BorderStyleId borderStyleId)
          Get existing border style with the specified id.
 java.util.List<BorderStyle> getBorderStyleList()
          Get full collection of border styles.
 BorderStyle getDefaultBorderStyle()
          Get default border style.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createInternalInstance

public static final BorderStyleManager createInternalInstance()
Internal method for creating style manager. Please don't call it directly.


getBorderStyle

public BorderStyle getBorderStyle(BorderStyleId borderStyleId)
Get existing border style with the specified id.

Parameters:
borderStyleId - id of a border style to return.
Returns:
border style with the specified id or null if style doesn't exist.

getDefaultBorderStyle

public BorderStyle getDefaultBorderStyle()
Get default border style.


findBorderStyle

public BorderStyle findBorderStyle(StrokeFormat format)
Returns existing border style with the specified parameters. If style doesn't exist then new style will be created.

Parameters:
format - stroke format to create border style from.
Returns:
created or existing border style with the specified stroke format.

getBorderStyleList

public java.util.List<BorderStyle> getBorderStyleList()
Get full collection of border styles.