com.sas.graphics.chart.bean
Class Axis

java.lang.Object
  |
  +--java.awt.Component
        |
        +--com.sas.awt.ComponentVisualComponent
              |
              +--com.sas.awt.Component
                    |
                    +--com.sas.graphics.chart.bean.Axis
All Implemented Interfaces:
ComponentInterface, LinkPropertiesInterface, ModelInterface, MultipleValueEventSourceInterface, PrintableInterface, com.sas.beans.PropertyChangeSource, VetoableChangeSource, ViewInterface, VisualInterface

public class Axis
extends Component
implements java.io.Serializable

The Axis class encapsulates axis specific attributes used by the charts. The attribute styles for the axis title and values is maintained here.

Usage

May specify style information for the axis to use.

Example

Suppose you wanted the axis values to appear with an Italic style.

 axis.getStyle().getValueFontStyle().setStyle(FontStyles.Italic());
 

Properties

 o
Name style
Type AxisStyle
Default value An empty AxisStyle.
Short description Axis style preferences.
Description User assigned appearance preferences.

See Also:
AxisStyle, Serialized Form

Inner classes inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
Field Summary
protected  AxisStyle _baseAxisStyle
           
static String DEFAULT_STYLE
           
static String RB_KEY
           
static String STYLE
           
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
Axis()
          Default constructor.
Axis(AxisStyle newAxisStyle)
          Constructor with a specified AxisStyle.
 
Method Summary
protected  AxisStyle _initBaseStyle(AxisStyle baseStyle)
           
protected  AxisStyle _newAxisStyle()
           
 AxisStyle getDefaultStyle()
          Return the default axisStyle preferences.
 AxisStyle getEffectiveStyle()
           
static ExtendedBeanInfo getExtendedBeanInfo()
          Returns information used by the com.sas.beans.Introspector to augment the automatically introspected information about the component.
 AxisStyle getStyle()
          Return the user defined axisStyle preferences.
 void setDefaultStyle(AxisStyle newStyle)
          Assign the default axisStyle preferences.
 void setDefaultValues()
          Set default values which are different that parent classes.
 void setStyle(AxisStyle newStyle)
          Assign the user defined axisStyle preferences.
 
Methods inherited from class com.sas.awt.Component
getDefaultHeight, getDefaultWidth, getMinimumSize, setDefaultHeight, setDefaultWidth
 
Methods inherited from class com.sas.awt.ComponentVisualComponent
addLink, addPropertyChangeListener, addVetoableChangeListener, anyPropertyChangeListeners, attachModel, attachView, clone, computePreferredSize, detachModel, detachView, dumpComponent, firePropertyChange, firePropertyChange, fireVetoableChange, getBackgroundColor, getBorder, getComponentDescription, getComponentSupportInfo, getEventMethod, getEventValues, getFont, getForegroundColor, getHeight, getHorizontalPosition, getLinkInfo, getModelInterface, getPageBounds, getPreferredSize, getPrePainter, getPrintOptionsPanel, getRequiredInterfaces, getVerticalPosition, getViewInterfaceSupportInfo, getVisualInterfaceSupportInfo, getWidth, initialize, initializeComponent, isDesignTime, isEnabled, isFocus, isLinked, isTransparent, isVisible, pageExists, paint, print, printFinalize, printInitialize, propertyChange, queryLinks, queryLinks, refresh, removeAllLinks, removeInterfaceTraps, removeLink, removePropertyChangeListener, removeVetoableChangeListener, setBackgroundColor, setBorder, setBounds, setComponentDescription, setComponentSupportInfo, setEnabled, setFocus, setFont, setForegroundColor, setHeight, setHorizontalPosition, setLinkInfo, setModelInterface, setPreferredSize, setPrePainter, setRequiredInterfaces, setTransparent, setVerticalPosition, setViewInterfaceSupportInfo, setVisible, setVisualInterfaceSupportInfo, setWidth, superGetFont, superGetMinimumSize, superGetPreferredSize, superIsEnabled, superIsVisible, superPaint, superSetBounds, superSetEnabled, superSetFont, superSetVisible, superUpdate, supportsListenerInterface, supportsRequiredInterfaces, trapInterfaceEvents, update, validateObject
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addNotify, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, getAccessibleContext, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isFocusable, isFocusCycleRoot, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isShowing, isValid, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, paramString, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, processComponentEvent, processEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, validate
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RB_KEY

public static final String RB_KEY

STYLE

public static final String STYLE

DEFAULT_STYLE

public static final String DEFAULT_STYLE

_baseAxisStyle

protected AxisStyle _baseAxisStyle
Constructor Detail

Axis

public Axis()
Default constructor.

Axis

public Axis(AxisStyle newAxisStyle)
Constructor with a specified AxisStyle.
Parameters:
newAxisStyle - - the AxisStyle property bag.
Method Detail

getExtendedBeanInfo

public static ExtendedBeanInfo getExtendedBeanInfo()
Description copied from class: ComponentVisualComponent
Returns information used by the com.sas.beans.Introspector to augment the automatically introspected information about the component.
Following copied from class: com.sas.awt.Component
Returns:
The ExtendedBeanInfo for this class.

setDefaultValues

public void setDefaultValues()
Description copied from class: Component
Set default values which are different that parent classes.
Overrides:
setDefaultValues in class Component
Following copied from class: com.sas.awt.ComponentVisualComponent
See Also:
ComponentInterface.setDefaultValues()

_newAxisStyle

protected AxisStyle _newAxisStyle()

_initBaseStyle

protected AxisStyle _initBaseStyle(AxisStyle baseStyle)

setStyle

public void setStyle(AxisStyle newStyle)
Assign the user defined axisStyle preferences. A null value is legal and will cause the axis to create a new empty AxisStyle property bag. Note
See Also:
getStyle(), AxisStyle, PropertyBag

getStyle

public AxisStyle getStyle()
Return the user defined axisStyle preferences. As a convenience this method will never return null. If the axisStyle is currently null then with the assumption that the caller wishes to set some attribute, this method will create a new AxisStyle property bag, attach it to this object and retrun it to the caller.
See Also:
setStyle(com.sas.graphics.chart.bean.AxisStyle), AxisStyle

setDefaultStyle

public void setDefaultStyle(AxisStyle newStyle)
Assign the default axisStyle preferences. A null value is legal and will cause the axis to create a new empty AxisStyle property bag. Note
See Also:
getDefaultStyle(), AxisStyle, PropertyBag

getDefaultStyle

public AxisStyle getDefaultStyle()
Return the default axisStyle preferences. As a convenience this method will never return null. If the axisStyle is currently null then with the assumption that the caller wishes to set some attribute, this method will create a new AxisStyle property bag, attach it to this object and retrun it to the caller.
See Also:
setDefaultStyle(com.sas.graphics.chart.bean.AxisStyle), AxisStyle

getEffectiveStyle

public final AxisStyle getEffectiveStyle()




Copyright © 2005 SAS Institute Inc. All Rights Reserved.
javadoc generated Thu, 16 Feb 2006 02:01:01