public abstract class GJAbstractGraph0 extends GJBasicPanel implements GJGraphInterface
GJBasicPanel.LocalTransferablejavax.swing.JPanel.AccessibleJPaneljavax.swing.JComponent.AccessibleJComponentaccessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW| Constructor and Description |
|---|
GJAbstractGraph0() |
| Modifier and Type | Method and Description |
|---|---|
java.awt.geom.Rectangle2D |
convertPixelsToPosition(java.awt.geom.Rectangle2D r1)
Returns a rectangle defined in axes units from a rectangle defined in
pixels.
|
java.awt.geom.Point2D |
getOrigin()
Gets the origin coordinates of the graph.
|
double |
getOriginX()
Returns the origin for the y-dimension
|
double |
getOriginY()
Returns the origin for the x-dimension
|
double |
getPixelHeight()
Returns the height of a pixel in graph coordinates.
|
double |
getPixelWidth()
Returns the width of a pixel in graph coordinates.
|
double |
getXLeft()
Returns the value displayed at the left of the x-axis
|
double |
getXMax()
Returns the maximum value for the x-axis display
|
double |
getXMin()
Returns the minimum value for the x-axis display
|
double |
getXRight()
Returns the value displayed at the right of the x-axis
|
double |
getYBottom()
Returns the value displayed at the bottom of the y-axis
|
double |
getYMax()
Returns the maximum value for the x-axis display
|
double |
getYMin()
Returns the minimum value for the y-axis display
|
double |
getYTop()
Returns the value displayed at the top of the y-axis
|
void |
setOrigin(java.awt.geom.Point2D origin)
Sets the origin of the graph.
|
void |
setOriginX(double v)
Sets the origin for the x-dimension
|
void |
setOriginY(double v)
Sets the origin for the y-dimension
|
void |
setXLeft(double v)
Sets the value displayed at the left of the x-axis
|
void |
setXRight(double v)
Sets the value displayed at the right of the x-axis
|
void |
setYBottom(double v)
Sets the value displayed at the bottom of the y-axis
|
void |
setYTop(double v)
Sets the value displayed at the top of the y-axis
|
double |
xPixelToPosition(double pixel)
Convert a pixel location to a graph coordinate on the x-axis.
|
double[] |
xPixelToPosition(double[] pixel)
Convert an array of pixel locations to graph coordinates on the x-axis.
|
double[] |
xPixelToPositioni(double[] pixel)
Convert an array of pixel locations to graph coordinates on the x-axis.
|
double |
xPositionToPixel(double position)
Convert an axis location to a pixel value This method does not compensate
for rotation or zoom.
|
double[] |
xPositionToPixel(double[] position)
Convert an array of axis locations to a pixel values.
|
double[] |
xPositionToPixeli(double[] position)
Convert an array of axis locations to a pixel values.
|
double |
yPixelToPosition(double pixel)
Convert a pixel location to a graph coordinate on the y-axis.
|
double[] |
yPixelToPosition(double[] pixel)
Convert an array of pixel locations to graph coordinates on the y-axis.
|
double[] |
yPixelToPositioni(double[] pixel)
Convert an array of pixel locations to graph coordinates on the y-axis.
|
double |
yPositionToPixel(double position)
Convert an array of axis locations to a pixel values.
|
double[] |
yPositionToPixel(double[] position)
Convert an array of axis locations to a pixel values.
|
double[] |
yPositionToPixeli(double[] position)
Convert an array of axis locations to a pixel values.
|
componentAdded, componentHidden, componentMoved, componentRemoved, componentResized, componentShown, getAllComponents, getID, getImage, getTransferable, getTransferable, isBackgroundPainted, isOnEDT, paintComponent, print, print, setBackgroundPainted, setIDgetAlpha, getBackgroundPainter, getEffectiveAlpha, getPainterChangeListener, getPreferredScrollableViewportSize, getScrollableBlockIncrement, getScrollableHeightHint, getScrollableTracksViewportHeight, getScrollableTracksViewportWidth, getScrollableUnitIncrement, getScrollableWidthHint, isInheritAlpha, isPaintBorderInsets, isPaintingOrigin, paint, setAlpha, setBackgroundPainter, setInheritAlpha, setOpaque, setPaintBorderInsets, setScrollableHeightHint, setScrollableTracksViewportHeight, setScrollableTracksViewportWidth, setScrollableWidthHintgetAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUIaddAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, 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, paintBorder, paintChildren, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, 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, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, updateadd, add, add, add, add, addContainerListener, addImpl, 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, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTreeaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, 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, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, 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, transferFocusUpCycleclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitadd, add, add, add, add, addListeners, autoScale, createAxes, fetchEditor, getGraphContainer, getMouseHandler, getMousePositionTextField, getPlots, getSelectedPlots, getXTransform, getYTransform, isPolar, isTextAsInverse, remove, saveAsXML, setBackgroundPainted, setEditor, setGraphContainer, setGraphContainer, setKeyAntialiasing, setMousePositionTextField, setPlots, setSelectedPlots, setTextAntialiasing, setTextAsInverse, setXTransform, setYTransformadd, getAncestorGraph, getCurrentLayer, getCurrentLayerIndex, getLayer, getLayers, indexOf, setCurrentLayer, setCurrentLayerIndexformat, formatXAxisLabel, formatYAxisLabel, getAxesBounds, getAxisColor, getAxisMouseHandler, getAxisStrokeWeight, getBottomAxisPanel, getCategoricalLabels, getLeftAxisPanel, getMajorGridColor, getMajorGridStrokeWeight, getMajorXHint, getMajorYHint, getMinorCountXHint, getMinorCountYHint, getMinorGridColor, getMinorGridStrokeWeight, getRightAxisPanel, getTopAxisPanel, getXAxisLabelRotation, getXLabel, getYAxisLabelRotation, 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, setYLabeladdPropertyChangeListener, addPropertyChangeListener, firePropertyChange, getPropertyChangeListeners, getPropertyChangeListeners, hasListeners, hasSelfListener, removePropertyChangeListener, removePropertyChangeListeneraddLink, getLinks, removeLink, setLinkspublic final double yPositionToPixel(double position)
GJGraphInterfaceyPositionToPixel in interface GJGraphInterfaceposition - on y-axispublic final double[] yPositionToPixel(double[] position)
GJGraphInterfaceyPositionToPixel in interface GJGraphInterfaceposition - on y-axispublic final double[] yPositionToPixeli(double[] position)
GJGraphInterfaceyPositionToPixeli in interface GJGraphInterfaceposition - on y-axispublic final double xPositionToPixel(double position)
GJGraphInterfacexPositionToPixel in interface GJGraphInterfaceposition - on x-axispublic final double[] xPositionToPixel(double[] position)
GJGraphInterfacexPositionToPixel in interface GJGraphInterfaceposition - on x-axispublic final double[] xPositionToPixeli(double[] position)
GJGraphInterfacexPositionToPixeli in interface GJGraphInterfaceposition - on x-axispublic final double xPixelToPosition(double pixel)
GJGraphInterfacexPixelToPosition in interface GJGraphInterfacepixel - location on xpublic final double[] xPixelToPosition(double[] pixel)
GJGraphInterfacexPixelToPosition in interface GJGraphInterfacepixel - location on xpublic final double[] xPixelToPositioni(double[] pixel)
GJGraphInterfacexPixelToPositioni in interface GJGraphInterfacepixel - location on xpublic final double getPixelWidth()
GJGraphInterfacegetPixelWidth in interface GJGraphInterfacepublic final java.awt.geom.Rectangle2D convertPixelsToPosition(java.awt.geom.Rectangle2D r1)
GJGraphInterfaceconvertPixelsToPosition in interface GJGraphInterfacer1 - a Rectangle2D in pixelspublic final double yPixelToPosition(double pixel)
GJGraphInterfaceyPixelToPosition in interface GJGraphInterfacepixel - location on ypublic final double[] yPixelToPosition(double[] pixel)
GJGraphInterfaceyPixelToPosition in interface GJGraphInterfacepixel - location on ypublic final double[] yPixelToPositioni(double[] pixel)
GJGraphInterfaceyPixelToPositioni in interface GJGraphInterfacepixel - location on ypublic final double getPixelHeight()
GJGraphInterfacegetPixelHeight in interface GJGraphInterfacepublic final double getXLeft()
GJAxisSupportInterfacegetXLeft in interface GJAxisSupportInterfacepublic final void setXLeft(double v)
GJAxisSupportInterfacesetXLeft in interface GJAxisSupportInterfacev - the valuepublic final double getXRight()
GJAxisSupportInterfacegetXRight in interface GJAxisSupportInterfacepublic final void setXRight(double v)
GJAxisSupportInterfacesetXRight in interface GJAxisSupportInterfacev - the valuepublic final double getYBottom()
GJAxisSupportInterfacegetYBottom in interface GJAxisSupportInterfacepublic final void setYBottom(double v)
GJAxisSupportInterfacesetYBottom in interface GJAxisSupportInterfacev - the valuepublic final double getYTop()
GJAxisSupportInterfacegetYTop in interface GJAxisSupportInterfacepublic final void setYTop(double v)
GJAxisSupportInterfacesetYTop in interface GJAxisSupportInterfacev - the valuepublic final double getXMin()
GJAxisSupportInterfacegetXMin in interface GJAxisSupportInterfacepublic final double getXMax()
GJAxisSupportInterfacegetXMax in interface GJAxisSupportInterfacepublic final double getYMin()
GJAxisSupportInterfacegetYMin in interface GJAxisSupportInterfacepublic final double getYMax()
GJAxisSupportInterfacegetYMax in interface GJAxisSupportInterfacepublic final double getOriginX()
GJAxisSupportInterfacegetOriginX in interface GJAxisSupportInterfacepublic final double getOriginY()
GJAxisSupportInterfacegetOriginY in interface GJAxisSupportInterfacepublic final java.awt.geom.Point2D getOrigin()
Gets the origin coordinates of the graph. The coordinates are represented
as an instance of Point2D and stored in double
format.
getOrigin in interface GJAxisSupportInterfacesetOrigin(Point2D),
#setAxesBoundsAndOrigin(Rectangle2D)public final void setOrigin(java.awt.geom.Point2D origin)
Sets the origin of the graph. The coordinates of the origin are defined by the coordinates of the point passed as parameter.
If the specified view is null, nothing happens.
Calling this method leaves the view intact.
setOrigin in interface GJAxisSupportInterfaceorigin - the coordinates of the new origingetOrigin(),
#setAxesBoundsAndOrigin(Rectangle2D)public final void setOriginX(double v)
GJAxisSupportInterfacesetOriginX in interface GJAxisSupportInterfacev - a doublepublic final void setOriginY(double v)
GJAxisSupportInterfacesetOriginY in interface GJAxisSupportInterfacev - a double