|
||||||||
| 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.AImage
public class AImage
AImage extends APanel and provides the base class for all images 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 | |
|---|---|
java.lang.String |
$ColorSpace
|
java.lang.String |
$Profile
|
private double[][] |
aadBandCombineMatrix
|
javax.media.jai.PlanarImage |
backgroundImage
Images for file type background and scale factor calculations |
Colorizer |
colorizer
Colorizer for image panels |
private double |
dImageMax
Image extrema |
private double |
dImageMin
Image extrema |
private int |
interpolationType
The type of interpolation method to use |
private javax.media.jai.Interpolation |
interpolator
The interpolation methods are in this class |
private java.awt.image.WritableRaster |
originalRaster
A copy of the raster as originally loaded from disk |
private java.awt.RenderingHints |
rh
Use border copy for all JAI operations that need border extension |
private java.awt.image.Raster |
scaledRaster
A copy of the image raster scaled to the current window size; this raster contains only the currently active bands, which is just 1 band (except for 3 in the case of RGB images in band combined mode) |
javax.media.jai.PlanarImage |
sclFacImage
|
private javax.media.jai.TiledImage |
sourceImage
The JAI version of the image contained in this panel |
private javax.media.jai.RenderedOp |
transposeOp
|
private java.awt.image.Raster |
transposeRaster
The raster contained in the source image, but after it has been transposed |
private javax.media.jai.operator.TransposeType |
transposeType
|
| 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 | |
|---|---|
AImage(DataFrame ownerFrame)
|
|
| Method Summary | |
|---|---|
protected boolean |
apaint(java.awt.Graphics2D g)
This is called by the apanel paint method to paint the image contents |
void |
centerMax()
Center the image about its maximum pixel |
void |
centerMin()
Center the image about its minimum pixel |
static javax.media.jai.Interpolation |
createInterpolator(int interpolationType)
|
private boolean |
doInterpolatedGrid()
|
void |
editOriginal()
Edit--Original |
void |
findMinima(java.lang.String $)
|
double[][] |
getBandCombineMatrix()
|
java.lang.String |
getColorSpace()
|
javax.media.jai.RenderedOp |
getCorrectedImage()
|
java.awt.Color |
getCursorColor(int ix,
int iy)
Return the color (from the current color palette) of the pixel at the specified coordinates |
java.lang.String[] |
getCursorInfo$(double dx,
double dy)
Load the value of the pixel at the current mouse cursor location into strings for status bar updates |
java.lang.String |
getCursorInfo$(int ix,
int iy,
boolean flagHex)
Return the pixel value for coordinates into the actual image raster |
double[] |
getIntegral()
Integrate all pixels in the current ROI and return the result as a double |
int |
getInterpolationType()
|
double[] |
getMean(javax.media.jai.ROI roi)
|
java.lang.Number[] |
getMedian(javax.media.jai.ROI roi)
|
double[][] |
getMinMax(javax.media.jai.ROI roi)
Find the max and min for a given ROI |
double[][] |
getMinMaxIn()
Find the max and min in the current ROI |
double[][] |
getMinMaxOut()
Find the max and min outside of the current ROI |
java.lang.Number[] |
getPerimeterMean(AOI aoi)
Get the perimeter mean about a given AOI |
java.lang.String |
getProfile()
|
double[] |
getRGBOffset()
|
double[] |
getRGBScale()
|
double |
getSampleDouble(int ix,
int iy,
int ib)
|
int |
getSampleInt(int ix,
int iy,
int ib)
|
javax.media.jai.TiledImage |
getSourceImage()
|
javax.media.jai.operator.TransposeType |
getTransposeType()
|
protected void |
init(DataFrame ownerFrame)
This method will be called by the super constructor when the owner frame handle is available |
void |
integrate()
Integrate all pixels in the current ROI and update the status bar |
boolean |
isBandCombine()
|
void |
loadTransposeRaster()
|
protected void |
menuFixer(AMenuBar menuBar)
Disables or removes menu items that are not implemented for images |
void |
resetInterpolator()
|
void |
reSync()
The new image max and min are found, and (unless the scale is locked) the color scale is respanned. |
void |
scaleData()
Create a new color scale using the existing scale min and max. |
void |
scaleData(double dMin,
double dMax)
Create a new color scale using a specified scale min and max. |
void |
setAxes()
Set axes parameters to default values |
void |
setAxesNormal()
|
void |
setAxesSwapped()
|
void |
setBandCombineMatrix(double[][] aad)
|
void |
setColors()
|
void |
setColors(boolean flag)
Create a default color scale for this image |
void |
setInterpolationType(int iType)
|
void |
setInterpolator(javax.media.jai.Interpolation interpolator)
|
void |
setRGBOffset(double[] ad)
|
void |
setRGBScale(double[] ad)
|
void |
setSourceData(java.awt.image.DataBuffer dataBuffer)
|
void |
setSourceData(java.awt.image.DataBuffer dataBuffer,
java.awt.image.ComponentSampleModel sampleModel)
|
void |
setSourceData(javax.media.jai.PlanarImage imageIn)
|
void |
setTransposedImage()
|
void |
setTransposeType(javax.media.jai.operator.TransposeType tt)
|
java.nio.channels.FileChannel |
write(boolean isNative,
java.lang.String $Format)
Create a file and write out the header and the data. |
java.nio.channels.FileChannel |
write(boolean isNative,
java.lang.String $Format,
boolean doShift)
Create a file and write out the header and the data. |
void |
write(java.nio.channels.FileChannel channel,
boolean doShift)
Write the native raster data out to an existing file. |
| Methods inherited from class com.pentec.adapt.APanel |
|---|
addPopupMenu, autoscaleInsideExtr, autoscaleInsideZero, autoscaleOutsideExtr, autoscaleOutsideZero, boundX, boundY, centerAbout, centerMouseCursor, clearOverlay, convertBox, drawBorder, getAoi, getMouseX, getMouseY, getScaledX, getScaledY, getSize, getXScale, getXYAdjust, getYScale, menuFixer, paint, scaleX, scaleY, scrollX, scrollY, setActive, setBounds, setIntegrationEnabled, setOverlay, 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 |
|---|
public java.lang.String $ColorSpace
public java.lang.String $Profile
private double[][] aadBandCombineMatrix
public javax.media.jai.PlanarImage backgroundImage
public Colorizer colorizer
private double dImageMax
private double dImageMin
private int interpolationType
private javax.media.jai.Interpolation interpolator
private java.awt.image.WritableRaster originalRaster
private java.awt.RenderingHints rh
private java.awt.image.Raster scaledRaster
public javax.media.jai.PlanarImage sclFacImage
private javax.media.jai.TiledImage sourceImage
private javax.media.jai.RenderedOp transposeOp
private java.awt.image.Raster transposeRaster
private javax.media.jai.operator.TransposeType transposeType
| Constructor Detail |
|---|
public AImage(DataFrame ownerFrame)
| Method Detail |
|---|
protected boolean apaint(java.awt.Graphics2D g)
apaint in class APanelg - a handle to the graphics buffer to paint to
public void centerMax()
centerMax in class APanelpublic void centerMin()
centerMin in class APanelpublic static javax.media.jai.Interpolation createInterpolator(int interpolationType)
private boolean doInterpolatedGrid()
public void editOriginal()
editOriginal in class APanelpublic void findMinima(java.lang.String $)
findMinima in class APanelpublic double[][] getBandCombineMatrix()
public java.lang.String getColorSpace()
public javax.media.jai.RenderedOp getCorrectedImage()
public java.awt.Color getCursorColor(int ix,
int iy)
public java.lang.String[] getCursorInfo$(double dx,
double dy)
getCursorInfo$ in class APaneldx - the x coordinatedy - the y coordinate
public java.lang.String getCursorInfo$(int ix,
int iy,
boolean flagHex)
public double[] getIntegral()
public int getInterpolationType()
public double[] getMean(javax.media.jai.ROI roi)
public java.lang.Number[] getMedian(javax.media.jai.ROI roi)
public double[][] getMinMax(javax.media.jai.ROI roi)
public double[][] getMinMaxIn()
getMinMaxIn in class APanelpublic double[][] getMinMaxOut()
getMinMaxOut in class APanelpublic java.lang.Number[] getPerimeterMean(AOI aoi)
aoi - AOI at which to get perimeter mean
public java.lang.String getProfile()
public double[] getRGBOffset()
public double[] getRGBScale()
public double getSampleDouble(int ix,
int iy,
int ib)
public int getSampleInt(int ix,
int iy,
int ib)
public javax.media.jai.TiledImage getSourceImage()
public javax.media.jai.operator.TransposeType getTransposeType()
protected void init(DataFrame ownerFrame)
init in class APanelpublic void integrate()
integrate in class APanelpublic boolean isBandCombine()
public void loadTransposeRaster()
protected void menuFixer(AMenuBar menuBar)
menuFixer in class APanelpublic void resetInterpolator()
public void reSync()
reSync in class APanelpublic void scaleData()
public void scaleData(double dMin,
double dMax)
scaleData in class APaneldMin - the minimum value for the color scaledMax - the maximum value for the color scalepublic void setAxes()
public void setAxesNormal()
public void setAxesSwapped()
public void setBandCombineMatrix(double[][] aad)
public void setColors()
public void setColors(boolean flag)
public void setInterpolationType(int iType)
public void setInterpolator(javax.media.jai.Interpolation interpolator)
public void setRGBOffset(double[] ad)
public void setRGBScale(double[] ad)
public void setSourceData(java.awt.image.DataBuffer dataBuffer)
setSourceData in class APanel
public void setSourceData(java.awt.image.DataBuffer dataBuffer,
java.awt.image.ComponentSampleModel sampleModel)
public void setSourceData(javax.media.jai.PlanarImage imageIn)
public void setTransposedImage()
public void setTransposeType(javax.media.jai.operator.TransposeType tt)
public java.nio.channels.FileChannel write(boolean isNative,
java.lang.String $Format)
write in class APanelisNative - flag indicating whether to save in native or interpolated format$Format - the output file format
public java.nio.channels.FileChannel write(boolean isNative,
java.lang.String $Format,
boolean doShift)
isNative - flag indicating whether to save in native or interpolated format$Format - the output file formatdoShift - flag to indicate whether or not to perform spatial pixel registration
public void write(java.nio.channels.FileChannel channel,
boolean doShift)
channel - the output file channeldoShift - flag to indicate whether or not to perform spatial pixel registration
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||