|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjpl.mipl.mars.viewer.api.PropertyManagerImpl
jpl.mipl.jade.tools.stereo.api.ApplicationModel
public class ApplicationModel
Purpose: Model class for use with the SIth application.
Copyright 2008, California Institute of Technology. ALL RIGHTS RESERVED. U.S. Government Sponsorship acknowledge. 2008.
============================================================================ Modification History : ---------------------- Date Who What ---------------------------------------------------------------------------- 03/07/2008 Nick Initial Release ============================================================================
| Field Summary |
|---|
| Fields inherited from class jpl.mipl.mars.viewer.api.PropertyManagerImpl |
|---|
_changes, _optionsMap |
| Constructor Summary | |
|---|---|
ApplicationModel()
Constructs new instance of ApplicationModel. |
|
| Method Summary | |
|---|---|
protected void |
checkSystemPropertyOverrides()
|
ImageTriple |
getImageTriple()
|
String |
getLineNumber()
Returns line number. |
double |
getPercentStretchMax()
Returns the upper bound on the percent stretch range. |
double |
getPercentStretchMin()
Returns the lower bound on the percent stretch range. |
Point |
getPosition()
Returns copy of current position to prevent destructive behavior |
ImagePreferences |
getPreferenceRegistry()
Sets preference for a given property of an image type. |
float |
getRotationAngle()
Returns current rotation angle, in radians, from range -pi to pi. |
String |
getSampleNumber()
Returns sample number. |
String |
getStatusMessage()
Returns current status to be displayed as part of GUI. |
StereoState |
getStereoUiModel()
|
int |
getStretchType()
Returns the active stretch type for application. |
boolean |
getUsePreferences()
Returns boolean value dictating whether application components should check for preferences. |
boolean |
getViewOverlays()
Returns flag of whether session is in regular-view-mode or overlay-view mode. |
float |
getZoomFactor()
Returns current zoom factor. |
protected void |
handleNewImageTriple()
Application logic of taking new image set, creating image contents from them, and setting those contents as the active image content set. |
protected void |
handleOverlayEnabled()
Application logic of taking new image set, creating image contents from them, and setting those contents as the active image content set. |
protected void |
initState()
|
boolean |
isStereoEnabled()
|
void |
setImageTriple(ImageTriple triple)
|
void |
setLineNumber(String l_num)
Set current line number of mouse position over current image. |
void |
setPercentStretchMax(double max)
Sets the lower bound percent for percent stretch. |
void |
setPercentStretchMin(double min)
Sets the lower bound percent for percent stretch. |
void |
setPosition(Point newPosition)
Sets the current JadeDisplay position so that all views are synchronized |
void |
setRotationAngle(float angle)
Sets the rotation angle used by the JAI rotate operator |
void |
setSampleNumber(String s_num)
Set current sample number of mouse position over current image. |
void |
setStatusMessage(String statMsg)
Set current status message. |
void |
setStereoEnabled(boolean flag)
|
void |
setStereoUiModel(StereoState stereoModel)
|
void |
setStretchType(int stretchType)
Sets the active stretch type for application. |
void |
setUsePreferences(boolean usePreferences)
Enables/disables whether application components should check for preferences. |
void |
setViewOverlays(boolean viewOverlays)
Set overlay view flag. |
void |
setZoomFactor(float zoom)
Sets the zoom factor used by the JAI scale operator |
| Methods inherited from class jpl.mipl.mars.viewer.api.PropertyManagerImpl |
|---|
addPropertyChangeListener, getBooleanProperty, getDoubleProperty, getFloatProperty, getIntProperty, getLongProperty, getProperty, getStringProperty, isPropertySet, removePropertyChangeListener, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ApplicationModel()
| Method Detail |
|---|
protected void initState()
protected void checkSystemPropertyOverrides()
checkSystemPropertyOverrides in class PropertyManagerImplpublic void setZoomFactor(float zoom)
zoom - New zoom factor, must be positive.
IllegalArgumentException - if parameter is non-positvepublic float getZoomFactor()
public void setRotationAngle(float angle)
angle - Value of rotation angle in radians, in range
-pi to pi.public float getRotationAngle()
public void setImageTriple(ImageTriple triple)
public ImageTriple getImageTriple()
public void setPosition(Point newPosition)
newPostion - New x,y point for view location.public Point getPosition()
public void setViewOverlays(boolean viewOverlays)
viewOverlays - Flag on viewing overlayspublic boolean getViewOverlays()
public void setStatusMessage(String statMsg)
statMsg - Current status message.public String getStatusMessage()
public void setLineNumber(String l_num)
l_num - Line number.public String getLineNumber()
public void setSampleNumber(String s_num)
s_num - Sample number.public String getSampleNumber()
public ImagePreferences getPreferenceRegistry()
imageType - RDR image content type to which preference is
associatedpropertyName - Property namespropertyValue - Property value
IllegalArgumentException - if any parameters are null.public void setUsePreferences(boolean usePreferences)
usePreferences - True if preferences enabled, false
otherwise.public boolean getUsePreferences()
public void setStretchType(int stretchType)
stretchType - The desired stretch type to be applied
to image data ranges. One of STRETCH_NONE.
STRETCH_EXTREMA, STRETCH_PERCENT, as defined
in MarsImageViewModel.public int getStretchType()
public void setPercentStretchMin(double min)
public void setPercentStretchMax(double max)
public double getPercentStretchMin()
public double getPercentStretchMax()
public void setStereoEnabled(boolean flag)
public boolean isStereoEnabled()
public void setStereoUiModel(StereoState stereoModel)
public StereoState getStereoUiModel()
protected void handleNewImageTriple()
protected void handleOverlayEnabled()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||