com.sas.visuals
Class NodeStyle

com.sas.visuals.NodeStyle
All Implemented Interfaces:
com.sas.collection.PropertyBagChangedListener, com.sas.collection.PropertyBagChangedSource, com.sas.collection.PropertyBagInterface, com.sas.collection.StaticPropertyBagInterface, com.sas.DeepClonable, com.sas.PublicClonable, com.sas.util.Countable, java.beans.PropertyChangeListener, java.io.ObjectInputValidation, java.io.Serializable, java.lang.Cloneable, java.util.EventListener

public class NodeStyle

A customizable set of node properties.

This class is implemented as a bag, rather than as a fixed set of properties, so that new properties can be added without having to subclass, and so that properties can have the notion of being unset. Unset properties are properties that are not members of the bag, as opposed to set properties which are bag members. By default, no properties are set; i.e. the bag is empty. Such property bags are referred to as styles.

Styles are often used as formatting defaults and rendering hints by views. For example, TreeView allows a NodeStyle to be associated with individual nodes.

Styles sometimes contain other styles. This occurs by simply adding a property of type StaticPropertyBagInterface to a style. An example is NodeStyle's fontStyle.

See Also:
FontStyle, TreeView, Serialized Form

Field Summary
static java.lang.String BACKGROUND_COLOR
          String used to identify the backgroundColor property in the bag.
static java.lang.String DEFAULT_ICON
          String used to identify the defaultIcon property in the bag.
static java.lang.String DRAG_EXPAND_ENABLED
          String used to identify the dragExpandEnabled property in the bag.
static java.lang.String EDITABLE
          String used to identify the editable property in the bag.
static java.lang.String ERROR_HANDLER
          String used to identify the errorHandler property in the bag.
static java.lang.String EXPANDED_ICON
          String used to identify the expandedIcon property in the bag.
static java.lang.String EXPANDED_SELECTED_ICON
          String used to identify the expandedSelectedIcon property in the bag.
static java.lang.String EXPANDED_TEXT_DISPLAYED
          String used to identify the expandedTextDisplayed property in the bag.
static java.lang.String FONT_STYLE
          String used to identify the fontStyle property in the bag.
static java.lang.String FOREGROUND_COLOR
          String used to identify the foregroundColor property in the bag.
static java.lang.String IMAGE_SIZE
          String used to identify the imageSize property in the bag.
static java.lang.String IMAGE_VISIBLE
          String used to identify the imageVisible property in the bag.
static java.lang.String LEAF_NODE_VERIFICATION_ENABLED
          String used to identify the leafNodeVerificationEnabled property in the bag.
static java.lang.String SELECTABLE
          NOTE: This property is not yet supported.
static java.lang.String SELECTED_BACKGROUND_COLOR
          String used to identify the selectedBackgroundColor property in the bag.
static java.lang.String SELECTED_FOREGROUND_COLOR
          String used to identify the selectedForegroundColor property in the bag.
static java.lang.String SELECTED_ICON
          String used to identify the selectedIcon property in the bag.
static java.lang.String TEXT_GAP
          String used to identify the textGap property in the bag.
static java.lang.String TEXT_PAD
          String used to identify the textPad property in the bag.
static java.lang.String VISIBLE
          String used to identify the visible property in the bag.
 
