public class DasLabelAxis extends DasAxis implements DasUpdateListener
DasAxis.AxisLayoutManager, DasAxis.Lock, DasAxis.MementoDasCanvasComponent.CanvasComponentActionjavax.swing.JComponent.AccessibleJComponentaxisLabel, BOTTOM, dataRange, datumFormatter, dividerDatumFormatter, enableHistory, flipLabel, formatString, HORIZONTAL, LEFT, majorTicksDomainDivider, MAX_TCA_LINES, minorTicksDomainDivider, primaryInputPanel, PROP_AXISOFFSET, PROP_BOUNDS, PROP_DIVIDERDATUMFORMATTER, PROP_ENABLEHISTORY, PROP_FLIPLABEL, PROP_FLIPPED, PROP_FONTSIZE, PROP_FORMAT, PROP_LABEL, PROP_LINETHICKNESS, PROP_LOCKDOMAINDIVIDER, PROP_LOG, PROP_MAJORTICKSDOMAINDIVIDER, PROP_MINORTICKSDOMAINDIVIDER, PROP_OPPOSITE_AXIS_VISIBLE, PROP_REFERENCE, PROP_SCAN_RANGE, PROP_TCALABELS, PROP_TCAROWS, PROP_TICKVALUES, PROP_UNITS, PROP_USEDOMAINDIVIDER, PROPERTY_DATUMRANGE, PROPERTY_TICKS, RIGHT, secondaryInputPanel, tickV, TOP, useDomainDivider, VERTICALmouseAdapter, PROP_OPAQUEBACKGROUND, PROPERTIES_ACTIONlistenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW| Modifier | Constructor and Description |
|---|---|
protected |
DasLabelAxis(DatumVector labels,
DataRange dataRange,
int orientation) |
|
DasLabelAxis(DatumVector labels,
int orientation) |
|
DasLabelAxis(QDataSet labels,
int orientation) |
| Modifier and Type | Method and Description |
|---|---|
DasAxis |
createAttachedAxis(DasRow row,
DasColumn column) |
DasAxis |
createAttachedAxis(int orientation)
create another axis that follows this axis.
|
Datum |
findTick(Datum xDatum,
double direction,
boolean minor)
Locates the next or previous tick starting at xDatum.
|
java.awt.geom.AffineTransform |
getAffineTransform(DasAxis.Memento memento,
java.awt.geom.AffineTransform at)
return the AffineTransform, or null.
|
int |
getInterItemSpace() |
int |
getItemMax(Datum d)
get the maximum pixel location of the bin allocated to the Datum.
|
int |
getItemMin(Datum d)
get the minimum pixel location of the bin allocated to the Datum.
|
int[] |
getLabelPositions() |
int |
getOutsidePadding()
Getter for property outsidePadding.
|
TickVDescriptor |
getTickV()
return the current set of ticks.
|
Datum |
invTransform(double d)
return the data location for the given pixel position.
|
boolean |
isFloppyItemSpacing()
Getter for property floppyltemSpacing.
|
protected void |
paintHorizontalAxis(java.awt.Graphics2D g)
Paint the axis if it is horizontal
|
protected void |
paintVerticalAxis(java.awt.Graphics2D g)
Paint the vertical axis
|
protected boolean |
rangeIsAcceptable(DatumRange dr)
override this to allow a single Datum.
|
void |
setFloppyItemSpacing(boolean floppyItemSpacing)
Setter for property floppyltemSpacing.
|
void |
setLabelFormatter(DatumFormatter df)
vg1pws needed a way to explicitly set this.
|
void |
setOutsidePadding(int outsidePadding)
Setter for property outsidePadding.
|
protected java.lang.String |
tickFormatter(Datum t)
return a label for this datum and visible range.
|
protected java.lang.String[] |
tickFormatter(DatumVector tickV,
DatumRange datumRange)
return the tick labels for these datums and visible range.
|
double |
transform(double value,
Units units)
Transforms a double in the given units in data coordinates to a horizontal or vertical
position on the parent canvas.
|
void |
update(DasUpdateEvent e) |
void |
updateTickV()
recalculate the tick positions.
|
addMouseListener, addMouseMotionListener, addMouseWheelListener, addTickV, addTimeRangeSelectionListener, addToFavorites, attachTo, clearHistory, clone, createAttachedAxis, dataRangeSelected, detach, deviceRangeChanged, drawLabel, getActiveRegion, getAxisBounds, getAxisOffset, getAxisOffsetPixels, getDataMaximum, getDataMaximum, getDataMinimum, getDataMinimum, getDataPath, getDataRange, getDatumFormatter, getDatumRange, getDevicePosition, getDividerDatumFormatter, getDLength, getDrawTca, getFontSize, getFormat, getLabel, getLabelBounds, getLabelFont, getLabelOffset, getLineSpacing, getLineThickness, getMajorTicksDomainDivider, getMasterAxis, getMaxLabelWidth, getMemento, getMinorTicksDomainDivider, getOrientation, getRange, getReference, getScanRange, getTcaLabels, getTcaRows, getTickDirection, getTickLabelFont, getTickLength, getTickLines, getTickValues, getTitlePositionOffset, getUnits, getUserDatumFormatter, installComponent, invTransform, isAnimated, isAttached, isDrawTca, isEnableHistory, isFlipLabel, isFlipped, isHorizontal, isLockDomainDivider, isLog, isOppositeAxisVisible, isTcaLoaded, isTickLabelsVisible, isUseDomainDivider, mutatorLock, paintComponent, processEvent, removeFromFavorites, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeTimeRangeSelectionListener, repaint, resetRange, resetTickV, resize, resolveAxisLabel, scanNext, scanPrevious, setAnimated, setAxisOffset, setDataMaximum, setDataMinimum, setDataPath, setDataRange, setDataRangeForward, setDataRangePrev, setDataRangeZoomOut, setDatumRange, setDividerDatumFormatter, setDrawTca, setEnableHistory, setFlipLabel, setFlipped, setFontSize, setFormat, setLabel, setLabelOffset, setLeftXLabelOverride, setLineThickness, setLockDomainDivider, setLog, setMajorTicksDomainDivider, setMinorTicksDomainDivider, setNextAction, setNextActionLabel, setOppositeAxisVisible, setOrientation, setPlot, setPreviousAction, setPreviousActionLabel, setReference, setScanRange, setTcaFunction, setTcaLabels, setTcaRows, setTickLabelsVisible, setTickLength, setTickV, setTickV, setTickValues, setUnits, setUseDomainDivider, setUserDatumFormatter, setVisible, timeRangeSelected, toString, transform, transform, transform, transform, transformFast, uninstallComponent, updateImmediately, updateTickVManualTicks, valueIsAdjustingacceptContext, addMouseModule, coalesceEvents, getActions, getCanvas, getColumn, getDasMouseInputAdapter, getDasName, getEmSize, getFont, getLineThicknessDouble, getRow, isOpaqueBackground, processDasUpdateEvent, removeMouseModule, setColumn, setDasName, setOpaqueBackground, setRow, showProperties, updateaddAncestorListener, 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, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, paramString, 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, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, unregisterKeyboardAction, update, updateUIadd, 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, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTreeaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, 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, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, transferFocus, transferFocusBackward, transferFocusUpCycleprotected DasLabelAxis(DatumVector labels, DataRange dataRange, int orientation)
public DasLabelAxis(DatumVector labels, int orientation)
public DasLabelAxis(QDataSet labels, int orientation)
public void setLabelFormatter(DatumFormatter df)
public int[] getLabelPositions()
public Datum findTick(Datum xDatum, double direction, boolean minor)
DasAxispublic void updateTickV()
DasAxisupdateTickV in class DasAxispublic TickVDescriptor getTickV()
DasAxispublic double transform(double value,
Units units)
DasAxispublic Datum invTransform(double d)
DasAxisinvTransform in class DasAxisd - the pixel location on the axis, in the canvas frame.protected boolean rangeIsAcceptable(DatumRange dr)
rangeIsAcceptable in class DasAxisdr - protected java.lang.String tickFormatter(Datum t)
DasAxistickFormatter in class DasAxist - the locationprotected java.lang.String[] tickFormatter(DatumVector tickV, DatumRange datumRange)
DasAxistickFormatter in class DasAxistickV - the ticksdatumRange - the rangepublic int getInterItemSpace()
public int getItemMin(Datum d)
d - public int getItemMax(Datum d)
d - public DasAxis createAttachedAxis(int orientation)
DasAxiscreateAttachedAxis in class DasAxisorientation - the position relative to a plot, one of DasAxis.TOP, DasAxis.BOTTOM, DasAxis.LEFT, DasAxis.RIGHTpublic void update(DasUpdateEvent e)
update in interface DasUpdateListenerprotected void paintHorizontalAxis(java.awt.Graphics2D g)
DasAxispaintHorizontalAxis in class DasAxisg - the graphics contextprotected void paintVerticalAxis(java.awt.Graphics2D g)
DasAxispaintVerticalAxis in class DasAxisg - the graphics contextpublic int getOutsidePadding()
public void setOutsidePadding(int outsidePadding)
outsidePadding - New value of property outsidePadding.public boolean isFloppyItemSpacing()
public void setFloppyItemSpacing(boolean floppyItemSpacing)
floppyItemSpacing - New value of property floppyltemSpacing.public java.awt.geom.AffineTransform getAffineTransform(DasAxis.Memento memento, java.awt.geom.AffineTransform at)
DasAxisgetAffineTransform in class DasAxismemento - memento from another axis state.at - initial transform