|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectComponent
Container
JComponent
ImageProperties
public class ImageProperties
A panel showing the properties of an image. The panel contains the following tabs (some of them may be disabled depending on the image type):
ImageSampleValues.ImagePane.
While this pane works primarily with instances of the RenderedImage interface, it
accepts also instances of RenderableImage or PropertySource interfaces.
The PropertySource.getProperty(String) method will be invoked only when a property
is first required, in order to avoid the computation of deferred properties before
needed. If the source implements also the PropertyChangeEmitter interface,
then this widget will register a listener for property changes. The changes can be
emitted from any thread - it doesn't need to be the Swing thread.
ImageFileProperties,
OperationTreeBrowser,
Serialized Form
| display/geotk-widgets-swing (download) | View source code for this class |
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
protected ImagePane |
viewer
The viewer for an image quick look. |
| Fields inherited from class 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 Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
ImageProperties()
Creates a new instance of ImageProperties with no image. |
|
ImageProperties(RenderedImage image)
Create a new instance of ImageProperties for the specified
rendered image. |
|
| Method Summary | |
|---|---|
void |
commitEdit()
Forces the current values to be taken from the editable fields and set them as the current values. |
void |
setImage(PropertySource image)
Sets the property source for this widget. |
void |
setImage(RenderableImage image)
Sets the specified renderable image as the properties source. |
void |
setImage(RenderedImage image)
Sets the specified rendered image as the properties source. |
static void |
show(RenderedImage image)
Shows the properties for the specified rendered image in a frame. |
boolean |
showDialog(Component owner,
String title)
Shows a dialog box requesting input from the user. |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final ImagePane viewer
| Constructor Detail |
|---|
public ImageProperties()
ImageProperties with no image.
One of setImage(...) methods must
be invoked in order to set the properties source.
public ImageProperties(RenderedImage image)
ImageProperties for the specified
rendered image.
image - The image, or null if none.| Method Detail |
|---|
public void setImage(PropertySource image)
setImage(...)
was invoked.
image - The image, or null if none.public void setImage(RenderableImage image)
image - The image, or null if none.public void setImage(RenderedImage image)
image - The image, or null if none.
public void commitEdit()
throws ParseException
commitEdit in interface DialogParseException - If at least one values couldn't be commited.JFormattedTextField.commitEdit(),
JSpinner.commitEdit()
public boolean showDialog(Component owner,
String title)
owner. If owner is contained into a JDesktopPane,
the dialog box will appears as an internal frame.
Multi-threading
Geotk implementations allow this method to be invoked from any thread. If the caller
thread is not the Swing thread, then the execution of this method will be
registered in the AWT Event Queue and the caller thread will block until completion.
showDialog in interface Dialogtitle - The dialog box title, or null for a default title.owner - The parent component for the dialog box, or null if there is no parent.
true if user pressed the "Ok" button, or false otherwise
(e.g. pressing "Cancel" or closing the dialog box from the title bar).@Debug public static void show(RenderedImage image)
image - The image to display in a frame.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||