Constructor Summary
NodeStyle()
           
 
Method Summary
 java.awt.Color getBackgroundColor()
           
 com.sas.visuals.IconInterface getDefaultIcon()
           
 ErrorHandlerInterface getErrorHander()
           
 com.sas.visuals.IconInterface getExpandedIcon()
           
 com.sas.visuals.IconInterface getExpandedSelectedIcon()
           
 FontStyle getFontStyle()
           
 java.awt.Color getForegroundColor()
           
 java.awt.Dimension getImageSize()
           
 java.awt.Color getSelectedBackgroundColor()
           
 java.awt.Color getSelectedForegroundColor()
           
 com.sas.visuals.IconInterface getSelectedIcon()
           
 int getTextGap()
           
 int getTextPad()
           
 boolean isBackgroundColorSet()
           
 boolean isDefaultIconSet()
           
 boolean isDragExpandEnabled()
           
 boolean isDragExpandEnabledSet()
           
 boolean isEditable()
           
 boolean isEditableSet()
           
 boolean isErrorHandlerSet()
           
 boolean isExpandedIconSet()
           
 boolean isExpandedSelectedIconSet()
           
 boolean isExpandedTextDisplayed()
           
 boolean isExpandedTextDisplayedSet()
           
 boolean isFontStyleSet()
           
 boolean isForegroundColorSet()
           
 boolean isImageSizeSet()
           
 boolean isImageVisible()
           
 boolean isImageVisibleSet()
           
 boolean isLeafNodeVerificationEnabled()
           
 boolean isLeafNodeVerificationEnabledSet()
           
 boolean isSelectable()
           
 boolean isSelectableSet()
           
 boolean isSelectedBackgroundColor()
           
 boolean isSelectedForegroundColorSet()
           
 boolean isSelectedIconSet()
           
 boolean isTextGapSet()
           
 boolean isTextPadSet()
           
 boolean isVisible()
           
 boolean isVisibleSet()
           
 void setBackgroundColor(java.awt.Color newValue)
           
 void setDefaultIcon(com.sas.visuals.IconInterface newValue)
           
 void setDragExpandEnabled(boolean newValue)
           
 void setEditable(boolean newValue)
           
 void setErrorHandler(ErrorHandlerInterface newValue)
           
 void setExpandedIcon(com.sas.visuals.IconInterface newValue)
           
 void setExpandedSelectedIcon(com.sas.visuals.IconInterface newValue)
           
 void setExpandedTextDisplayed(boolean newValue)
           
 void setFontStyle(FontStyle newValue)
           
 void setForegroundColor(java.awt.Color newValue)
           
 void setImageSize(java.awt.Dimension newValue)
           
 void setImageVisible(boolean newValue)
           
 void setLeafNodeVerificationEnabled(boolean newValue)
           
 void setSelectable(boolean newValue)
           
 void setSelectedBackgroundColor(java.awt.Color newValue)
           
 void setSelectedForegroundColor(java.awt.Color newValue)
           
 void setSelectedIcon(com.sas.visuals.IconInterface newValue)
           
 void setTextGap(int newValue)
           
 void setTextPad(int newValue)
           
 void setVisible(boolean newValue)
           
 void unsetBackgroundColor()
           
 void unsetDefaultIcon()
           
 void unsetDragExpandEnabled()
           
 void unsetEditable()
           
 void unsetErrorHandler()
           
 void unsetExpandedIcon()
           
 void unsetExpandedSelectedIcon()
           
 void unsetExpandedTextDisplayed()
           
 void unsetFontStyle()
           
 void unsetForegroundColor()
           
 void unsetImageSize()
           
 void unsetImageVisible()
           
 void unsetLeafNodeVerificationEnabled()
           
 void unsetSelectable()
           
 void unsetSelectedBackgroundColor()
           
 void unsetSelectedForegroundColor()
           
 void unsetSelectedIcon()
           
 void unsetTextGap()
           
 void unsetTextPad()
           
 void unsetVisible()
           
 

Field Detail

BACKGROUND_COLOR

public static final java.lang.String BACKGROUND_COLOR
String used to identify the backgroundColor property in the bag.

See Also:
Constant Field Values

SELECTED_BACKGROUND_COLOR

public static final java.lang.String SELECTED_BACKGROUND_COLOR
String used to identify the selectedBackgroundColor property in the bag.

See Also:
Constant Field Values

FOREGROUND_COLOR

public static final java.lang.String FOREGROUND_COLOR
String used to identify the foregroundColor property in the bag.

See Also:
Constant Field Values

SELECTED_FOREGROUND_COLOR

public static final java.lang.String SELECTED_FOREGROUND_COLOR
String used to identify the selectedForegroundColor property in the bag.

See Also:
Constant Field Values

EXPANDED_TEXT_DISPLAYED

public static final java.lang.String EXPANDED_TEXT_DISPLAYED
String used to identify the expandedTextDisplayed property in the bag.

