All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ncsa.hdf.awt.palette.PaletteCanvas

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Canvas
                   |
                   +----ncsa.hdf.awt.palette.PaletteCanvas

public class PaletteCanvas
extends Canvas

Constructor Index

 o PaletteCanvas()
 o PaletteCanvas(PalettePanel)

Method Index

 o currentColorModel()
Get a new color table.
 o currentColorModel(byte[], byte[], byte[])
Get a new color table.
 o currentPaletteValue()
Get a new color table.
 o flipDataValue(byte[])
 o flipPalette()
 o getBlueValues()
 o getGreenValues()
 o getImageHeight()
return the current image height
 o getImageWidth()
return the current image width
 o getPaletteImage()
 o getPaletteImage(byte[], byte[], byte[])
 o getRedValues()
 o main(String[])
Called automatically by the system the application is started.
 o mouseDragged(MouseEvent)
Called if the mouse is dragged (the mouse button is down)
 o mouseEntered(MouseEvent)
Called when the mouse enters the component.
 o mouseExited(MouseEvent)
Called when the mouse exits the component.
 o mousePressed(MouseEvent)
Called if the mouse is down.
 o mouseReleased(MouseEvent)
Called if the mouse is up.
 o paint(Graphics)
Paints the component.
 o popPaletteValue()
 o processEvent(AWTEvent)
 o processMouseEvent(MouseEvent)
 o processMouseMotionEvent(MouseEvent)
 o pushPaletteValue()
 o setBandedGrayScalePalette()
 o setBandedRainbowPalette()
 o setBlueValues(byte[])
 o setFiddleValues()
 o setGrayScalePalette()
 o setGreenValues(byte[])
 o setImage(Image)
 o setImageData()
 o setImageData(byte[])
 o setInvertedGrayScalePalette()
 o setInvertedRainbowPalette()
 o setPalette(byte[])
 o setRainbowPalette()
 o setRandomPalette()
 o setRedValues(byte[])
 o setRGBValues(byte[], byte[], byte[])
 o setStripedRainbowPalette()
 o shiftDataValue(byte[], int)
 o shiftPalette(int)
 o transDataValue(byte[], int)
 o transPalette(int)
 o undoPalette()
 o update(Graphics)
Updates the component.
 o update(Observable, Object)
java.util.Observer stuff

Constructors

 o PaletteCanvas
 public PaletteCanvas()
 o PaletteCanvas
 public PaletteCanvas(PalettePanel parent)

Methods

 o setImageData
 public void setImageData()
 o setImageData
 public void setImageData(byte data[])
 o setRainbowPalette
 public void setRainbowPalette()
 o setPalette
 public void setPalette(byte rgb[])
 o setBandedRainbowPalette
 public void setBandedRainbowPalette()
 o setInvertedRainbowPalette
 public void setInvertedRainbowPalette()
 o setStripedRainbowPalette
 public void setStripedRainbowPalette()
 o setGrayScalePalette
 public void setGrayScalePalette()
 o setBandedGrayScalePalette
 public void setBandedGrayScalePalette()
 o setInvertedGrayScalePalette
 public void setInvertedGrayScalePalette()
 o setImage
 public void setImage(Image img)
 o getPaletteImage
 public Image getPaletteImage()
 o getPaletteImage
 public Image getPaletteImage(byte r[],
                              byte g[],
                              byte b[])
 o currentColorModel
 public ColorModel currentColorModel()
Get a new color table.

 o currentPaletteValue
 public byte[] currentPaletteValue()
Get a new color table.

 o currentColorModel
 public ColorModel currentColorModel(byte r[],
                                     byte g[],
                                     byte b[])
Get a new color table.

 o getImageWidth
 public int getImageWidth()
return the current image width

 o getImageHeight
 public int getImageHeight()
return the current image height

 o paint
 public void paint(Graphics g)
Paints the component.

Parameters:
g - the specified Graphics window
Overrides:
paint in class Canvas
See Also:
paint
 o update
 public void update(Graphics g)
Updates the component. This method is called in response to a call to repaint. You can assume that the background is not cleared.

Parameters:
g - the specified Graphics window
Overrides:
update in class Component
See Also:
update
 o update
 public void update(Observable o,
                    Object cm)
java.util.Observer stuff

 o flipPalette
 public void flipPalette()
 o undoPalette
 public void undoPalette()
 o flipDataValue
 public void flipDataValue(byte data[])
 o setRandomPalette
 public void setRandomPalette()
 o shiftPalette
 public void shiftPalette(int deta)
 o shiftDataValue
 public byte[] shiftDataValue(byte data[],
                              int deta)
 o transPalette
 public void transPalette(int factor)
 o transDataValue
 public byte[] transDataValue(byte data[],
                              int factor)
 o setRedValues
 public void setRedValues(byte reds[])
 o setRGBValues
 public void setRGBValues(byte r[],
                          byte g[],
                          byte b[])
 o setFiddleValues
 public void setFiddleValues()
 o getRedValues
 public byte[] getRedValues()
 o setGreenValues
 public void setGreenValues(byte greens[])
 o getGreenValues
 public byte[] getGreenValues()
 o setBlueValues
 public void setBlueValues(byte blues[])
 o getBlueValues
 public byte[] getBlueValues()
 o mousePressed
 public void mousePressed(MouseEvent evt)
Called if the mouse is down.

 o mouseDragged
 public void mouseDragged(MouseEvent evt)
Called if the mouse is dragged (the mouse button is down)

 o mouseReleased
 public void mouseReleased(MouseEvent evt)
Called if the mouse is up.

 o pushPaletteValue
 public void pushPaletteValue()
 o popPaletteValue
 public RGBValues popPaletteValue()
 o mouseExited
 public void mouseExited(MouseEvent evt)
Called when the mouse exits the component.

 o mouseEntered
 public void mouseEntered(MouseEvent evt)
Called when the mouse enters the component.

 o main
 public static void main(String args[])
Called automatically by the system the application is started.

 o processEvent
 protected void processEvent(AWTEvent e)
Overrides:
processEvent in class Component
 o processMouseEvent
 protected void processMouseEvent(MouseEvent e)
Overrides:
processMouseEvent in class Component
 o processMouseMotionEvent
 protected void processMouseMotionEvent(MouseEvent e)
Overrides:
processMouseMotionEvent in class Component

All Packages  Class Hierarchy  This Package  Previous  Next  Index