commandline.ImageTools.ImageDisplay Class Reference

Inheritance diagram for commandline.ImageTools.ImageDisplay:

Inheritance graph
[legend]
Collaboration diagram for commandline.ImageTools.ImageDisplay:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 ImageDisplay ()
 ImageDisplay (PlanarImage im)
 ImageDisplay (int width, int height)
void set (PlanarImage im)
void set (PlanarImage im, int x, int y)
PlanarImage getImage ()
final JLabel getOdometer ()
final void setOrigin (int x, int y)
int getXOrigin ()
int getYOrigin ()
void setBounds (int x, int y, int width, int height)
void setLocation (int x, int y)
final void setBrightnessEnabled (boolean v)
final boolean getBrightnessEnabled ()
final void setBrightness (int b)
synchronized void paintComponent (Graphics g)
final void mouseEntered (MouseEvent e)
final void mouseExited (MouseEvent e)
void mousePressed (MouseEvent e)
final void mouseReleased (MouseEvent e)
final void mouseClicked (MouseEvent e)
final void mouseMoved (MouseEvent e)
final void mouseDragged (MouseEvent e)

Protected Attributes

PlanarImage source
SampleModel sampleModel
ColorModel colorModel
int minTileX
int maxTileX
int minTileY
int maxTileY
int tileWidth
int tileHeight
int tileGridXOffset
int tileGridYOffset
int originX = 0
int originY = 0
int shift_x = 0
int shift_y = 0
JLabel odometer = null
int componentWidth
int componentHeight
BufferedImageOp biop = null
boolean brightnessEnabled = false
int brightness = 0
byte[] lutData

Private Member Functions

synchronized void initialize ()
final int XtoTileX (int x)
final int YtoTileY (int y)
final int TileXtoX (int tx)
final int TileYtoY (int ty)
final byte clampByte (int v)


Detailed Description

An output widget for a PlanarImage. ImageDisplay subclasses javax.swing.JComponent, and can be used in any context that calls for a JComponent. It monitors resize and update events and automatically requests tiles from its source on demand.

Due to the limitations of BufferedImage, only TYPE_BYTE of band 1, 2, 3, 4, and TYPE_USHORT of band 1, 2, 3 images can be displayed using this widget.

Author:
Daniel Rice

Dennis Sigel

Definition at line 46 of file ImageDisplay.java.


Constructor & Destructor Documentation

commandline.ImageTools.ImageDisplay.ImageDisplay (  ) 

Default constructor

Definition at line 123 of file ImageDisplay.java.

commandline.ImageTools.ImageDisplay.ImageDisplay ( PlanarImage  im  ) 

Constructs an ImageDisplay to display a PlanarImage.

Parameters:
source a PlanarImage to be displayed.

Definition at line 144 of file ImageDisplay.java.

commandline.ImageTools.ImageDisplay.ImageDisplay ( int  width,
int  height 
)

Constructs an ImageDisplay of fixed size (no image)

Parameters:
width - display width
height - display height

Definition at line 164 of file ImageDisplay.java.


Member Function Documentation

synchronized void commandline.ImageTools.ImageDisplay.initialize (  )  [private]

void commandline.ImageTools.ImageDisplay.set ( PlanarImage  im  ) 

Changes the source image to a new PlanarImage.

Definition at line 181 of file ImageDisplay.java.

Referenced by testbench.Arithmetic.actionPerformed().

void commandline.ImageTools.ImageDisplay.set ( PlanarImage  im,
int  x,
int  y 
)

Definition at line 188 of file ImageDisplay.java.

PlanarImage commandline.ImageTools.ImageDisplay.getImage (  ) 

Definition at line 194 of file ImageDisplay.java.

final JLabel commandline.ImageTools.ImageDisplay.getOdometer (  ) 

Definition at line 198 of file ImageDisplay.java.

final void commandline.ImageTools.ImageDisplay.setOrigin ( int  x,
int  y 
)

int commandline.ImageTools.ImageDisplay.getXOrigin (  ) 

Definition at line 219 of file ImageDisplay.java.

int commandline.ImageTools.ImageDisplay.getYOrigin (  ) 

Definition at line 223 of file ImageDisplay.java.

void commandline.ImageTools.ImageDisplay.setBounds ( int  x,
int  y,
int  width,
int  height 
)

Records a new size. Called by the AWT.

Definition at line 228 of file ImageDisplay.java.

void commandline.ImageTools.ImageDisplay.setLocation ( int  x,
int  y 
)

Definition at line 255 of file ImageDisplay.java.

final int commandline.ImageTools.ImageDisplay.XtoTileX ( int  x  )  [private]

final int commandline.ImageTools.ImageDisplay.YtoTileY ( int  y  )  [private]

final int commandline.ImageTools.ImageDisplay.TileXtoX ( int  tx  )  [private]

final int commandline.ImageTools.ImageDisplay.TileYtoY ( int  ty  )  [private]

final byte commandline.ImageTools.ImageDisplay.clampByte ( int  v  )  [private]

final void commandline.ImageTools.ImageDisplay.setBrightnessEnabled ( boolean  v  ) 

Definition at line 289 of file ImageDisplay.java.

final boolean commandline.ImageTools.ImageDisplay.getBrightnessEnabled (  ) 

Definition at line 300 of file ImageDisplay.java.

final void commandline.ImageTools.ImageDisplay.setBrightness ( int  b  ) 

Definition at line 304 of file ImageDisplay.java.

synchronized void commandline.ImageTools.ImageDisplay.paintComponent ( Graphics  g  ) 

Paint the image onto a Graphics object. The painting is performed tile-by-tile, and includes a grey region covering the unused portion of image tiles as well as the general background. At this point the image must be byte data.

Definition at line 320 of file ImageDisplay.java.

final void commandline.ImageTools.ImageDisplay.mouseEntered ( MouseEvent  e  ) 

Definition at line 429 of file ImageDisplay.java.

final void commandline.ImageTools.ImageDisplay.mouseExited ( MouseEvent  e  ) 

Definition at line 432 of file ImageDisplay.java.

void commandline.ImageTools.ImageDisplay.mousePressed ( MouseEvent  e  ) 

Definition at line 435 of file ImageDisplay.java.

Referenced by commandline.ImageTools.ImageDisplay.mouseDragged().

final void commandline.ImageTools.ImageDisplay.mouseReleased ( MouseEvent  e  ) 

Definition at line 443 of file ImageDisplay.java.

final void commandline.ImageTools.ImageDisplay.mouseClicked ( MouseEvent  e  ) 

Definition at line 452 of file ImageDisplay.java.

final void commandline.ImageTools.ImageDisplay.mouseMoved ( MouseEvent  e  ) 

Definition at line 455 of file ImageDisplay.java.

final void commandline.ImageTools.ImageDisplay.mouseDragged ( MouseEvent  e  ) 

Definition at line 464 of file ImageDisplay.java.


Member Data Documentation

The image's ColorModel or one we supply.

Definition at line 54 of file ImageDisplay.java.

Referenced by commandline.ImageTools.ImageDisplay.initialize(), and commandline.ImageTools.ImageDisplay.paintComponent().

BufferedImageOp commandline.ImageTools.ImageDisplay.biop = null [protected]

Definition at line 86 of file ImageDisplay.java.

Referenced by commandline.ImageTools.ImageDisplay.setBrightness().


The documentation for this class was generated from the following file:

Generated on Tue Jul 8 15:02:41 2008 for NODIC by  doxygen 1.5.5