|
|||||||||||
| 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
org.globus.cog.gridface.impl.imageviewer.ImageViewerImplToolBar
| Nested Class Summary | |
class |
ImageViewerImplToolBar.imagePane
This class extends JComponent and displays the image. |
class |
ImageViewerImplToolBar.listener
Provides a generic action listener for all buttons and distinguishes between them on the basis of their text. |
| Nested classes inherited from class javax.swing.JPanel |
JPanel.AccessibleJPanel |
| Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
| Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
| Nested classes 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 | |
ImageViewerImplToolBar()
|
|
ImageViewerImplToolBar(GridCommandManager gcm)
The constructor calls the parent's constuctor (since the class extends JPanel). |
|
ImageViewerImplToolBar(GridCommandManager gcm,
URI imageURI)
|
|
ImageViewerImplToolBar(URI imageURI)
|
|
| Method Summary | |
void |
alert(String message)
|
void |
changeSize(double changeSizeFactor)
Resizes the image by the factor specified in changeSizeFactor. |
boolean |
close()
|
protected void |
createUsernameDialog()
Create the dialog to be popped up asking the user for their username and password if they are not connecting to a gridftp server. |
void |
flipHorizontal()
Flip the image horizontally. |
void |
flipVertical()
Flip the image vertically. |
Date |
lastUpdateTime()
Records the last time the GridFace was updated. |
void |
load()
|
void |
load(String imagePath)
Loads up an image, either the first one or a new one. |
void |
register(GridFace connection)
Registers another GridFace to this GridFace. |
void |
register(String mimetype,
Object viewer)
Registers a viewer for a particular protocol. |
void |
rotate(int angle)
Rotate the image by the given angle |
void |
save()
Save the changed image. |
void |
saveAS()
Save as a new image |
void |
setDefault(Object viewer)
Sets the default viewer to |
void |
setLabel(String label)
sets a label for a GridFace. |
void |
setName(String name)
sets the name for a GridFace. |
void |
statusChanged(StatusEvent event)
|
void |
update()
updates the displaed gridface. |
| 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 ImageViewerImplToolBar()
throws Exception
public ImageViewerImplToolBar(GridCommandManager gcm)
public ImageViewerImplToolBar(GridCommandManager gcm,
URI imageURI)
public ImageViewerImplToolBar(URI imageURI)
throws Exception
| Method Detail |
public void alert(String message)
protected void createUsernameDialog()
public void load()
load in interface ImageViewerPanelpublic void load(String imagePath)
public void rotate(int angle)
rotate in interface ImageViewerPanelangle - intpublic void flipVertical()
AffineTransform is used to do this since there is not operation in the
Graphics2D class for this.
flipVertical in interface ImageViewerPanelpublic void flipHorizontal()
flipHorizontal in interface ImageViewerPanelpublic void changeSize(double changeSizeFactor)
changeSize in interface ImageViewerPanelpublic void save()
save in interface ImageViewerPanelpublic void saveAS()
saveAS in interface ImageViewerPanel
public void register(String mimetype,
Object viewer)
register in interface ViewerPanelmimetype - a String the mimetype. For now we
use a combination of endings and
prefixes. E.g. gridftp://..../a.jpg. Will fetch and display in
an image in the viewer. The file will be downloaded to the
local computer.viewer - an Object The viewer the displays
the result in the view window.public void setDefault(Object viewer)
setDefault in interface ViewerPanelviewer - an Object valuepublic void update()
update in interface GridFacepublic Date lastUpdateTime()
lastUpdateTime in interface GridFaceDate, the last time when the GridFace was
updated.public void setName(String name)
setName in interface GridFacename - a String thatreturns a uniqe name.public void setLabel(String label)
setLabel in interface GridFacelabel - a String that returns the assigned label.public void register(GridFace connection)
register in interface GridFaceconnection - a GridFace valuepublic void statusChanged(StatusEvent event)
statusChanged in interface StatusListenerpublic boolean close()
close in interface AccessClose
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||