See Also:
Constant Field Values

SELECTABLE

public static final java.lang.String SELECTABLE
NOTE: This property is not yet supported. String used to identify the selectable property in the bag.

See Also:
Constant Field Values

TEXT_GAP

public static final java.lang.String TEXT_GAP
String used to identify the textGap property in the bag.

See Also:
Constant Field Values

TEXT_PAD

public static final java.lang.String TEXT_PAD
String used to identify the textPad property in the bag.

See Also:
Constant Field Values

IMAGE_VISIBLE

public static final java.lang.String IMAGE_VISIBLE
String used to identify the imageVisible property in the bag.

See Also:
Constant Field Values

IMAGE_SIZE

public static final java.lang.String IMAGE_SIZE
String used to identify the imageSize property in the bag.

See Also:
Constant Field Values

DEFAULT_ICON

public static final java.lang.String DEFAULT_ICON
String used to identify the defaultIcon property in the bag.

See Also:
Constant Field Values

SELECTED_ICON

public static final java.lang.String SELECTED_ICON
String used to identify the selectedIcon property in the bag.

See Also:
Constant Field Values

EXPANDED_ICON

public static final java.lang.String EXPANDED_ICON
String used to identify the expandedIcon property in the bag.

See Also:
Constant Field Values

EXPANDED_SELECTED_ICON

public static final java.lang.String EXPANDED_SELECTED_ICON
String used to identify the expandedSelectedIcon property in the bag.

See Also:
Constant Field Values

FONT_STYLE

public static final java.lang.String FONT_STYLE
String used to identify the fontStyle property in the bag.

See Also:
Constant Field Values

ERROR_HANDLER

public static final java.lang.String ERROR_HANDLER
String used to identify the errorHandler property in the bag.

See Also:
Constant Field Values

VISIBLE

public static final java.lang.String VISIBLE
String used to identify the visible property in the bag.

See Also:
Constant Field Values

EDITABLE

public static final java.lang.String EDITABLE
String used to identify the editable property in the bag.

See Also:
Constant Field Values

LEAF_NODE_VERIFICATION_ENABLED

public static final java.lang.String LEAF_NODE_VERIFICATION_ENABLED
String used to identify the leafNodeVerificationEnabled property in the bag.

See Also:
Constant Field Values

DRAG_EXPAND_ENABLED

public static final java.lang.String DRAG_EXPAND_ENABLED
String used to identify the dragExpandEnabled property in the bag.

See Also:
Constant Field Values
Constructor Detail

NodeStyle

public NodeStyle()
Method Detail

getBackgroundColor

public java.awt.Color getBackgroundColor()

setBackgroundColor

public void setBackgroundColor(java.awt.Color newValue)

isBackgroundColorSet

public boolean isBackgroundColorSet()

unsetBackgroundColor

public void unsetBackgroundColor()

getSelectedBackgroundColor

public java.awt.Color getSelectedBackgroundColor()

setSelectedBackgroundColor

public void setSelectedBackgroundColor(java.awt.Color newValue)

isSelectedBackgroundColor

public boolean isSelectedBackgroundColor()

unsetSelectedBackgroundColor

public void unsetSelectedBackgroundColor()

getForegroundColor

public java.awt.Color getForegroundColor()

setForegroundColor

public void setForegroundColor(java.awt.Color newValue)

isForegroundColorSet

public boolean isForegroundColorSet()

unsetForegroundColor

public void unsetForegroundColor()

getSelectedForegroundColor

public java.awt.Color getSelectedForegroundColor()

setSelectedForegroundColor

public void setSelectedForegroundColor(java.awt.Color newValue)

isSelectedForegroundColorSet

public boolean isSelectedForegroundColorSet()

unsetSelectedForegroundColor

public void unsetSelectedForegroundColor()

isExpandedTextDisplayed

public boolean isExpandedTextDisplayed()

setExpandedTextDisplayed

public void setExpandedTextDisplayed(boolean newValue)

isExpandedTextDisplayedSet

public boolean isExpandedTextDisplayedSet()

