|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfable.imageviewer.component.ImageComponentUI
public class ImageComponentUI
This class manages the SWT controls for the ImageView. It holds the imageCanvas, but does not manage things related to the imageCanvas. That is done in the ImageViewImage class.
Field Summary | |
---|---|
static int |
DEFAULT_MARKER_SIZE
|
Fields inherited from interface fable.imageviewer.internal.IImagesVarKeys |
---|
BTN_IMG_ADD, BTN_IMG_ADD_PLOT, BTN_IMG_DELETE, BTN_IMG_SETTINGS, BTN_IMG_SUBTRACT, BTN_IMG_SUBTRACT_PLOT, COORD_BL, COORD_BR, COORD_CUSTOM, COORD_TL, COORD_TR, coordNameValues, O_MOOM, O_MOOP, O_OMMO, O_OMPO, O_OPMO, O_OPPO, O_POOM, O_POOP, orientNameValues, PALETTE_AUTUMN, PALETTE_BLUES, PALETTE_COLOR, PALETTE_GREENS, PALETTE_GREY, PALETTE_PASTEL1, PALETTE_RAINBOW1, PALETTE_RAINBOW2, PALETTE_REDS, PALETTE_SPRING, PALETTE_SUMMER, PALETTE_WINTER, paletteNameValues |
Constructor Summary | |
---|---|
ImageComponentUI(ImageComponent imageView)
Constructor. |
Method Summary | |
---|---|
void |
createControls(org.eclipse.swt.widgets.Composite parent)
Creates all the controls. |
void |
createFileNumberText()
Create file number text. |
void |
dispose()
|
void |
firePeaksUpate()
|
boolean |
getControlCompositeShowing()
|
ImageComponentImage |
getImage()
|
org.eclipse.swt.widgets.Canvas |
getImageCanvas()
|
float[] |
getMinMaxText()
Gets the current values of minimumText and maximumText. |
void |
resetAutoscale()
Does the logic for changing any of the autoscale parameters. |
void |
setAspectSelection(boolean isChecked)
|
void |
setAutoScale(boolean autoScale)
|
void |
setControlCompositeShowing(boolean controlCompositeShowing)
|
void |
setCoordinate(int index)
|
void |
setFileNumberText(java.lang.String text)
Sets the text for the fileNumberText. |
void |
setFocus()
|
void |
setImage(ImageComponentImage image)
|
void |
setImageScheme(int index)
|
void |
setMinMaxText(float[] minmax)
Sets minimumText and maximumText to the given values. |
void |
setOrientation(int index)
|
void |
setPeaks(boolean peaksOn)
|
void |
setStatusLabel(org.eclipse.swt.widgets.Text statusLabel)
|
void |
setStatusText(java.lang.String text)
|
void |
setTitle(java.lang.String title)
|
void |
setUserMaximumText(java.lang.String text)
|
void |
setUserMinimumText(java.lang.String text)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int DEFAULT_MARKER_SIZE
Constructor Detail |
---|
public ImageComponentUI(ImageComponent imageView)
imageView
- Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public void createControls(org.eclipse.swt.widgets.Composite parent)
parent
- public void setTitle(java.lang.String title)
public void dispose()
public void resetAutoscale()
public void createFileNumberText()
public void setFileNumberText(java.lang.String text)
text
- public void setMinMaxText(float[] minmax)
minmax
- The new values as float[] {min, max}.public float[] getMinMaxText()
public void setStatusText(java.lang.String text)
public org.eclipse.swt.widgets.Canvas getImageCanvas()
public ImageComponentImage getImage()
public void setImage(ImageComponentImage image)
image
- the image to setpublic boolean getControlCompositeShowing()
public void setControlCompositeShowing(boolean controlCompositeShowing)
controlCompositeShowing
- the controlCompositeShowing to setpublic void setFocus()
public void setAspectSelection(boolean isChecked)
public void firePeaksUpate()
public void setCoordinate(int index)
public void setOrientation(int index)
public void setImageScheme(int index)
public void setAutoScale(boolean autoScale)
public void setPeaks(boolean peaksOn)
public void setUserMinimumText(java.lang.String text)
public void setUserMaximumText(java.lang.String text)
public void setStatusLabel(org.eclipse.swt.widgets.Text statusLabel)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |