public class ImageChangeEvent extends ChangeEvent
Modifier and Type | Field and Description |
---|---|
protected static int |
BEFORE
Bit set before a new image is loaded and cleared afterwards
|
protected static int |
EDIT_STATE_CHANGED
Bit set if the image file was edited (such as adding or deleting a FITS table)
|
protected static int |
IMAGE_DATA_CHANGED
Bit set if the image data was modified so that the image display should be updated
|
protected static int |
NEW_ANGLE
Bit set if a new rotation angle value was set
|
protected static int |
NEW_COLORMAP
Bit set if a new colormap was set
|
protected static int |
NEW_CUT_LEVELS
Bit set if new cut levels were set
|
protected static int |
NEW_IMAGE
Bit set if a new image was (or will be) loaded
|
protected static int |
NEW_ORIGIN
Bit set if the origin changed
|
protected static int |
NEW_SCALE
Bit set if a new scale value was set
|
protected int |
val
Bitmask for boolean values
|
source
Constructor and Description |
---|
ImageChangeEvent(Object source)
Create a new image change event.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isBefore()
Used with isNewImage(), returns true if a new image will be loaded,
and false if it was already loaded.
|
boolean |
isEditStateChanged()
Return true if the edited state of the image file changed
|
boolean |
isImageDataChanged()
Return true if the image data was changed
|
boolean |
isNewAngle()
Return true if the image rotation angle was changed
|
boolean |
isNewColormap()
Return true if the image colormap changed
|
boolean |
isNewCutLevels()
Return true if the image cut levels changed
|
boolean |
isNewImage()
Return true if a new image was (or will be) loaded.
|
boolean |
isNewOrigin()
Return true if the visible image origin changed (by panning)
|
boolean |
isNewScale()
Return true if the image scale (magnification) was changed
|
void |
reset()
Reset all fields to the default values
|
void |
setBefore(boolean b) |
void |
setEditStateChanged(boolean b) |
void |
setImageDataChanged(boolean b) |
void |
setNewAngle(boolean b) |
void |
setNewColormap(boolean b) |
void |
setNewCutLevels(boolean b) |
void |
setNewImage(boolean b) |
void |
setNewOrigin(boolean b) |
void |
setNewScale(boolean b) |
getSource, toString
protected int val
protected static final int NEW_IMAGE
protected static final int BEFORE
protected static final int NEW_SCALE
protected static final int NEW_ANGLE
protected static final int NEW_ORIGIN
protected static final int NEW_COLORMAP
protected static final int NEW_CUT_LEVELS
protected static final int EDIT_STATE_CHANGED
protected static final int IMAGE_DATA_CHANGED
public ImageChangeEvent(Object source)
source
- the source (sending) object.public boolean isNewImage()
public boolean isBefore()
public boolean isNewScale()
public boolean isNewAngle()
public boolean isNewOrigin()
public boolean isNewColormap()
public boolean isNewCutLevels()
public boolean isEditStateChanged()
public boolean isImageDataChanged()
public void setNewImage(boolean b)
public void setBefore(boolean b)
public void setNewScale(boolean b)
public void setNewAngle(boolean b)
public void setNewOrigin(boolean b)
public void setNewColormap(boolean b)
public void setNewCutLevels(boolean b)
public void setEditStateChanged(boolean b)
public void setImageDataChanged(boolean b)
public void reset()
Copyright © 2023 Central Laboratory of the Research Councils. All Rights Reserved.