unsetExpandedTextDisplayed

public void unsetExpandedTextDisplayed()

isSelectable

public boolean isSelectable()

setSelectable

public void setSelectable(boolean newValue)

isSelectableSet

public boolean isSelectableSet()

unsetSelectable

public void unsetSelectable()

getTextGap

public int getTextGap()

setTextGap

public void setTextGap(int newValue)

isTextGapSet

public boolean isTextGapSet()

unsetTextGap

public void unsetTextGap()

getTextPad

public int getTextPad()

setTextPad

public void setTextPad(int newValue)

isTextPadSet

public boolean isTextPadSet()

unsetTextPad

public void unsetTextPad()

isImageVisible

public boolean isImageVisible()

setImageVisible

public void setImageVisible(boolean newValue)

isImageVisibleSet

public boolean isImageVisibleSet()

unsetImageVisible

public void unsetImageVisible()

getImageSize

public java.awt.Dimension getImageSize()

setImageSize

public void setImageSize(java.awt.Dimension newValue)

isImageSizeSet

public boolean isImageSizeSet()

unsetImageSize

public void unsetImageSize()

getDefaultIcon

public com.sas.visuals.IconInterface getDefaultIcon()

setDefaultIcon

public void setDefaultIcon(com.sas.visuals.IconInterface newValue)

isDefaultIconSet

public boolean isDefaultIconSet()

unsetDefaultIcon

public void unsetDefaultIcon()

getSelectedIcon

public com.sas.visuals.IconInterface getSelectedIcon()

setSelectedIcon

public void setSelectedIcon(com.sas.visuals.IconInterface newValue)

isSelectedIconSet

public boolean isSelectedIconSet()

unsetSelectedIcon

public void unsetSelectedIcon()

getExpandedIcon

public com.sas.visuals.IconInterface getExpandedIcon()

setExpandedIcon

public void setExpandedIcon(com.sas.visuals.IconInterface newValue)

isExpandedIconSet

public boolean isExpandedIconSet()

unsetExpandedIcon

public void unsetExpandedIcon()

getExpandedSelectedIcon

public com.sas.visuals.IconInterface getExpandedSelectedIcon()

setExpandedSelectedIcon

public void setExpandedSelectedIcon(com.sas.visuals.IconInterface newValue)

isExpandedSelectedIconSet

public boolean isExpandedSelectedIconSet()

unsetExpandedSelectedIcon

public void unsetExpandedSelectedIcon()

getFontStyle

public FontStyle getFontStyle()

setFontStyle

public void setFontStyle(FontStyle newValue)

isFontStyleSet

public boolean isFontStyleSet()

unsetFontStyle

public void unsetFontStyle()

isVisible

public boolean isVisible()

setVisible

public void setVisible(boolean newValue)

isVisibleSet

public boolean isVisibleSet()

unsetVisible

public void unsetVisible()

isEditable

public boolean isEditable()

setEditable

public void setEditable(boolean newValue)

isEditableSet

public boolean isEditableSet()

unsetEditable

public void unsetEditable()

isLeafNodeVerificationEnabled

public boolean isLeafNodeVerificationEnabled()

setLeafNodeVerificationEnabled

public void setLeafNodeVerificationEnabled(boolean newValue)

isLeafNodeVerificationEnabledSet

public boolean isLeafNodeVerificationEnabledSet()

unsetLeafNodeVerificationEnabled

public void unsetLeafNodeVerificationEnabled()

isDragExpandEnabled

public boolean isDragExpandEnabled()

setDragExpandEnabled

public void setDragExpandEnabled(boolean newValue)

isDragExpandEnabledSet

public boolean isDragExpandEnabledSet()

unsetDragExpandEnabled

public void unsetDragExpandEnabled()

getErrorHander

public ErrorHandlerInterface getErrorHander()

setErrorHandler

public void setErrorHandler(ErrorHandlerInterface newValue)

isErrorHandlerSet

public boolean isErrorHandlerSet()

unsetErrorHandler

public void unsetErrorHandler()



Copyright © 2009 SAS Institute Inc. All Rights Reserved.