com.jrefinery.workbook
Class StyleBorderModifier

java.lang.Object
  |
  +--com.jrefinery.workbook.StyleBorderModifier
All Implemented Interfaces:
StyleModifier

public class StyleBorderModifier
extends java.lang.Object
implements StyleModifier

A style modifier that changes the border for a style, but leaves all other settings unchanged.


Field Summary
protected  StyleBorder border
          The new border.
 
Constructor Summary
StyleBorderModifier(StyleBorder border)
          Standard constructor.
 
Method Summary
 Style getModifiedStyle(Style style)
          Returns a new style with the same settings as the style passed in, except with a different border.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

border

protected StyleBorder border
The new border.
Constructor Detail

StyleBorderModifier

public StyleBorderModifier(StyleBorder border)
Standard constructor.
Parameters:
border - The new border.
Method Detail

getModifiedStyle

public Style getModifiedStyle(Style style)
Returns a new style with the same settings as the style passed in, except with a different border.
Specified by:
getModifiedStyle in interface StyleModifier
Parameters:
style - The style to be modified.
Returns:
A new style with the same settings as the style passed in, except with a different border.