|
|||||||||
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
jsky.image.gui.ImageDisplayControl
public class ImageDisplayControl
Combines an ImageDisplay with a control panel, zoom, and pan windows.
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 | |
---|---|
protected ImageColorbar |
colorbar
Color bar |
protected String |
filename
Optional filename to load image from. |
protected DivaMainImageDisplay |
imageDisplay
Main image display |
protected ImageDisplayStatusPanel |
imageDisplayStatusPanel
Panel displaying information about the current mouse position |
protected ImagePanner |
imagePanner
Pan window |
protected ImageZoom |
imageZoom
Zoom window |
protected JPanel |
panZoomPanel
Panel containing the pan and zoom windows |
protected BasicArrowButton |
panZoomToggleButton
Used to toggle the visibility of the pan/zoom windows |
protected Component |
parent
The top level parent frame (or internal frame) used to close the window |
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 | |
---|---|
ImageDisplayControl(Component parent)
Make an ImageDisplayControl widget with the default settings |
|
ImageDisplayControl(Component parent,
int size)
Construct an ImageDisplayControl widget. |
|
ImageDisplayControl(Component parent,
String filename)
Make an ImageDisplayControl widget with the default settings and display the contents of the image file. |
|
ImageDisplayControl(Component parent,
URL url)
Make an ImageDisplayControl widget with the default settings and display the contents of the image file pointed to by the URL. |
Method Summary | |
---|---|
DivaMainImageDisplay |
getImageDisplay()
Return the main image display widget |
ImageDisplayStatusPanel |
getImageDisplayStatusPanel()
Return the status panel window |
ImagePanner |
getImagePanner()
Return the pan window |
ImageZoom |
getImageZoom()
Return the zoom window |
protected ImageColorbar |
makeColorbar()
Make and return the colorbar window. |
protected DivaMainImageDisplay |
makeImageDisplay()
Make and return the image display window |
protected void |
makeLayout(int size)
This method is resposible for the window layout for this widget. |
protected ImagePanner |
makePanWindow(int size)
Make and return the pan window. |
protected BasicArrowButton |
makePanZoomToggleButton()
Make and return a button for showing and hiding the pan/zoom panel |
protected ImageDisplayStatusPanel |
makeStatusPanel()
Make and return the status panel |
protected ImageZoom |
makeZoomWindow(int size)
Make and return the zoom window. |
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 |
Field Detail |
---|
protected Component parent
protected ImagePanner imagePanner
protected JPanel panZoomPanel
protected ImageZoom imageZoom
protected DivaMainImageDisplay imageDisplay
protected ImageColorbar colorbar
protected ImageDisplayStatusPanel imageDisplayStatusPanel
protected String filename
protected BasicArrowButton panZoomToggleButton
Constructor Detail |
---|
public ImageDisplayControl(Component parent, int size)
parent
- the top level parent frame (or internal frame) used to close the windowsize
- the size (width, height) to use for the pan and zoom windows.public ImageDisplayControl(Component parent)
parent
- The top level parent frame (or internal frame) used to close the windowpublic ImageDisplayControl(Component parent, URL url)
parent
- The top level parent frame (or internal frame) used to close the windowurl
- The URL for the image to loadpublic ImageDisplayControl(Component parent, String filename)
parent
- The top level parent frame (or internal frame) used to close the windowfilename
- The image file to loadMethod Detail |
---|
protected DivaMainImageDisplay makeImageDisplay()
protected ImagePanner makePanWindow(int size)
size
- the size (width, height) to use for the pan window.protected ImageZoom makeZoomWindow(int size)
size
- the size (width, height) to use for the zoom window.protected BasicArrowButton makePanZoomToggleButton()
protected ImageColorbar makeColorbar()
protected ImageDisplayStatusPanel makeStatusPanel()
protected void makeLayout(int size)
size
- the initial size (width, height) to use for the pan and zoom windows.public DivaMainImageDisplay getImageDisplay()
public ImagePanner getImagePanner()
public ImageZoom getImageZoom()
public ImageDisplayStatusPanel getImageDisplayStatusPanel()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |