|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
ucar.unidata.ui.ImagePanel
public class ImagePanel
Class for controlling the display of color images.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
ImagePanel()
NOOP ctor |
|
| Method Summary | |
|---|---|
protected void |
doZoomIn()
|
protected void |
doZoomOut()
zoom out |
int |
getCurrentIndex()
|
List |
getFiles()
|
Image |
getImage()
|
boolean |
imageUpdate(Image img,
int flags,
int x,
int y,
int width,
int height)
Handle the image update |
void |
keyPressed(KeyEvent e)
|
void |
keyReleased(KeyEvent e)
Noop |
void |
keyTyped(KeyEvent e)
Noop |
void |
loadingImageDone(Image image)
|
void |
mouseClicked(MouseEvent e)
|
void |
mouseDragged(MouseEvent event)
|
void |
mouseEntered(MouseEvent e)
Noop |
void |
mouseExited(MouseEvent e)
Noop |
void |
mouseMoved(MouseEvent e)
Noop |
void |
mousePressed(MouseEvent event)
Mouse was pressed |
void |
mouseReleased(MouseEvent event)
|
void |
paint(Graphics g)
|
void |
setFiles(List list)
|
void |
setImage(Image image)
|
void |
setSelectedFile(int theIndex)
Set the selected file. |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ImagePanel()
| Method Detail |
|---|
public void keyPressed(KeyEvent e)
keyPressed in interface KeyListenerpublic void keyReleased(KeyEvent e)
keyReleased in interface KeyListenere - The eventpublic void keyTyped(KeyEvent e)
keyTyped in interface KeyListenere - The eventpublic void mouseMoved(MouseEvent e)
mouseMoved in interface MouseMotionListenere - The eventpublic void mouseClicked(MouseEvent e)
mouseClicked in interface MouseListenerpublic void mouseEntered(MouseEvent e)
mouseEntered in interface MouseListenere - The eventpublic void mouseExited(MouseEvent e)
mouseExited in interface MouseListenere - The eventpublic void mousePressed(MouseEvent event)
mousePressed in interface MouseListenerevent - The eventpublic void mouseReleased(MouseEvent event)
mouseReleased in interface MouseListenerpublic void mouseDragged(MouseEvent event)
mouseDragged in interface MouseMotionListenerpublic void setSelectedFile(int theIndex)
theIndex - Index of the file.public void setFiles(List list)
public List getFiles()
public int getCurrentIndex()
public boolean imageUpdate(Image img,
int flags,
int x,
int y,
int width,
int height)
imageUpdate in interface ImageObserverimageUpdate in class Componentimg - imgflags - flagsx - xy - ywidth - widthheight - height
public void loadingImageDone(Image image)
protected void doZoomIn()
protected void doZoomOut()
public void paint(Graphics g)
paint in class JComponentpublic void setImage(Image image)
public Image getImage()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||