|
||||||||
| 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
com.pentec.adapt.APanel
com.pentec.adapt.APlot
public class APlot
APlot extends APanel and provides the base class for all XY type data viewed by ADAPT.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
javax.swing.JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
javax.swing.JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
java.awt.Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
private double[] |
adOverlay
|
protected java.awt.image.DataBufferDouble |
plotDB
|
| Fields inherited from class com.pentec.adapt.APanel |
|---|
axes, color_Grid, color_Markers, color_Overlay, color_Plot, color_Trace1, color_Trace2, color_Trace3, dataFrame, dDataXMax, dDataXMin, dDataYMax, dDataYMin, dXScale, dYScale, iLRX, iLRY, imageBuffer, iScanNumber, isIntegrationEnabled, iULX, iULY, panelBounds, zl |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, 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 | |
|---|---|
APlot(DataFrame ownerFrame)
|
|
| Method Summary | |
|---|---|
protected boolean |
apaint(java.awt.Graphics2D graphics)
Plot the data points for a single trace with optional overlay. |
private void |
centerAbout(double dy)
|
void |
centerMax()
|
void |
centerMin()
|
void |
clearOverlay()
This is overridden by APlot but not defined by AImage |
void |
editCopy(java.lang.String $)
Edit--Copy |
void |
editOriginal()
|
void |
findMinima(java.lang.String $)
Tools - Find Local Minima |
java.lang.String[] |
getCursorInfo$(double dx,
double dy)
|
protected double[][] |
getData()
|
protected int |
getMaxLen(double[][] aadPlot)
|
double[][] |
getMinMaxIn()
Find the max and min in the current ROI |
double[][] |
getMinMaxOut()
Find the max and min outside of the current ROI |
double[][] |
getSourceData()
|
double |
getX(int i)
Get an x value |
double |
getY1(int i)
Get a y value from the first data set |
double |
getY2(int i)
Get a y value from the second data set |
double |
getY3(int i)
Get a y value from the third data set |
int |
getZdim()
Get the Z dimensionality |
protected void |
init(DataFrame ownerFrame)
This method will be called by the super constructor when the owner frame handle is available |
void |
integrate()
|
static DataFrame |
makeDataFrame(DataFrame callingFrame,
java.lang.String $Text,
double[][] aad,
boolean doCopy)
Make a new frame with a new plot, display it, and save it |
static DataFrame |
makeDataFrame(java.io.File newFile,
double[][] aad)
Make a new frame and a new plot |
static DataFrame |
makeDataFrame(javax.swing.JFrame parentFrame,
java.lang.String $File,
double[][] aad)
Make a new frame and a new plot, then display it |
protected void |
menuFixer(AMenuBar menuBar)
Disables or remove menu items that are not implemented for plots |
private boolean |
multiPaint(java.awt.Graphics graphics)
Plot the data points for multiple traces |
protected void |
reSync()
|
private void |
scaleData(double[][] xyArray)
|
void |
scaleData(double dMin,
double dMax)
Set the y-axis range to a specific minimum and maximum |
private void |
setDataBuffer(java.awt.image.DataBuffer dbd)
|
void |
setOverlay()
This is overridden by APlot but not defined by AImage |
void |
setSourceData(java.util.ArrayList ax,
java.util.ArrayList ay)
Set the plot data buffer using 2 array lists |
void |
setSourceData(java.awt.image.DataBuffer dbd)
Set the plot data using an input data buffer |
void |
setSourceData(double[][] aad)
Set the plot data buffer using a 2D input array |
void |
setSourceData(double[][] aad,
boolean doScale)
Set the plot data buffer using a 2D input array |
void |
setSourceData(double[][] xyArray,
double dXMin,
double dXMax,
double dYMin,
double dYMax)
Set the plot data buffer using a 2D input array |
java.nio.channels.FileChannel |
write(boolean isNative,
java.lang.String $Format)
Create a file and write out the header and the data. |
protected java.nio.channels.FileChannel |
writePng()
|
protected java.nio.channels.FileChannel |
writeSaf()
|
protected java.nio.channels.FileChannel |
writeTxt()
|
java.nio.channels.FileChannel |
writeXLS()
|
| Methods inherited from class com.pentec.adapt.APanel |
|---|
addPopupMenu, autoscaleInsideExtr, autoscaleInsideZero, autoscaleOutsideExtr, autoscaleOutsideZero, boundX, boundY, centerAbout, centerMouseCursor, convertBox, drawBorder, getAoi, getMouseX, getMouseY, getScaledX, getScaledY, getSize, getXScale, getXYAdjust, getYScale, menuFixer, paint, scaleX, scaleY, scrollX, scrollY, setActive, setBounds, setIntegrationEnabled, setSize, setTraceColor, setXRange, setXYRange, setXYRange, setYRange, toString, update, zoom |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class javax.swing.JComponent |
|---|
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, 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, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, 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, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction |
| Methods inherited from class java.awt.Container |
|---|
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, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
| Methods inherited from class java.awt.Component |
|---|
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, 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, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, show, show, size, transferFocus, transferFocusUpCycle |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private double[] adOverlay
protected java.awt.image.DataBufferDouble plotDB
| Constructor Detail |
|---|
public APlot(DataFrame ownerFrame)
| Method Detail |
|---|
protected boolean apaint(java.awt.Graphics2D graphics)
apaint in class APanelprivate void centerAbout(double dy)
public void centerMax()
centerMax in class APanelpublic void centerMin()
centerMin in class APanelpublic void clearOverlay()
APanel
clearOverlay in class APanelpublic void editCopy(java.lang.String $)
public void editOriginal()
editOriginal in class APanelpublic void findMinima(java.lang.String $)
findMinima in class APanel
public java.lang.String[] getCursorInfo$(double dx,
double dy)
getCursorInfo$ in class APanelprotected double[][] getData()
protected int getMaxLen(double[][] aadPlot)
public double[][] getMinMaxIn()
getMinMaxIn in class APanelpublic double[][] getMinMaxOut()
getMinMaxOut in class APanelpublic double[][] getSourceData()
public double getX(int i)
i - the x element to retrieve
public double getY1(int i)
i - the y element to retrieve
public double getY2(int i)
i - the y element to retrieve
public double getY3(int i)
i - the y element to retrieve
public int getZdim()
protected void init(DataFrame ownerFrame)
init in class APanelpublic void integrate()
integrate in class APanel
public static DataFrame makeDataFrame(DataFrame callingFrame,
java.lang.String $Text,
double[][] aad,
boolean doCopy)
callingFrame - the frame from which the function is called$Text - text to be appended to form a new file nameaad - the source data
public static DataFrame makeDataFrame(java.io.File newFile,
double[][] aad)
newFile - the file to associate with the new frameaad - the source data
public static DataFrame makeDataFrame(javax.swing.JFrame parentFrame,
java.lang.String $File,
double[][] aad)
parentFrame - a reference frame for positioning$File - what to name the associated data fileaad - the source data
protected void menuFixer(AMenuBar menuBar)
menuFixer in class APanelprivate boolean multiPaint(java.awt.Graphics graphics)
protected void reSync()
reSync in class APanelprivate void scaleData(double[][] xyArray)
public void scaleData(double dMin,
double dMax)
scaleData in class APanelprivate void setDataBuffer(java.awt.image.DataBuffer dbd)
public void setOverlay()
APanel
setOverlay in class APanel
public void setSourceData(java.util.ArrayList ax,
java.util.ArrayList ay)
ax - the list of x valuesay - the list of y valuespublic void setSourceData(java.awt.image.DataBuffer dbd)
setSourceData in class APaneldbd - a data buffer to use for the plot datapublic void setSourceData(double[][] aad)
aad - a 2D array to use for the plot data
public void setSourceData(double[][] aad,
boolean doScale)
aad - a 2D array to use for the plot datadoScale - if true, rescale the plot to the input array extrema
public void setSourceData(double[][] xyArray,
double dXMin,
double dXMax,
double dYMin,
double dYMax)
xyArray - the 2D array to use in creating a data buffer for this plotdXMin - the initial minimum x-axis valuedXMax - the initial maximum x-axis valuedYMin - the initial minimum y-axis valuedYMax - the initial maximum y-axis value
public java.nio.channels.FileChannel write(boolean isNative,
java.lang.String $Format)
write in class APanel
protected java.nio.channels.FileChannel writePng()
throws java.lang.Exception
java.lang.Exception
protected java.nio.channels.FileChannel writeSaf()
throws java.lang.Exception
java.lang.Exception
protected java.nio.channels.FileChannel writeTxt()
throws java.lang.Exception
java.lang.Exception
public java.nio.channels.FileChannel writeXLS()
throws java.lang.Exception
java.lang.Exception
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||