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
-
PaletteCanvas()
-
-
PaletteCanvas(PalettePanel)
-
-
currentColorModel()
- Get a new color table.
-
currentColorModel(byte[], byte[], byte[])
- Get a new color table.
-
currentPaletteValue()
- Get a new color table.
-
flipDataValue(byte[])
-
-
flipPalette()
-
-
getBlueValues()
-
-
getGreenValues()
-
-
getImageHeight()
- return the current image height
-
getImageWidth()
- return the current image width
-
getPaletteImage()
-
-
getPaletteImage(byte[], byte[], byte[])
-
-
getRedValues()
-
-
main(String[])
- Called automatically by the system the application is started.
-
mouseDragged(MouseEvent)
- Called if the mouse is dragged (the mouse button is down)
-
mouseEntered(MouseEvent)
- Called when the mouse enters the component.
-
mouseExited(MouseEvent)
- Called when the mouse exits the component.
-
mousePressed(MouseEvent)
- Called if the mouse is down.
-
mouseReleased(MouseEvent)
- Called if the mouse is up.
-
paint(Graphics)
- Paints the component.
-
popPaletteValue()
-
-
processEvent(AWTEvent)
-
-
processMouseEvent(MouseEvent)
-
-
processMouseMotionEvent(MouseEvent)
-
-
pushPaletteValue()
-
-
setBandedGrayScalePalette()
-
-
setBandedRainbowPalette()
-
-
setBlueValues(byte[])
-
-
setFiddleValues()
-
-
setGrayScalePalette()
-
-
setGreenValues(byte[])
-
-
setImage(Image)
-
-
setImageData()
-
-
setImageData(byte[])
-
-
setInvertedGrayScalePalette()
-
-
setInvertedRainbowPalette()
-
-
setPalette(byte[])
-
-
setRainbowPalette()
-
-
setRandomPalette()
-
-
setRedValues(byte[])
-
-
setRGBValues(byte[], byte[], byte[])
-
-
setStripedRainbowPalette()
-
-
shiftDataValue(byte[], int)
-
-
shiftPalette(int)
-
-
transDataValue(byte[], int)
-
-
transPalette(int)
-
-
undoPalette()
-
-
update(Graphics)
- Updates the component.
-
update(Observable, Object)
- java.util.Observer stuff
PaletteCanvas
public PaletteCanvas()
PaletteCanvas
public PaletteCanvas(PalettePanel parent)
setImageData
public void setImageData()
setImageData
public void setImageData(byte data[])
setRainbowPalette
public void setRainbowPalette()
setPalette
public void setPalette(byte rgb[])
setBandedRainbowPalette
public void setBandedRainbowPalette()
setInvertedRainbowPalette
public void setInvertedRainbowPalette()
setStripedRainbowPalette
public void setStripedRainbowPalette()
setGrayScalePalette
public void setGrayScalePalette()
setBandedGrayScalePalette
public void setBandedGrayScalePalette()
setInvertedGrayScalePalette
public void setInvertedGrayScalePalette()
setImage
public void setImage(Image img)
getPaletteImage
public Image getPaletteImage()
getPaletteImage
public Image getPaletteImage(byte r[],
byte g[],
byte b[])
currentColorModel
public ColorModel currentColorModel()
- Get a new color table.
currentPaletteValue
public byte[] currentPaletteValue()
- Get a new color table.
currentColorModel
public ColorModel currentColorModel(byte r[],
byte g[],
byte b[])
- Get a new color table.
getImageWidth
public int getImageWidth()
- return the current image width
getImageHeight
public int getImageHeight()
- return the current image height
paint
public void paint(Graphics g)
- Paints the component.
- Parameters:
- g - the specified Graphics window
- Overrides:
- paint in class Canvas
- See Also:
- paint
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
update
public void update(Observable o,
Object cm)
- java.util.Observer stuff
flipPalette
public void flipPalette()
undoPalette
public void undoPalette()
flipDataValue
public void flipDataValue(byte data[])
setRandomPalette
public void setRandomPalette()
shiftPalette
public void shiftPalette(int deta)
shiftDataValue
public byte[] shiftDataValue(byte data[],
int deta)
transPalette
public void transPalette(int factor)
transDataValue
public byte[] transDataValue(byte data[],
int factor)
setRedValues
public void setRedValues(byte reds[])
setRGBValues
public void setRGBValues(byte r[],
byte g[],
byte b[])
setFiddleValues
public void setFiddleValues()
getRedValues
public byte[] getRedValues()
setGreenValues
public void setGreenValues(byte greens[])
getGreenValues
public byte[] getGreenValues()
setBlueValues
public void setBlueValues(byte blues[])
getBlueValues
public byte[] getBlueValues()
mousePressed
public void mousePressed(MouseEvent evt)
- Called if the mouse is down.
mouseDragged
public void mouseDragged(MouseEvent evt)
- Called if the mouse is dragged (the mouse button is down)
mouseReleased
public void mouseReleased(MouseEvent evt)
- Called if the mouse is up.
pushPaletteValue
public void pushPaletteValue()
popPaletteValue
public RGBValues popPaletteValue()
mouseExited
public void mouseExited(MouseEvent evt)
- Called when the mouse exits the component.
mouseEntered
public void mouseEntered(MouseEvent evt)
- Called when the mouse enters the component.
main
public static void main(String args[])
- Called automatically by the system the application is started.
processEvent
protected void processEvent(AWTEvent e)
- Overrides:
- processEvent in class Component
processMouseEvent
protected void processMouseEvent(MouseEvent e)
- Overrides:
- processMouseEvent in class Component
processMouseMotionEvent
protected void processMouseMotionEvent(MouseEvent e)
- Overrides:
- processMouseMotionEvent in class Component
All Packages Class Hierarchy This Package Previous Next Index