mavis.gui
Class StyledWrapper

java.lang.Object
  extended by mavis.gui.StyledWrapper
All Implemented Interfaces:
java.lang.Cloneable

public class StyledWrapper
extends java.lang.Object
implements java.lang.Cloneable

Wrapper class for holding the value to be rendered and its style parameters. Used by StyledTableCellRenderer and StyledCellEditor.


Field Summary
 java.awt.Color background
          The background color of this component or null to use the parent's background color.
 javax.swing.border.Border border
          The border of this component or null if no border is currently set.
 java.awt.Color focusBackground
          The background color of this component when it has focus or null to use the parent's background color.
 javax.swing.border.Border focusBorder
          The border of this component when it has focus or null to use the default border.
 java.awt.Font font
          The font of this component or null to use the parent's font.
 java.awt.Color foreground
          The foreground color of this component or null to use the parent's foreground color.
 int horizontalAlignment
          The value of the horizontalAlignment property, one of the following constants defined in SwingConstants: LEFT, CENTER, RIGHT, LEADING or TRAILING.
 boolean opaque
          If true the component paints every pixel within its bounds.
 java.awt.Color selectedBackground
          The background color of this component when it is selected or null to use the parent's background color.
 javax.swing.border.Border selectedBorder
          The border of this component when it is selected or null to use the default border.
 java.awt.Color selectedFocusBackground
          The background color of this component when it is selected and has focus or null to use the parent's background color.
 javax.swing.border.Border selectedFocusBorder
          The border of this component when it is selected and has focus or null to use the default border.
 java.lang.Object value
          The wrapped value.
 int verticalAlignment
          The value of the verticalAlignment property, one of the following constants defined in SwingConstants: TOP, CENTER, or BOTTOM.
 
Constructor Summary
StyledWrapper()
           
 
Method Summary
 java.lang.Object clone()
          Creates and returns a copy of this object.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

value

public java.lang.Object value
The wrapped value.


horizontalAlignment

public int horizontalAlignment
The value of the horizontalAlignment property, one of the following constants defined in SwingConstants: LEFT, CENTER, RIGHT, LEADING or TRAILING.


verticalAlignment

public int verticalAlignment
The value of the verticalAlignment property, one of the following constants defined in SwingConstants: TOP, CENTER, or BOTTOM.


opaque

public boolean opaque
If true the component paints every pixel within its bounds. Otherwise, the component may not paint some or all of its pixels, allowing the underlying pixels to show through.


border

public javax.swing.border.Border border
The border of this component or null if no border is currently set.


selectedBorder

public javax.swing.border.Border selectedBorder
The border of this component when it is selected or null to use the default border.


focusBorder

public javax.swing.border.Border focusBorder
The border of this component when it has focus or null to use the default border.


selectedFocusBorder

public javax.swing.border.Border selectedFocusBorder
The border of this component when it is selected and has focus or null to use the default border.


background

public java.awt.Color background
The background color of this component or null to use the parent's background color.


selectedBackground

public java.awt.Color selectedBackground
The background color of this component when it is selected or null to use the parent's background color.


focusBackground

public java.awt.Color focusBackground
The background color of this component when it has focus or null to use the parent's background color.


selectedFocusBackground

public java.awt.Color selectedFocusBackground
The background color of this component when it is selected and has focus or null to use the parent's background color.


foreground

public java.awt.Color foreground
The foreground color of this component or null to use the parent's foreground color.


font

public java.awt.Font font
The font of this component or null to use the parent's font.

Constructor Detail

StyledWrapper

public StyledWrapper()
Method Detail

clone

public java.lang.Object clone()
Creates and returns a copy of this object. The value property of the copy will be null.

Overrides:
clone in class java.lang.Object