org.jfree.workbook
Class BorderStyleModifier

java.lang.Object
  |
  +--org.jfree.workbook.BorderStyleModifier
All Implemented Interfaces:
StyleModifier

public class BorderStyleModifier
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  Border border
          The new border.
 
Constructor Summary
BorderStyleModifier(Border 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 Border border
The new border.

Constructor Detail

BorderStyleModifier

public BorderStyleModifier(Border 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.