|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--java.awt.Panel | +--java.applet.Applet | +--javax.swing.JApplet | +--SingleInputImageInterface
The base class for many non-binary image operators and also the base class for SingleBinaryImageInterface, containing the necessary functionality for displaying images onscreen and setting up the basic user interface.
Inner classes inherited from class javax.swing.JApplet |
javax.swing.JApplet.AccessibleJApplet |
Field Summary | |
java.awt.Container |
container
The top level GUI container. |
java.lang.String |
imageName
The filename of the input image. |
javax.swing.JTextField |
imageNameField
The text box on the interface for displaying/entering the input image name. |
javax.swing.JPanel |
imagesPanel
The panel used for displaying the input/output images. |
ImageTools |
imageTools
Various tools for manipulating images. |
int[] |
inputArray
An array of ints representing the input image. |
javax.swing.JLabel |
inputDims
For displaying the input image dimensions. |
int |
inputHeight
Height of the input image. |
javax.swing.ImageIcon |
inputIcon
For displaying the input image on the screen. |
java.awt.Image |
inputImage
The input image stored as an Image. |
javax.swing.JLabel |
inputLabel
For displaying the input icon and therefore the input image. |
javax.swing.JPanel |
inputPanel
|
int |
inputWidth
Width of the input image. |
javax.swing.JButton |
load
The button for loading a new image. |
javax.swing.JPanel |
loadPanel
The panel containing the file load and status information and controls. |
javax.swing.JPanel |
operatorPanel
The panel containing the leftPanel and the various FFT output images. |
int[] |
outputArray
An array of ints representing the output image. |
javax.swing.JLabel |
outputDims
For displaying the output image dimensions. |
int |
outputHeight
Height of the output image. |
javax.swing.ImageIcon |
outputIcon
For displaying the output image. |
java.awt.Image |
outputImage
The output image stored as an Image. |
javax.swing.JLabel |
outputLabel
For displaying the output image. |
javax.swing.JPanel |
outputPanel
|
int |
outputWidth
Width of the output image. |
StartStopInterface |
startstop
The interface for stopping and starting the operator. |
javax.swing.JPanel |
startstopPanel
|
javax.swing.JLabel |
status
Label for displaying the current loading status. |
long |
time_msec
For storing a record of the time taken by the operator. |
java.awt.MediaTracker |
tracker
Keeps track of the image loading. |
Fields inherited from class javax.swing.JApplet |
accessibleContext,
rootPane,
rootPaneCheckingEnabled |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT,
CENTER_ALIGNMENT,
LEFT_ALIGNMENT,
RIGHT_ALIGNMENT,
TOP_ALIGNMENT |
Constructor Summary | |
SingleInputImageInterface()
|
Method Summary | |
javax.swing.JPanel |
createImagesPanel()
Sets up the panel displaying the input and output images. |
javax.swing.JPanel |
createLoadPanel()
Sets up the panel containing the load button and file loading information. |
java.lang.String |
getAppletInfo()
Used by the browser to obtain details of the applet. |
void |
init()
|
void |
initialImage(java.lang.String name)
Sets the initial image name onscreen and internally. |
boolean |
initialiseImages()
Initialises the images by loading the current input image from a file, then updating the input and output onscreen. |
void |
initialiseInput(java.awt.Image image)
Initialises the input image by simply updating it onscreen. |
void |
setContainer()
Sets up the top-level container for displaying the interface on the screen. |
void |
setLook()
Sets the look and feel of the interface. |
void |
updateInput(java.awt.Image image)
Updates the input image onscreen. |
void |
updateOutput(java.awt.Image output,
int width,
int height)
Updates the output image onscreen. |
Methods inherited from class javax.swing.JApplet |
addImpl,
createRootPane,
getAccessibleContext,
getContentPane,
getGlassPane,
getJMenuBar,
getLayeredPane,
getRootPane,
isRootPaneCheckingEnabled,
paramString,
processKeyEvent,
setContentPane,
setGlassPane,
setJMenuBar,
setLayeredPane,
setLayout,
setRootPane,
setRootPaneCheckingEnabled,
update |
Methods inherited from class java.applet.Applet |
destroy,
getAppletContext,
getAudioClip,
getAudioClip,
getCodeBase,
getDocumentBase,
getImage,
getImage,
getLocale,
getParameter,
getParameterInfo,
isActive,
newAudioClip,
play,
play,
resize,
resize,
setStub,
showStatus,
start,
stop |
Methods inherited from class java.awt.Panel |
addNotify |
Methods inherited from class java.awt.Container |
add,
add,
add,
add,
add,
addContainerListener,
countComponents,
deliverEvent,
doLayout,
findComponentAt,
findComponentAt,
getAlignmentX,
getAlignmentY,
getComponent,
getComponentAt,
getComponentAt,
getComponentCount,
getComponents,
getInsets,
getLayout,
getMaximumSize,
getMinimumSize,
getPreferredSize,
insets,
invalidate,
isAncestorOf,
layout,
list,
list,
locate,
minimumSize,
paint,
paintComponents,
preferredSize,
print,
printComponents,
processContainerEvent,
processEvent,
remove,
remove,
removeAll,
removeContainerListener,
removeNotify,
setFont,
validate,
validateTree |
Methods inherited from class java.awt.Component |
action,
add,
addComponentListener,
addFocusListener,
addInputMethodListener,
addKeyListener,
addMouseListener,
addMouseMotionListener,
addPropertyChangeListener,
addPropertyChangeListener,
bounds,
checkImage,
checkImage,
coalesceEvents,
contains,
contains,
createImage,
createImage,
disable,
disableEvents,
dispatchEvent,
enable,
enable,
enableEvents,
enableInputMethods,
firePropertyChange,
getBackground,
getBounds,
getBounds,
getColorModel,
getComponentOrientation,
getCursor,
getDropTarget,
getFont,
getFontMetrics,
getForeground,
getGraphics,
getHeight,
getInputContext,
getInputMethodRequests,
getLocation,
getLocation,
getLocationOnScreen,
getName,
getParent,
getPeer,
getSize,
getSize,
getToolkit,
getTreeLock,
getWidth,
getX,
getY,
gotFocus,
handleEvent,
hasFocus,
hide,
imageUpdate,
inside,
isDisplayable,
isDoubleBuffered,
isEnabled,
isFocusTraversable,
isLightweight,
isOpaque,
isShowing,
isValid,
isVisible,
keyDown,
keyUp,
list,
list,
list,
location,
lostFocus,
mouseDown,
mouseDrag,
mouseEnter,
mouseExit,
mouseMove,
mouseUp,
move,
nextFocus,
paintAll,
postEvent,
prepareImage,
prepareImage,
printAll,
processComponentEvent,
processFocusEvent,
processInputMethodEvent,
processMouseEvent,
processMouseMotionEvent,
remove,
removeComponentListener,
removeFocusListener,
removeInputMethodListener,
removeKeyListener,
removeMouseListener,
removeMouseMotionListener,
removePropertyChangeListener,
removePropertyChangeListener,
repaint,
repaint,
repaint,
repaint,
requestFocus,
reshape,
setBackground,
setBounds,
setBounds,
setComponentOrientation,
setCursor,
setDropTarget,
setEnabled,
setForeground,
setLocale,
setLocation,
setLocation,
setName,
setSize,
setSize,
setVisible,
show,
show,
size,
toString,
transferFocus |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public java.awt.Container container
public javax.swing.JPanel imagesPanel
public javax.swing.JPanel startstopPanel
public javax.swing.JPanel loadPanel
public javax.swing.JPanel operatorPanel
public javax.swing.JPanel inputPanel
public javax.swing.JPanel outputPanel
public javax.swing.JTextField imageNameField
public java.lang.String imageName
public javax.swing.JLabel status
public java.awt.Image inputImage
public java.awt.MediaTracker tracker
public java.awt.Image outputImage
public javax.swing.ImageIcon inputIcon
public javax.swing.JLabel inputLabel
public javax.swing.JLabel inputDims
public javax.swing.ImageIcon outputIcon
public javax.swing.JLabel outputLabel
public javax.swing.JLabel outputDims
public int[] inputArray
public int[] outputArray
public int inputHeight
public int inputWidth
public int outputHeight
public int outputWidth
public long time_msec
public javax.swing.JButton load
public StartStopInterface startstop
public ImageTools imageTools
Constructor Detail |
public SingleInputImageInterface()
Method Detail |
public void initialImage(java.lang.String name)
name
- the name of the new imagepublic void updateOutput(java.awt.Image output, int width, int height)
output
- the new output imagewidth
- the width of the new output imageheight
- the height of the new output imagepublic void initialiseInput(java.awt.Image image)
image
- the new input imagepublic void updateInput(java.awt.Image image)
image
- the new output imagepublic boolean initialiseImages()
public javax.swing.JPanel createLoadPanel()
public javax.swing.JPanel createImagesPanel()
public void setLook()
public void setContainer()
public void init()
public java.lang.String getAppletInfo()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |