public class NumericProbePanel extends javax.swing.JPanel implements HasProperties, ValueChangeListener
Modifier and Type | Class and Description |
---|---|
static class |
NumericProbePanel.ScreenTransform
Maps x and y values to and from pixel coordinates.
|
Modifier and Type | Field and Description |
---|---|
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 |
static PropertyList |
myProps |
static java.awt.Color |
NavajoWhite |
static java.awt.Color |
PeachPuff |
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
NumericProbePanel(NumericList nlist,
int width,
int height,
boolean largeDisplay,
boolean inputData) |
NumericProbePanel(NumericProbePanel panel) |
NumericProbePanel(Probe probe) |
Modifier and Type | Method and Description |
---|---|
void |
adjustRangeIfNecessary() |
NumericProbePanel.ScreenTransform |
createScreenTransform() |
void |
decreaseXRange()
Decrease the x range that is being viewed.
|
void |
decreaseYRange()
Decrease the y range that is being viewed.
|
void |
dispose() |
void |
drawPlot(DataRenderer r,
boolean largeDisplay) |
void |
exportImageAs() |
PropertyList |
getAllPropertyInfo()
Returns a list giving static information about all properties exported by
this object.
|
artisynth.core.gui.NumericProbePanel.CursorMode |
getCursorMode() |
DoubleInterval |
getDefaultXRange() |
DoubleInterval |
getDefaultYRange() |
boolean |
getDrawGrid() |
Interpolation |
getInterpolation() |
Interpolation.Order |
getInterpolationOrder() |
int |
getKnotSize() |
boolean |
getKnotsVisible() |
int |
getLineWidth() |
Property |
getProperty(java.lang.String path)
Returns a property associated with a specified path name.
|
int |
getTickLength() |
int[] |
getTraceOrder(artisynth.core.gui.NumericProbePanel.TraceOrdering ordering)
Finds the trace indices required for a particular ordering based on the
display's current values.
|
int |
getVectorSize() |
DoubleInterval |
getXRange() |
Range |
getXRangeRange() |
DoubleInterval |
getYRange() |
Range |
getYRangeRange() |
void |
increaseXRange()
Increase the x range that is being viewed.
|
void |
increaseYRange()
Increase the y range that is being viewed.
|
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) |
Point2d |
pixelsToCoords(java.awt.Point p) |
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) |
void |
setAutoRanging(boolean enable) |
void |
setCursorMode(artisynth.core.gui.NumericProbePanel.CursorMode mode) |
void |
setDefaultXRange() |
void |
setDefaultYRange() |
void |
setDisplaySize(int width,
int height) |
void |
setDrawGrid(boolean enable) |
void |
setInterpolationOrder(Interpolation.Order order) |
void |
setKnotSize(int size) |
void |
setKnotsVisible(boolean enable) |
void |
setLargeDisplay(boolean isLargeDisplay) |
void |
setLineColor(int index,
java.awt.Color color) |
void |
setLineWidth(int width) |
void |
setTickLength(int len) |
void |
setXRange(double min,
double max) |
void |
setXRange(DoubleInterval range) |
void |
setYRange(double min,
double max) |
void |
setYRange(DoubleInterval range) |
void |
swapDrawIndicies(int a,
int b) |
void |
valueChange(ValueChangeEvent e) |
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.
|
getAccessibleContext, getUI, getUIClassID, setUI, updateUI
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, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
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
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, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
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 static PropertyList myProps
public NumericProbePanel(Probe probe)
public NumericProbePanel(NumericProbePanel panel)
public NumericProbePanel(NumericList nlist, int width, int height, boolean largeDisplay, boolean inputData)
public NumericProbePanel.ScreenTransform createScreenTransform()
public PropertyList getAllPropertyInfo()
HasProperties
getAllPropertyInfo
in interface HasProperties
public Property getProperty(java.lang.String path)
.
' characters. A sub-property
exists if the value of a property is itself an object which exports
properties. It is only possible to obtain a sub-property handle if each of
its ancestor properties exports their values by reference.getProperty
in interface HasProperties
path
- name of the desired property or sub-propertypublic void setDrawGrid(boolean enable)
public boolean getDrawGrid()
public void setXRange(DoubleInterval range)
public void setXRange(double min, double max)
public void setDefaultXRange()
public DoubleInterval getXRange()
public Range getXRangeRange()
public void setYRange(DoubleInterval range)
public void setYRange(double min, double max)
public void setDefaultYRange()
public DoubleInterval getYRange()
public Range getYRangeRange()
public void setTickLength(int len)
public int getTickLength()
public void setLineWidth(int width)
public int getLineWidth()
public int getKnotSize()
public void setKnotSize(int size)
public boolean getKnotsVisible()
public void setKnotsVisible(boolean enable)
public boolean isAutoRanging()
public void setAutoRanging(boolean enable)
public Interpolation.Order getInterpolationOrder()
public void setInterpolationOrder(Interpolation.Order order)
public Interpolation getInterpolation()
public void setDisplaySize(int width, int height)
public artisynth.core.gui.NumericProbePanel.CursorMode getCursorMode()
public void setCursorMode(artisynth.core.gui.NumericProbePanel.CursorMode mode)
public DoubleInterval getDefaultYRange()
public DoubleInterval getDefaultXRange()
public void resetDisplay()
public void repaint()
repaint
in class java.awt.Component
public void repaintWithoutAutoRanging()
public void repaintForPropertyChanges()
public void adjustRangeIfNecessary()
public void drawPlot(DataRenderer r, boolean largeDisplay)
public void paint(java.awt.Graphics g)
paint
in class javax.swing.JComponent
public static double round(double d, int decimalPlace)
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 increaseYRange()
public void decreaseYRange()
public void increaseXRange()
public void decreaseXRange()
public int[] getTraceOrder(artisynth.core.gui.NumericProbePanel.TraceOrdering ordering)
PlotTraceManager.setTraceOrder(int[])
.ordering
- requested orderingpublic Point2d pixelsToCoords(java.awt.Point p)
public void exportImageAs()
public void valueChange(ValueChangeEvent e)
valueChange
in interface ValueChangeListener
public void resetDrawOrder(int size)
public void resetColors()
public void setLineColor(int index, java.awt.Color color)
public boolean isLargeDisplay()
public void setLargeDisplay(boolean isLargeDisplay)
public int getVectorSize()
public void dispose()