|
|||||||
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 | +--HistVisionApplet
HistVisionApplet is a subclass of the JApplet class which is tailored for use in the HIPR application. It is used with operators which only require the use of one input image, but which have two outputs to display one of which is a histogram.
Inner Class Summary | |
class |
HistVisionApplet.PixelListener
Handles the actions performed when the mouse is used in the interface to find information about image pixels. |
Inner classes inherited from class javax.swing.JApplet |
javax.swing.JApplet.AccessibleJApplet |
Field Summary | |
javax.swing.JPanel |
bl
The bottom left panel |
javax.swing.JPanel |
bm
The bottom middle panel |
java.awt.GridBagConstraints |
bmc
The bottom middle panel constraints |
java.awt.GridBagLayout |
bmlayout
The bottom middle panel layout |
javax.swing.JPanel |
br
The bottom right panel |
java.awt.GridBagConstraints |
brc
The bottom right panel constraints |
java.awt.GridBagLayout |
brlayout
The bottom right panel layout |
java.awt.Container |
container
The main container of the applet |
int |
d_h
The destination image height |
int |
d_w
The destination image width |
java.awt.Image |
dest
The destination image |
int[] |
dest_1d
The destination image array |
ImageCanvas |
dest_canvas
The destination image canvas |
java.awt.Image |
hist
The histogram image |
int[] |
hist_1d
The histogram image array |
HistogramImageCanvas |
hist_canvas
The histogram image canvas |
Histogram |
histogramalgorithm
Operator required to produce the histogram |
int |
i_h
The input image height |
int |
i_w
The input image width |
javax.swing.JLabel |
insize
The input image size label |
javax.swing.JButton |
load_image
The load button |
javax.swing.JPanel |
mid
The middle panel |
java.awt.GridBagConstraints |
midc
The mid panel constraints |
java.awt.GridBagLayout |
midlayout
The mid panel layout |
javax.swing.JLabel |
output
The output image label |
javax.swing.JLabel |
outsize
The output image size label |
java.awt.Image |
src
The source image |
int[] |
src_1d
The source image array |
ImageCanvas |
src_canvas
The source image canvas |
java.net.URL |
theURL
The address from which to load pictures |
long |
time_msec
The execution time |
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 | |
HistVisionApplet()
|
Method Summary | |
void |
add_extra()
add_extra is used to add extra components to the window of the operator. |
void |
apply_send_image()
apply_send_image grabs the image from the URL and turns it into an array of pixels which the operators can manipulate |
java.lang.String |
getAppletInfo()
Used by the browser to find out what the applet is for |
void |
init()
Called automatically when the applet is started. |
void |
set_image()
Sets up the default image |
void |
set_interface()
set_interface sets up the 'standard' interface that is the same regardless of which operator is being run |
void |
set_src_image(int[] input_img,
int w,
int h,
java.lang.String name)
set_src_image tells the applet of the image to be loaded and displayed on the screen. |
void |
set_src_image2(int[] input_img,
int w,
int h,
java.lang.String name)
set_src_image2 is used to add a newly loaded image to the interface It is called by set_src_image once the operator thread has been recreated. |
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 java.awt.Image src
public java.awt.Image dest
public java.awt.Image hist
public ImageCanvas src_canvas
public ImageCanvas dest_canvas
public HistogramImageCanvas hist_canvas
public int[] src_1d
public int[] dest_1d
public int[] hist_1d
public int i_w
public int i_h
public int d_w
public int d_h
public Histogram histogramalgorithm
public long time_msec
public java.awt.GridBagLayout midlayout
public java.awt.GridBagLayout brlayout
public java.awt.GridBagLayout bmlayout
public java.awt.GridBagConstraints midc
public java.awt.GridBagConstraints brc
public java.awt.GridBagConstraints bmc
public javax.swing.JPanel mid
public javax.swing.JPanel br
public javax.swing.JPanel bl
public javax.swing.JPanel bm
public javax.swing.JButton load_image
public javax.swing.JLabel output
public javax.swing.JLabel insize
public javax.swing.JLabel outsize
public java.net.URL theURL
Constructor Detail |
public HistVisionApplet()
Method Detail |
public void init()
public void set_image()
public void set_interface()
public void add_extra()
public void set_src_image2(int[] input_img, int w, int h, java.lang.String name)
input_img
- The new input image arrayw
- The width of the imageh
- The height of the imagename
- The name of the imagepublic void set_src_image(int[] input_img, int w, int h, java.lang.String name)
input_img
- The new input image arrayw
- The width of the imageh
- The height of the imagename
- The name of the imagepublic void apply_send_image()
public java.lang.String getAppletInfo()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |