kcl.waterloo.graphics
Class GJAbstractGraph1
- java.lang.Object
-
- java.awt.Component
-
- java.awt.Container
-
- javax.swing.JComponent
-
- javax.swing.JPanel
-
- org.jdesktop.swingx.JXPanel
-
- kcl.waterloo.graphics.GJBasicPanel
-
- kcl.waterloo.graphics.GJAbstractGraph0
-
- kcl.waterloo.graphics.GJAbstractGraph1
-
- All Implemented Interfaces:
- java.awt.event.ComponentListener, java.awt.event.ContainerListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.awt.print.Printable, java.beans.PropertyChangeListener, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible, javax.swing.Scrollable, GJAxisSupportInterface, GJGraphInterface, GJLayerInterface<GJGraphInterface>, GJLinkableInterface, GJObservableInterface
- Direct Known Subclasses:
- GJAbstractGraph
public abstract class GJAbstractGraph1 extends GJAbstractGraph0
GJAbstractGraph1 provides support for data transforms on each axis. Its presence as a separate class is cosmetic: it serves only to encapsulate methods that that support/require transforms.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class kcl.waterloo.graphics.GJBasicPanel
GJBasicPanel.LocalTransferable
-
-
Field Summary
-
Fields inherited from class javax.swing.JComponent
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
-
-
Constructor Summary
Constructors Constructor and Description GJAbstractGraph1()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.StringformatXAxisLabel(double number)Returns a string for x-axis labels formatted by an internal formatterjava.lang.StringformatYAxisLabel(double number)Returns a string for y-axis labels formatted by an internal formatterdoublegetXAxisLabelRotation(double number)Returns the rotation for x-axis labels at the location specified by vGJDataTransformInterfacegetXTransform()Get the transform for the x-datadoublegetYAxisLabelRotation(double number)Returns the rotation for y-axis labels at the location specified by vGJDataTransformInterfacegetYTransform()Get the transform for the y-datavoidsetXTransform(GJDataTransformInterface tr)Sets the transform for the x-datavoidsetYTransform(GJDataTransformInterface tr)Sets the transform for the y-datajava.awt.geom.Rectangle2D.DoubletransformPixelToPosition(java.awt.geom.Rectangle2D r)java.awt.geom.Path2DtransformPixelToPosition(java.awt.Shape s)java.awt.geom.Rectangle2D.DoubletransformPositionToPixel(java.awt.geom.Rectangle2D r)java.awt.geom.Path2DtransformPositionToPixel(java.awt.Shape s)-
Methods inherited from class kcl.waterloo.graphics.GJAbstractGraph0
convertPixelsToPosition, getOrigin, getOriginX, getOriginY, getPixelHeight, getPixelWidth, getXLeft, getXMax, getXMin, getXRight, getYBottom, getYMax, getYMin, getYTop, setOrigin, setOriginX, setOriginY, setXLeft, setXRight, setYBottom, setYTop, xPixelToPosition, xPixelToPosition, xPixelToPositioni, xPositionToPixel, xPositionToPixel, xPositionToPixeli, yPixelToPosition, yPixelToPosition, yPixelToPositioni, yPositionToPixel, yPositionToPixel, yPositionToPixeli
-
Methods inherited from class kcl.waterloo.graphics.GJBasicPanel
componentAdded, componentHidden, componentMoved, componentRemoved, componentResized, componentShown, getAllComponents, getID, getImage, getTransferable, getTransferable, isBackgroundPainted, isOnEDT, paintComponent, print, print, setBackgroundPainted, setID
-
Methods inherited from class org.jdesktop.swingx.JXPanel
getAlpha, getBackgroundPainter, getEffectiveAlpha, getPreferredScrollableViewportSize, getScrollableBlockIncrement, getScrollableTracksViewportHeight, getScrollableTracksViewportWidth, getScrollableUnitIncrement, isInheritAlpha, isPaintBorderInsets, paint, setAlpha, setBackgroundPainter, setInheritAlpha, setOpaque, setPaintBorderInsets, setScrollableHeightHint, setScrollableTracksViewportHeight, setScrollableTracksViewportWidth, setScrollableWidthHint
-
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, setUI, updateUI
-
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, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
-
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, 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, 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
-
Methods inherited from interface kcl.waterloo.graphics.GJGraphInterface
add, add, add, add, add, addListeners, autoScale, createAxes, fetchEditor, getGraphContainer, getMouseHandler, getMousePositionTextField, getPlots, getSelectedPlots, isPolar, isTextAsInverse, remove, saveAsXML, setBackgroundPainted, setEditor, setGraphContainer, setGraphContainer, setKeyAntialiasing, setMousePositionTextField, setPlots, setSelectedPlots, setTextAntialiasing, setTextAsInverse
-
Methods inherited from interface kcl.waterloo.graphics.GJLayerInterface
add, getAncestorGraph, getCurrentLayer, getCurrentLayerIndex, getLayer, getLayers, indexOf, setCurrentLayer, setCurrentLayerIndex
-
Methods inherited from interface kcl.waterloo.graphics.GJAxisSupportInterface
format, getAxesBounds, getAxisColor, getAxisMouseHandler, getAxisStrokeWeight, getBottomAxisPanel, getCategoricalLabels, getLeftAxisPanel, getMajorGridColor, getMajorGridStrokeWeight, getMajorXHint, getMajorYHint, getMinorCountXHint, getMinorCountYHint, getMinorGridColor, getMinorGridStrokeWeight, getRightAxisPanel, getTopAxisPanel, getXLabel, getYLabel, isBottomAxisLabelled, isBottomAxisPainted, isCategorical, isInnerAxisLabelled, isInnerAxisPainted, isLeftAxisLabelled, isLeftAxisPainted, isMajorGridPainted, isMinorGridPainted, isRightAxisLabelled, isRightAxisPainted, isTopAxisLabelled, isTopAxisPainted, isXReversed, isYReversed, setAxesBounds, setAxisColor, setAxisStrokeWeight, setBottomAxisLabelled, setBottomAxisPainted, setInnerAxisLabelled, setInnerAxisPainted, setLeftAxisLabelled, setLeftAxisPainted, setMajorGridColor, setMajorGridPainted, setMajorGridStrokeWeight, setMajorXHint, setMajorXHint, setMajorYHint, setMajorYHint, setMinorCountXHint, setMinorCountYHint, setMinorGridColor, setMinorGridPainted, setMinorGridStrokeWeight, setReverseX, setReverseY, setRightAxisLabelled, setRightAxisPainted, setTopAxisLabelled, setTopAxisPainted, setXLabel, setYLabel
-
Methods inherited from interface kcl.waterloo.observable.GJObservableInterface
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, getPropertyChangeListeners, getPropertyChangeListeners, hasListeners, hasSelfListener, removePropertyChangeListener, removePropertyChangeListener
-
Methods inherited from interface kcl.waterloo.observable.GJLinkableInterface
addLink, getLinks, removeLink, setLinks
-
-
-
-
Method Detail
-
getXTransform
public final GJDataTransformInterface getXTransform()
Get the transform for the x-data- Returns:
-
setXTransform
public final void setXTransform(GJDataTransformInterface tr)
Sets the transform for the x-data- Parameters:
tr-
-
getYTransform
public final GJDataTransformInterface getYTransform()
Description copied from interface:GJGraphInterfaceGet the transform for the y-data- Returns:
- a
GJDataTransformInterface
-
setYTransform
public final void setYTransform(GJDataTransformInterface tr)
Description copied from interface:GJGraphInterfaceSets the transform for the y-data- Parameters:
tr- aGJDataTransformInterface
-
transformPositionToPixel
public java.awt.geom.Path2D transformPositionToPixel(java.awt.Shape s)
-
transformPixelToPosition
public java.awt.geom.Path2D transformPixelToPosition(java.awt.Shape s)
-
transformPositionToPixel
public java.awt.geom.Rectangle2D.Double transformPositionToPixel(java.awt.geom.Rectangle2D r)
-
transformPixelToPosition
public java.awt.geom.Rectangle2D.Double transformPixelToPosition(java.awt.geom.Rectangle2D r)
-
getXAxisLabelRotation
public final double getXAxisLabelRotation(double number)
Description copied from interface:GJAxisSupportInterfaceReturns the rotation for x-axis labels at the location specified by v- Parameters:
number- the location- Returns:
- the rotation in radians
-
getYAxisLabelRotation
public final double getYAxisLabelRotation(double number)
Description copied from interface:GJAxisSupportInterfaceReturns the rotation for y-axis labels at the location specified by v- Parameters:
number- the location- Returns:
- the rotation in radians
-
formatXAxisLabel
public final java.lang.String formatXAxisLabel(double number)
Description copied from interface:GJAxisSupportInterfaceReturns a string for x-axis labels formatted by an internal formatter- Parameters:
number- the value to format- Returns:
- the String
-
formatYAxisLabel
public final java.lang.String formatYAxisLabel(double number)
Description copied from interface:GJAxisSupportInterfaceReturns a string for y-axis labels formatted by an internal formatter- Parameters:
number- the value to format- Returns:
- the String
-
-
DMelt 3.0 © DataMelt by jWork.ORG