|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
artisynth.core.gui.NumericProbePanel
public class NumericProbePanel
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 | |
---|---|
static java.awt.Color |
BlueViolet
|
static java.awt.Color[] |
colorList
|
static java.awt.Color |
DARK_GREEN
|
static java.awt.Color |
DarkOliveGreen
|
static java.awt.Color |
DarkOrange
|
static java.awt.Color |
IndianRed
|
java.awt.Color[] |
myColorList
|
static java.awt.Color |
NavajoWhite
|
static java.awt.Color |
PeachPuff
|
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 | |
---|---|
NumericProbePanel(Probe probe)
|
Method Summary | |
---|---|
void |
adjustRangeIfNecessary()
|
void |
decreaseRange()
Decrease the range that is being viewed. |
void |
determineTimePerPixel()
|
void |
determineYValuePerPixel()
|
double[] |
getAutoRange()
|
double[] |
getDefaultDomain()
|
double[] |
getDefaultRange()
|
double[] |
getDisplayDomain()
|
double[] |
getDisplayRange()
|
int |
getVectorSize()
|
void |
increaseRange()
Increase the range that is being viewed without any zooming constraints. |
boolean |
isAutoRanging()
|
boolean |
isLargeDisplay()
|
void |
moveDisplay(long xDistance,
long yDistance)
Move the display around when it is zoomed in on. |
void |
paint(java.awt.Graphics g)
|
void |
repaint()
|
void |
repaintForPropertyChanges()
Repaint if probe property changes require it. |
void |
repaintWithoutAutoRanging()
|
void |
resetColors()
|
void |
resetDisplay()
|
void |
resetDrawOrder(int size)
|
static double |
round(double d,
int decimalPlace)
|
double |
roundDouble(double value)
|
void |
setAutoRange()
|
void |
setAutoRanging(boolean enable)
|
void |
setDefaultDomain()
|
void |
setDefaultRange(double min,
double max)
Sets the default range to the desired value The default range is the range the probe display returns to after zooming. |
void |
setDisplayDomain(double min,
double max)
|
void |
setDisplayRange(double min,
double max)
|
void |
setDisplayRangeManually(double min,
double max)
|
void |
setDisplaySize(int width,
int height)
|
void |
setLargeDisplay(boolean isLargeDisplay)
|
void |
setLineColor(int index,
java.awt.Color color)
|
void |
setSkipIndicies(boolean[] skip)
|
void |
swapDrawIndicies(int a,
int b)
|
void |
toggleMoveDisplay()
|
void |
toggleZoomIn()
|
void |
toggleZoomOut()
|
int |
virtualTimeToXpixel(double t)
Returns the x pixel value corresponding to a particular virtual time. |
double |
xpixelToVirtualTime(int x)
Returns the virtual time corresponding to a particular x pixel value. |
void |
zoomIn(java.awt.Point zoomPoint)
Zoom in on a particular point on the numeric probe display. |
void |
zoomOut(java.awt.Point zoomPoint)
Zoom out on a particular point on the numeric probe display. |
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, 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, setOpaque, 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, transferFocusBackward, 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, hide, 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, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static java.awt.Color DARK_GREEN
public static java.awt.Color DarkOliveGreen
public static java.awt.Color IndianRed
public static java.awt.Color DarkOrange
public static java.awt.Color BlueViolet
public static java.awt.Color NavajoWhite
public static java.awt.Color PeachPuff
public static java.awt.Color[] colorList
public java.awt.Color[] myColorList
Constructor Detail |
---|
public NumericProbePanel(Probe probe)
Method Detail |
---|
public boolean isAutoRanging()
public void setAutoRanging(boolean enable)
public void setDisplaySize(int width, int height)
public void toggleZoomIn()
public void toggleZoomOut()
public void toggleMoveDisplay()
public void setAutoRange()
public double[] getAutoRange()
public void setDefaultRange(double min, double max)
min
- max
- public double[] getDefaultRange()
public double[] getDefaultDomain()
public void setDefaultDomain()
public void setDisplayRange(double min, double max)
public void setDisplayRangeManually(double min, double max)
public double[] getDisplayRange()
public void setDisplayDomain(double min, double max)
public double[] getDisplayDomain()
public void resetDisplay()
public void determineTimePerPixel()
public void determineYValuePerPixel()
public void repaint()
repaint
in class java.awt.Component
public void repaintWithoutAutoRanging()
public void repaintForPropertyChanges()
public void adjustRangeIfNecessary()
public void paint(java.awt.Graphics g)
paint
in class javax.swing.JComponent
public static double round(double d, int decimalPlace)
public double roundDouble(double value)
public void swapDrawIndicies(int a, int b)
public void zoomIn(java.awt.Point zoomPoint)
zoomPoint
- The point to zoom in on.public void zoomOut(java.awt.Point zoomPoint)
zoomPoint
- The point to zoom out on.public void moveDisplay(long xDistance, long yDistance)
xDistance
- The distance to move the display in pixels.yDistance
- The distance to move the display in pixels.public void increaseRange()
public void decreaseRange()
public double xpixelToVirtualTime(int x)
public int virtualTimeToXpixel(double t)
public void resetDrawOrder(int size)
public void resetColors()
public void setSkipIndicies(boolean[] skip)
public void setLineColor(int index, java.awt.Color color)
public boolean isLargeDisplay()
public void setLargeDisplay(boolean isLargeDisplay)
public int getVectorSize()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |