All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ncsa.hdf.jhv.JHVImageFrame

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Window
                           |
                           +----java.awt.Frame
                                   |
                                   +----ncsa.hdf.jhv.JHVImageFrame

public class JHVImageFrame
extends Frame
implements ItemListener, ActionListener, AdjustmentListener
This class displays an image in seprate window. More image processing is here.

Version:
1.50 9/6/97

Variable Index

 o BACKWARD
 o DIGIT_VALUE
 o FORWARD
 o HISTOGRAM_PLOT
 o NEXT
the constants of the animation operation
 o NONE_PLOT
 o NONE_VALUE
 o PIXEL_VALUE
 o PREVIOUS
 o RADIAL_PLOT
 o zoomFactor

Constructor Index

 o JHVImageFrame(JHVCanvas, Rectangle)
Create the seprate frame based on the HDF browser's image canvas.
 o JHVImageFrame(JHVCanvas, SDSDimInfo, Rectangle)
Create the seprate frame based on the HDF browser's image canvas.

Method Index

 o actionPerformed(ActionEvent)
Handles Button Events
 o adjustmentValueChanged(AdjustmentEvent)
Handles the event.
 o buttonDisable()
Disables annimated button
 o buttonEnable()
Enables annimated button
 o close()
 o createContourMenu(String)
create a image contour menu by provoded title
 o createDisplayItems()
create new GUI for ImageFrame
 o createEditMenu(String)
create a edit menu by provoded title such like bright/contrast ...
 o createFileMenu(String)
create a file menu by provoded title
 o createFilterMenu(String)
create a image filter menu by provoded title
 o createImageMenu(String)
create a image process menu by provoded title such like bright/contrast ...
 o createJHVImageMenuBar()
create menubar for JHV image viewer
 o createPaletteMenu(String)
create a palette menu by provoded title
 o createPlotMenu(String)
create a plot menu by provoded title
 o createViewMenu(String)
create a view menu by provoded title
 o handleContourMenuEvent(String)
 o handleEditMenuEvent(String)
 o handleFilterEvent(String)
 o handleImageMenuEvent(String)
 o handleMenuEvent(String)
 o handlePaletteMenuEvent(String)
 o handlePlotMenuEvent(CheckboxMenuItem)
 o handleTextFieldEvent(TextField, String)
 o handleViewMenuEvent(CheckboxMenuItem)
 o itemStateChanged(ItemEvent)
 o openNewPalette()
 o popup()
popup the new frame actually
 o set_Cursor(Cursor)
 o setImage(int)
set the action flag for displaying the image
 o setImageFilter(ImageFilter)
 o setNewPalette()
 o setSliceInfo(SDSDimInfo)
 o setSubsetRange(Rectangle)
 o setTitle()
setup the frame tittle

Variables

 o NEXT
 public static final int NEXT
the constants of the animation operation

 o PREVIOUS
 public static final int PREVIOUS
 o BACKWARD
 public static final int BACKWARD
 o FORWARD
 public static final int FORWARD
 o zoomFactor
 public float zoomFactor
 o NONE_VALUE
 public static final int NONE_VALUE
 o PIXEL_VALUE
 public static final int PIXEL_VALUE
 o DIGIT_VALUE
 public static final int DIGIT_VALUE
 o NONE_PLOT
 public static final int NONE_PLOT
 o RADIAL_PLOT
 public static final int RADIAL_PLOT
 o HISTOGRAM_PLOT
 public static final int HISTOGRAM_PLOT

Constructors

 o JHVImageFrame
 public JHVImageFrame(JHVCanvas canvas_,
                      Rectangle subset)
Create the seprate frame based on the HDF browser's image canvas. This frame will display the HDF raster image with scroll panel

Parameters:
app - the JHV applet name
 o JHVImageFrame
 public JHVImageFrame(JHVCanvas canvas_,
                      SDSDimInfo slice,
                      Rectangle subset)
Create the seprate frame based on the HDF browser's image canvas. This frame will display the HDF raster image with scroll panel

Parameters:
app - the JHV applet name

Methods

 o setTitle
 public void setTitle()
setup the frame tittle

 o set_Cursor
 public void set_Cursor(Cursor cursor)
 o createJHVImageMenuBar
 public MenuBar createJHVImageMenuBar()
create menubar for JHV image viewer

 o createFileMenu
 public Menu createFileMenu(String menuTitle)
create a file menu by provoded title

Parameters:
menuTitle - the menu title
 o createViewMenu
 public Menu createViewMenu(String menuTitle)
create a view menu by provoded title

Parameters:
menuTitle - the menu title
 o createPlotMenu
 public Menu createPlotMenu(String menuTitle)
create a plot menu by provoded title

Parameters:
menuTitle - the menu title
 o createEditMenu
 public Menu createEditMenu(String menuTitle)
create a edit menu by provoded title such like bright/contrast ...

Parameters:
menuTitle - the menu title
 o createPaletteMenu
 public Menu createPaletteMenu(String menuTitle)
create a palette menu by provoded title

Parameters:
menuTitle - the menu title
 o createImageMenu
 public Menu createImageMenu(String menuTitle)
create a image process menu by provoded title such like bright/contrast ...

Parameters:
menuTitle - the menu title
 o createFilterMenu
 public Menu createFilterMenu(String menuTitle)
create a image filter menu by provoded title

Parameters:
menuTitle - the menu title
 o createContourMenu
 public Menu createContourMenu(String menuTitle)
create a image contour menu by provoded title

Parameters:
menuTitle - the menu title
 o createDisplayItems
 public Panel createDisplayItems()
create new GUI for ImageFrame

 o setImage
 public void setImage(int actionFlag) throws IOException
set the action flag for displaying the image

Parameters:
actionFlag - the action flag value
Throws: IOException
If an I/O error has occurred.
 o popup
 public void popup()
popup the new frame actually

 o close
 public void close()
 o buttonEnable
 public void buttonEnable()
Enables annimated button

 o buttonDisable
 public void buttonDisable()
Disables annimated button

 o handleMenuEvent
 public void handleMenuEvent(String arg)
 o handleEditMenuEvent
 public void handleEditMenuEvent(String arg)
 o handleViewMenuEvent
 public void handleViewMenuEvent(CheckboxMenuItem item)
 o handlePlotMenuEvent
 public void handlePlotMenuEvent(CheckboxMenuItem item)
 o setNewPalette
 public void setNewPalette()
 o openNewPalette
 public void openNewPalette()
 o handlePaletteMenuEvent
 public void handlePaletteMenuEvent(String arg)
 o handleTextFieldEvent
 public void handleTextFieldEvent(TextField target,
                                  String arg)
 o setImageFilter
 public void setImageFilter(ImageFilter filter)
 o handleImageMenuEvent
 public void handleImageMenuEvent(String arg)
 o handleFilterEvent
 public void handleFilterEvent(String arg)
 o handleContourMenuEvent
 public void handleContourMenuEvent(String arg)
 o actionPerformed
 public void actionPerformed(ActionEvent e)
Handles Button Events

 o setSubsetRange
 public void setSubsetRange(Rectangle rect)
 o itemStateChanged
 public void itemStateChanged(ItemEvent e)
 o adjustmentValueChanged
 public void adjustmentValueChanged(AdjustmentEvent e)
Handles the event. Returns true if the event is handled and should not be passed to the parent of this component. The default event handler calls some helper methods to make life easier on the programmer.

Parameters:
evt - the event
See Also:
handleEvent
 o setSliceInfo
 public void setSliceInfo(SDSDimInfo info)

All Packages  Class Hierarchy  This Package  Previous  Next  Index