Documentation of 'jas2.plot.Axis' Java class
Axis
jas2.plot

Class Axis

  • All Implemented Interfaces:
    HasPopupItems, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable
    Direct Known Subclasses:
    ColorMapAxis, ManagedAxis


    public class Axis
    extends PlotComponent
    implements HasPopupItems
    This class represents a plot axis as a GUI component. It depends on a subclass of AxisType to implement the type-specific properties necessary for a meaningful axis.
    See Also:
    AxisType, Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class javax.swing.JComponent

        javax.swing.JComponent.AccessibleJComponent
      • Nested classes/interfaces inherited from class java.awt.Component

        java.awt.Component.BaselineResizeBehavior
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static int HORIZONTAL
      Represents horizontal orientation for both labels and axes.
      static int VERTICAL
      Represents vertical orientation for both labels and axes.
      • Fields inherited from class javax.swing.JComponent

        TOOL_TIP_TEXT_KEY, 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 java.awt.image.ImageObserver

        ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
    • Constructor Summary

      Constructors 
      Constructor and Description
      Axis()
      This consturctor is primarily for object deserialization.
      Axis(AxisType type, boolean onLeftSide)
      Creates a vertical axis object.
      Axis(AxisType type, int axisOrientation)
      Creates a new axis object.
      Axis(AxisType type, int axisOrientation, boolean onLeftSide)
      Creates a new axis object.
      Axis(int axisOrientation)
      Creates a new axis object, using a numeric axis (class DoubleAxis).
      Axis(int axisOrientation, boolean onLeftSide)
      Creates a numerical axis object (uses class DoubleAxis).
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.awt.Color getAxisColor() 
      int getAxisOrientation() 
      java.awt.Color getAxisOriginDotColor() 
      float getAxisWidth() 
      java.awt.Color getMajorTickMarkColor() 
      int getMaxLocation()
      Used by superclasses to convert coordinates.
      int getMinLocation()
      Used by superclasses to convert coordinates.
      java.awt.Color getMinorTickMarkColor() 
      boolean getOnLeftSide() 
      java.awt.Color getTextColor() 
      AxisType getType()
      Returns the AxisType for this axis.
      void modifyPopupMenu(javax.swing.JPopupMenu menu, java.awt.Component source)
      Modify the given menu object.
      void setAxisColor(java.awt.Color newColor) 
      void setAxisOriginDotColor(java.awt.Color newColor) 
      void setAxisWidth(float newWidth) 
      void setBounds(int x, int y, int width, int height)
      This method is public as an implementation side-effect; do not call.
      void setFont(java.awt.Font font) 
      void setMajorTickMarkColor(java.awt.Color newColor) 
      void setMinorTickMarkColor(java.awt.Color newColor) 
      void setOnLeftSide(boolean left) 
      void setTextColor(java.awt.Color newColor) 
      void setType(AxisType type)
      Sets the AxisType for this axis.
      • Methods inherited from class javax.swing.JComponent

        addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI
      • Methods inherited from class java.awt.Container

        add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate
      • Methods inherited from class java.awt.Component

        action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • VERTICAL

        public static final int VERTICAL
        Represents vertical orientation for both labels and axes.
        See Also:
        Constant Field Values
      • HORIZONTAL

        public static final int HORIZONTAL
        Represents horizontal orientation for both labels and axes.
        See Also:
        Constant Field Values
    • Constructor Detail

      • Axis

        public Axis()
        This consturctor is primarily for object deserialization. It creates a vertical axis object with a numeric (class DoubleAxis) which will be on the left side.
        See Also:
        DoubleAxis
      • Axis

        public Axis(AxisType type,
                    int axisOrientation)
        Creates a new axis object. If this axis is vertical it will be on the left side of the plot.
        Parameters:
        type - the AxisType object that represents the data type for this axis
        axisOrientation - the orientation of the axis (use constants Axis.HORIZONTAL and Axis.VERTICAL)
      • Axis

        public Axis(int axisOrientation)
        Creates a new axis object, using a numeric axis (class DoubleAxis). If this axis is vertical it will be on the left side of the plot.
        Parameters:
        axisOrientation - the orientation of the axis (use constants Axis.HORIZONTAL and Axis.VERTICAL)
        See Also:
        DoubleAxis
      • Axis

        public Axis(int axisOrientation,
                    boolean onLeftSide)
        Creates a numerical axis object (uses class DoubleAxis).
        Parameters:
        axisOrientation - the orientation of the axis (use constants Axis.HORIZONTAL and Axis.VERTICAL)
        onLeftSide - whether this axis is on the left
        See Also:
        DoubleAxis
      • Axis

        public Axis(AxisType type,
                    boolean onLeftSide)
        Creates a vertical axis object.
        Parameters:
        type - the AxisType object that represents the data type for this axis
        onLeftSide - whether this axis is on the left
      • Axis

        public Axis(AxisType type,
                    int axisOrientation,
                    boolean onLeftSide)
        Creates a new axis object.
        Parameters:
        type - the AxisType object that represents the data type for this axis
        axisOrientation - the orientation of the axis (use constants Axis.HORIZONTAL and Axis.VERTICAL)
        onLeftSide - whether this axis is on the left
    • Method Detail

      • modifyPopupMenu

        public void modifyPopupMenu(javax.swing.JPopupMenu menu,
                                    java.awt.Component source)
        Description copied from interface: HasPopupItems
        Modify the given menu object.
        Specified by:
        modifyPopupMenu in interface HasPopupItems
      • setType

        public final void setType(AxisType type)
        Sets the AxisType for this axis.
      • setFont

        public final void setFont(java.awt.Font font)
        Overrides:
        setFont in class javax.swing.JComponent
      • getType

        public final AxisType getType()
        Returns the AxisType for this axis.
      • getMinLocation

        public final int getMinLocation()
        Used by superclasses to convert coordinates.
      • getMaxLocation

        public final int getMaxLocation()
        Used by superclasses to convert coordinates.
      • setBounds

        public final void setBounds(int x,
                                    int y,
                                    int width,
                                    int height)
        This method is public as an implementation side-effect; do not call.
        Overrides:
        setBounds in class java.awt.Component
      • getAxisOrientation

        public final int getAxisOrientation()
      • getOnLeftSide

        public final boolean getOnLeftSide()
      • setOnLeftSide

        public final void setOnLeftSide(boolean left)
      • getAxisColor

        public java.awt.Color getAxisColor()
      • setAxisWidth

        public void setAxisWidth(float newWidth)
      • getAxisWidth

        public float getAxisWidth()
      • setAxisColor

        public void setAxisColor(java.awt.Color newColor)
      • getAxisOriginDotColor

        public java.awt.Color getAxisOriginDotColor()
      • setAxisOriginDotColor

        public void setAxisOriginDotColor(java.awt.Color newColor)
      • getMajorTickMarkColor

        public java.awt.Color getMajorTickMarkColor()
      • setMajorTickMarkColor

        public void setMajorTickMarkColor(java.awt.Color newColor)
      • getMinorTickMarkColor

        public java.awt.Color getMinorTickMarkColor()
      • setMinorTickMarkColor

        public void setMinorTickMarkColor(java.awt.Color newColor)
      • getTextColor

        public java.awt.Color getTextColor()
      • setTextColor

        public void setTextColor(java.awt.Color newColor)

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.