public abstract class GJAbstractGraph0 extends GJBasicPanel implements GJGraphInterface
GJBasicPanel.LocalTransferable
javax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
accessibleContext, 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, setID
getAlpha, getBackgroundPainter, getEffectiveAlpha, getPainterChangeListener, getPreferredScrollableViewportSize, getScrollableBlockIncrement, getScrollableHeightHint, getScrollableTracksViewportHeight, getScrollableTracksViewportWidth, getScrollableUnitIncrement, getScrollableWidthHint, isInheritAlpha, isPaintBorderInsets, isPaintingOrigin, paint, setAlpha, setBackgroundPainter, setInheritAlpha, setOpaque, setPaintBorderInsets, setScrollableHeightHint, setScrollableTracksViewportHeight, setScrollableTracksViewportWidth, setScrollableWidthHint
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
addAncestorListener, 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, update
add, 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, validateTree
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, 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, transferFocusUpCycle
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
add, 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, setYTransform
add, getAncestorGraph, getCurrentLayer, getCurrentLayerIndex, getLayer, getLayers, indexOf, setCurrentLayer, setCurrentLayerIndex
format, 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, setYLabel
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, getPropertyChangeListeners, getPropertyChangeListeners, hasListeners, hasSelfListener, removePropertyChangeListener, removePropertyChangeListener
addLink, getLinks, removeLink, setLinks
public final double yPositionToPixel(double position)
GJGraphInterface
yPositionToPixel
in interface GJGraphInterface
position
- on y-axispublic final double[] yPositionToPixel(double[] position)
GJGraphInterface
yPositionToPixel
in interface GJGraphInterface
position
- on y-axispublic final double[] yPositionToPixeli(double[] position)
GJGraphInterface
yPositionToPixeli
in interface GJGraphInterface
position
- on y-axispublic final double xPositionToPixel(double position)
GJGraphInterface
xPositionToPixel
in interface GJGraphInterface
position
- on x-axispublic final double[] xPositionToPixel(double[] position)
GJGraphInterface
xPositionToPixel
in interface GJGraphInterface
position
- on x-axispublic final double[] xPositionToPixeli(double[] position)
GJGraphInterface
xPositionToPixeli
in interface GJGraphInterface
position
- on x-axispublic final double xPixelToPosition(double pixel)
GJGraphInterface
xPixelToPosition
in interface GJGraphInterface
pixel
- location on xpublic final double[] xPixelToPosition(double[] pixel)
GJGraphInterface
xPixelToPosition
in interface GJGraphInterface
pixel
- location on xpublic final double[] xPixelToPositioni(double[] pixel)
GJGraphInterface
xPixelToPositioni
in interface GJGraphInterface
pixel
- location on xpublic final double getPixelWidth()
GJGraphInterface
getPixelWidth
in interface GJGraphInterface
public final java.awt.geom.Rectangle2D convertPixelsToPosition(java.awt.geom.Rectangle2D r1)
GJGraphInterface
convertPixelsToPosition
in interface GJGraphInterface
r1
- a Rectangle2D in pixelspublic final double yPixelToPosition(double pixel)
GJGraphInterface
yPixelToPosition
in interface GJGraphInterface
pixel
- location on ypublic final double[] yPixelToPosition(double[] pixel)
GJGraphInterface
yPixelToPosition
in interface GJGraphInterface
pixel
- location on ypublic final double[] yPixelToPositioni(double[] pixel)
GJGraphInterface
yPixelToPositioni
in interface GJGraphInterface
pixel
- location on ypublic final double getPixelHeight()
GJGraphInterface
getPixelHeight
in interface GJGraphInterface
public final double getXLeft()
GJAxisSupportInterface
getXLeft
in interface GJAxisSupportInterface
public final void setXLeft(double v)
GJAxisSupportInterface
setXLeft
in interface GJAxisSupportInterface
v
- the valuepublic final double getXRight()
GJAxisSupportInterface
getXRight
in interface GJAxisSupportInterface
public final void setXRight(double v)
GJAxisSupportInterface
setXRight
in interface GJAxisSupportInterface
v
- the valuepublic final double getYBottom()
GJAxisSupportInterface
getYBottom
in interface GJAxisSupportInterface
public final void setYBottom(double v)
GJAxisSupportInterface
setYBottom
in interface GJAxisSupportInterface
v
- the valuepublic final double getYTop()
GJAxisSupportInterface
getYTop
in interface GJAxisSupportInterface
public final void setYTop(double v)
GJAxisSupportInterface
setYTop
in interface GJAxisSupportInterface
v
- the valuepublic final double getXMin()
GJAxisSupportInterface
getXMin
in interface GJAxisSupportInterface
public final double getXMax()
GJAxisSupportInterface
getXMax
in interface GJAxisSupportInterface
public final double getYMin()
GJAxisSupportInterface
getYMin
in interface GJAxisSupportInterface
public final double getYMax()
GJAxisSupportInterface
getYMax
in interface GJAxisSupportInterface
public final double getOriginX()
GJAxisSupportInterface
getOriginX
in interface GJAxisSupportInterface
public final double getOriginY()
GJAxisSupportInterface
getOriginY
in interface GJAxisSupportInterface
public 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 GJAxisSupportInterface
setOrigin(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 GJAxisSupportInterface
origin
- the coordinates of the new origingetOrigin()
,
#setAxesBoundsAndOrigin(Rectangle2D)
public final void setOriginX(double v)
GJAxisSupportInterface
setOriginX
in interface GJAxisSupportInterface
v
- a doublepublic final void setOriginY(double v)
GJAxisSupportInterface
setOriginY
in interface GJAxisSupportInterface
v
- a double