jas.hist
Class ManagedAxis

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--javax.swing.JComponent
                    |
                    +--jas.plot.PlotComponent
                          |
                          +--jas.plot.Axis
                                |
                                +--jas.hist.ManagedAxis
All Implemented Interfaces:
java.io.Externalizable, HasPopupItems, java.awt.image.ImageObserver, JASHistAxis, java.awt.MenuContainer, java.io.Serializable

public final class ManagedAxis
extends Axis
implements JASHistAxis, java.io.Externalizable

See Also:
Serialized Form

Inner classes inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Inner classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Inner classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent
 
Fields inherited from class jas.plot.Axis
HORIZONTAL, VERTICAL
 
Fields inherited from class jas.plot.PlotComponent
BEVEL_IN, BEVEL_OUT, ETCHED, LINE, NONE, OTHER, SHADOW
 
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 jas.hist.JASHistAxis
DATE, DOUBLE, LEFT, RIGHT, STRING
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
ManagedAxis()
           
 
Method Summary
 boolean getAllowSuppressedZero()
           
 int getAxisType()
           
 int getBins()
           
 double getBinWidth()
           
 java.lang.String getLabel()
           
 EditableLabel getLabelObject()
           
 int getLabelPosition()
           
 double getMax()
           
 java.lang.Object getMaxObject()
           
 double getMin()
           
 java.lang.Object getMinObject()
           
 int getPosition()
           
 boolean getRangeAutomatic()
           
 boolean getShowOverflows()
           
 boolean isBinned()
           
 boolean isFixed()
           
 boolean isLogarithmic()
           
 boolean isShowing()
           
 boolean isVertical()
           
 void modifyPopupMenu(javax.swing.JPopupMenu menu, java.awt.Component source)
          Modify the given menu object.
 void readExternal(java.io.ObjectInput in)
           
 void setAllowSuppressedZero(boolean b)
           
 void setAxisType(int value)
           
 void setBinned(boolean value)
           
 void setBins(int value)
           
 void setBinWidth(double value)
           
 void setFixed(boolean value)
           
 void setLabel(java.lang.String s)
          sets the label text, creating the label if needed
 void setLabelObject(EditableLabel p_newLabel)
          sets the label to be the EditableLabel passed in
 void setLabelPosition(int pos)
           
 void setLogarithmic(boolean value)
           
 void setMax(double d)
           
 void setMaxObject(java.lang.Object value)
           
 void setMin(double d)
           
 void setMinObject(java.lang.Object value)
           
 void setPosition(int value)
           
 void setRange(double min, double max)
           
 void setRangeAutomatic(boolean b)
           
 void setShowing(boolean value)
           
 void setShowOverflows(boolean value)
           
 void writeExternal(java.io.ObjectOutput out)
           
 
Methods inherited from class jas.plot.Axis
getAxisColor, getAxisOrientation, getAxisOriginDotColor, getMajorTickMarkColor, getMaxLocation, getMinLocation, getMinorTickMarkColor, getOnLeftSide, getTextColor, getType, setAxisColor, setAxisOrientation, setAxisOriginDotColor, setBounds, setFont, setMajorTickMarkColor, setMinorTickMarkColor, setOnLeftSide, setTextColor, setType
 
Methods inherited from class jas.plot.PlotComponent
getBorderType, isPaintingBackground, paintComponent, setBackground, setBorderType
 
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, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getUIClassID, getVerifyInputWhenFocusTarget, getVisibleRect, getWidth, getX, getY, grabFocus, hasFocus, hide, isDoubleBuffered, isFocusCycleRoot, isFocusTraversable, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processFocusEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBorder, setDebugGraphicsOptions, setDoubleBuffered, setEnabled, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getLayout, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setLayout, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, imageUpdate, inside, isDisplayable, isEnabled, isLightweight, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, repaint, repaint, repaint, resize, resize, setBounds, setComponentOrientation, setCursor, setDropTarget, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface jas.hist.JASHistAxis
getAxisColor, getFont, getTextColor, setAxisColor, setFont, setTextColor
 

Constructor Detail

ManagedAxis

public ManagedAxis()
Method Detail

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Specified by:
writeExternal in interface java.io.Externalizable

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Specified by:
readExternal in interface java.io.Externalizable

isVertical

public boolean isVertical()
Specified by:
isVertical in interface JASHistAxis

isLogarithmic

public boolean isLogarithmic()
Specified by:
isLogarithmic in interface JASHistAxis

setLogarithmic

public void setLogarithmic(boolean value)
Specified by:
setLogarithmic in interface JASHistAxis

isShowing

public boolean isShowing()
Specified by:
isShowing in interface JASHistAxis
Overrides:
isShowing in class java.awt.Component

setShowing

public void setShowing(boolean value)
Specified by:
setShowing in interface JASHistAxis

getLabelObject

public EditableLabel getLabelObject()
Specified by:
getLabelObject in interface JASHistAxis
Returns:
the EditableLabel itself, not just the text
See Also:
getLabel()

getLabel

public java.lang.String getLabel()
Specified by:
getLabel in interface JASHistAxis
Returns:
the label text
See Also:
getLabelObject()

setLabelObject

public void setLabelObject(EditableLabel p_newLabel)
sets the label to be the EditableLabel passed in
Specified by:
setLabelObject in interface JASHistAxis
Parameters:
p_newLabel - the new label

setLabel

public void setLabel(java.lang.String s)
sets the label text, creating the label if needed
Specified by:
setLabel in interface JASHistAxis
Parameters:
s - the new text of the label

getMin

public double getMin()
Specified by:
getMin in interface JASHistAxis

setMin

public void setMin(double d)
Specified by:
setMin in interface JASHistAxis

getMax

public double getMax()
Specified by:
getMax in interface JASHistAxis

setMax

public void setMax(double d)
Specified by:
setMax in interface JASHistAxis

setRange

public void setRange(double min,
                     double max)
Specified by:
setRange in interface JASHistAxis

getMinObject

public java.lang.Object getMinObject()
Specified by:
getMinObject in interface JASHistAxis

getMaxObject

public java.lang.Object getMaxObject()
Specified by:
getMaxObject in interface JASHistAxis

setMinObject

public void setMinObject(java.lang.Object value)
Specified by:
setMinObject in interface JASHistAxis

setMaxObject

public void setMaxObject(java.lang.Object value)
Specified by:
setMaxObject in interface JASHistAxis

getRangeAutomatic

public boolean getRangeAutomatic()
Specified by:
getRangeAutomatic in interface JASHistAxis

setRangeAutomatic

public void setRangeAutomatic(boolean b)
Specified by:
setRangeAutomatic in interface JASHistAxis

getAllowSuppressedZero

public boolean getAllowSuppressedZero()
Specified by:
getAllowSuppressedZero in interface JASHistAxis

setAllowSuppressedZero

public void setAllowSuppressedZero(boolean b)
Specified by:
setAllowSuppressedZero in interface JASHistAxis

isBinned

public boolean isBinned()
Specified by:
isBinned in interface JASHistAxis

setBinned

public void setBinned(boolean value)

isFixed

public boolean isFixed()
Specified by:
isFixed in interface JASHistAxis

setFixed

public void setFixed(boolean value)

getBins

public int getBins()
Specified by:
getBins in interface JASHistAxis

setBins

public void setBins(int value)
Specified by:
setBins in interface JASHistAxis

getBinWidth

public double getBinWidth()
Specified by:
getBinWidth in interface JASHistAxis

setBinWidth

public void setBinWidth(double value)
Specified by:
setBinWidth in interface JASHistAxis

getShowOverflows

public boolean getShowOverflows()
Specified by:
getShowOverflows in interface JASHistAxis

setShowOverflows

public void setShowOverflows(boolean value)
Specified by:
setShowOverflows in interface JASHistAxis

getLabelPosition

public int getLabelPosition()
Specified by:
getLabelPosition in interface JASHistAxis

setLabelPosition

public void setLabelPosition(int pos)
Specified by:
setLabelPosition in interface JASHistAxis

getPosition

public int getPosition()
Specified by:
getPosition in interface JASHistAxis

setPosition

public void setPosition(int value)
Specified by:
setPosition in interface JASHistAxis

getAxisType

public int getAxisType()
Specified by:
getAxisType in interface JASHistAxis

setAxisType

public void setAxisType(int value)
Specified by:
setAxisType in interface JASHistAxis

modifyPopupMenu

public void modifyPopupMenu(javax.swing.JPopupMenu menu,
                            java.awt.Component source)
Description copied from interface: HasPopupItems
Modify the given menu object.
Overrides:
modifyPopupMenu in class Axis