public class DeviceWave extends DeviceComponent
JPanel.AccessibleJPanelJComponent.AccessibleJComponentContainer.AccessibleAWTContainerComponent.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy| Modifier and Type | Field and Description |
|---|---|
protected JCheckBox |
editCB |
protected boolean |
initializing |
protected float |
maxX |
protected JTextField |
maxXField |
protected float |
maxXOld |
boolean |
maxXVisible |
protected float |
maxY |
protected JTextField |
maxYField |
protected float |
maxYOld |
boolean |
maxYVisible |
protected float |
minX |
protected JTextField |
minXField |
protected float |
minXOld |
boolean |
minXVisible |
protected float |
minY |
protected JTextField |
minYField |
protected float |
minYOld |
boolean |
minYVisible |
protected int |
numPoints |
protected int |
prefHeight |
protected static float |
savedMaxX |
protected static float |
savedMaxY |
protected static float |
savedMinX |
protected static float |
savedMinY |
protected static float[] |
savedWaveX |
protected static float[] |
savedWaveY |
protected JScrollPane |
scroll |
protected JTable |
table |
String |
updateExpression |
boolean |
waveEditable |
protected WaveformEditor |
waveEditor |
protected float[] |
waveX |
protected float[] |
waveXOld |
protected float[] |
waveY |
protected float[] |
waveYOld |
baseNid, baseNidData, curr_data, curr_on, DATA, DISPATCH, editable, identifier, init_data, init_on, isHighlighted, mode, nidData, offsetNid, STATE, updateIdentifierlistenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWaccessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description |
|---|
DeviceWave() |
| Modifier and Type | Method and Description |
|---|---|
Component |
add(Component c) |
Component |
add(Component c,
int intex) |
Component |
add(String name,
Component c) |
void |
apply() |
protected void |
dataChanged(int offsetNid,
Object data) |
protected void |
displayData(String data,
boolean is_on) |
void |
fireUpdate(String updateId,
String newExpr) |
protected String |
getArrayExpr(float[] vals) |
protected String |
getData() |
protected Object |
getFullData() |
boolean |
getMaxXVisible() |
boolean |
getMaxYVisible() |
boolean |
getMinXVisible() |
boolean |
getMinYVisible() |
int |
getPrefHeight() |
protected boolean |
getState() |
String |
getUpdateExpression() |
boolean |
getWaveEditable() |
protected void |
initializeData(String data,
boolean is_on) |
static void |
main(String[] args) |
void |
reset() |
void |
setEnabled(boolean state) |
void |
setHighlight(boolean highlighted) |
void |
setMaxXVisible(boolean visible) |
void |
setMaxYVisible(boolean visible) |
void |
setMinXVisible(boolean visible) |
void |
setMinYVisible(boolean visible) |
void |
setPrefHeight(int prefHeight) |
void |
setUpdateExpression(String updateExpression) |
void |
setWaveEditable(boolean editable) |
protected void |
updateLimits() |
void |
updateXLimit(float minX,
float maxX) |
apply, checkRefShot, configure, configure, copyData, getBaseNid, getIdentifier, getOffsetNid, getRefShot, getUpdateId, getUpdateIdentifier, isChanged, isDataChanged, isStateChanged, pasteData, postConfigure, redisplay, reportDataChanged, reportStateChanged, setBaseNid, setDisable, setEnable, setIdentifier, setOffsetNid, setRefShot, setUpdateIdentifier, stateChanged, supportsState, updategetAccessibleContext, 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, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, 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, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, updateadd, 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, transferFocusUpCycleprotected static float savedMinX
protected static float savedMinY
protected static float savedMaxX
protected static float savedMaxY
protected static float[] savedWaveX
protected static float[] savedWaveY
public boolean maxXVisible
public boolean minXVisible
public boolean maxYVisible
public boolean minYVisible
public boolean waveEditable
public String updateExpression
protected int prefHeight
protected boolean initializing
protected WaveformEditor waveEditor
protected JTable table
protected JTextField maxXField
protected JTextField minXField
protected JTextField maxYField
protected JTextField minYField
protected JCheckBox editCB
protected JScrollPane scroll
protected int numPoints
protected float[] waveX
protected float[] waveY
protected float[] waveXOld
protected float[] waveYOld
protected float maxX
protected float minX
protected float maxY
protected float minY
protected float maxXOld
protected float minXOld
protected float maxYOld
protected float minYOld
public static void main(String[] args)
public void apply()
throws Exception
apply in class DeviceComponentExceptionprotected void dataChanged(int offsetNid,
Object data)
dataChanged in class DeviceComponentprotected void displayData(String data, boolean is_on)
displayData in class DeviceComponentpublic void fireUpdate(String updateId, String newExpr)
fireUpdate in class DeviceComponentprotected String getArrayExpr(float[] vals)
protected String getData()
getData in class DeviceComponentprotected Object getFullData()
getFullData in class DeviceComponentpublic boolean getMaxXVisible()
public boolean getMaxYVisible()
public boolean getMinXVisible()
public boolean getMinYVisible()
public int getPrefHeight()
protected boolean getState()
getState in class DeviceComponentpublic String getUpdateExpression()
public boolean getWaveEditable()
protected void initializeData(String data, boolean is_on)
initializeData in class DeviceComponentpublic void reset()
reset in class DeviceComponentpublic void setEnabled(boolean state)
setEnabled in class JComponentpublic void setHighlight(boolean highlighted)
setHighlight in class DeviceComponentpublic void setMaxXVisible(boolean visible)
public void setMaxYVisible(boolean visible)
public void setMinXVisible(boolean visible)
public void setMinYVisible(boolean visible)
public void setPrefHeight(int prefHeight)
public void setUpdateExpression(String updateExpression)
public void setWaveEditable(boolean editable)
public void updateXLimit(float minX,
float maxX)
protected void updateLimits()
Copyright © 2021. All rights reserved.