org.ejtools.graph
Class Axis

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--javax.swing.JComponent
                    |
                    +--org.ejtools.graph.renderer.AbstractGraphRenderer
                          |
                          +--org.ejtools.graph.Axis
All Implemented Interfaces:
GraphRenderer, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable
Direct Known Subclasses:
GridGraphRenderer, HorizontalAxis, VerticalAxis

public abstract class Axis
extends AbstractGraphRenderer

Version:
$Revision: 1.8 $
Author:
Laurent Etiemble
See Also:
Serialized Form

Field Summary
static int BOTTOM
          Description of the Field
protected  java.awt.Dimension dimension
          Description of the Field
protected static java.awt.Font FONT
          Description of the Field
protected  java.text.Format format
          Description of the Field
static int HORIZONTAL
          Description of the Field
static int LEFT
          Description of the Field
protected  int orientation
          Description of the Field
protected  int position
          Description of the Field
protected  Range range
          Description of the Field
static int RIGHT
          Description of the Field
static int TOP
          Description of the Field
static int VERTICAL
          Description of the Field
 
Fields inherited from class org.ejtools.graph.renderer.AbstractGraphRenderer
element, horizontalScale, horizontalScaling, verticalScale, verticalScaling
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface org.ejtools.graph.GraphRenderer
ALIGN_LEFT, ALIGN_RIGHT, BOUNDED, JUSTIFIED, SMOOTH
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
Axis()
          Constructor for Axis.
 
Method Summary
 java.text.Format getFormat()
          Returns the format.
 java.lang.String getFormated(double value)
          Gets the formated attribute of the Axis object
 java.awt.Dimension getMinimumSize()
           
 int getOrientation()
          Returns the orientation.
 int getPosition()
          Returns the position.
 java.awt.Dimension getPreferredSize()
           
 Range getRange()
          Returns the range.
 void setFormat(java.text.Format format)
          Sets the format.
 void setPosition(int position)
          Sets the position.
 void setRange(Range range)
          Sets the range.
 
Methods inherited from class org.ejtools.graph.renderer.AbstractGraphRenderer
paintComponent, setGraphElement, setHorizontalScale, setHorizontalScaling, setVerticalScale, setVerticalScaling
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getNextFocusableComponent, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

dimension

protected java.awt.Dimension dimension
Description of the Field


format

protected java.text.Format format
Description of the Field


orientation

protected int orientation
Description of the Field


position

protected int position
Description of the Field


range

protected Range range
Description of the Field


FONT

protected static java.awt.Font FONT
Description of the Field


BOTTOM

public static final int BOTTOM
Description of the Field

See Also:
Constant Field Values

HORIZONTAL

public static final int HORIZONTAL
Description of the Field

See Also:
Constant Field Values

LEFT

public static final int LEFT
Description of the Field

See Also:
Constant Field Values

RIGHT

public static final int RIGHT
Description of the Field

See Also:
Constant Field Values

TOP

public static final int TOP
Description of the Field

See Also:
Constant Field Values

VERTICAL

public static final int VERTICAL
Description of the Field

See Also:
Constant Field Values
Constructor Detail

Axis

public Axis()
Constructor for Axis.

Method Detail

getFormat

public java.text.Format getFormat()
Returns the format.

Returns:
Format

getFormated

public java.lang.String getFormated(double value)
Gets the formated attribute of the Axis object

Parameters:
value - Description of the Parameter
Returns:
The formated value

getMinimumSize

public java.awt.Dimension getMinimumSize()
Overrides:
getMinimumSize in class javax.swing.JComponent
Returns:
The minimumSize value

getOrientation

public int getOrientation()
Returns the orientation.

Returns:
int

getPosition

public int getPosition()
Returns the position.

Returns:
int

getPreferredSize

public java.awt.Dimension getPreferredSize()
Overrides:
getPreferredSize in class javax.swing.JComponent
Returns:
The preferredSize value

getRange

public Range getRange()
Returns the range.

Returns:
Range

setFormat

public void setFormat(java.text.Format format)
Sets the format.

Parameters:
format - The format to set

setPosition

public void setPosition(int position)
Sets the position.

Parameters:
position - The position to set

setRange

public void setRange(Range range)
Sets the range.

Parameters:
range - The new range value


Copyright © 2002-2003 EJTools Org.. All Rights Reserved.