Class Task
java.lang.Object
com.vividsolutions.jump.workbench.model.Task
- All Implemented Interfaces:
LayerManagerProxy
Whatever the user needs to do a particular task. Currently a thin wrapper
around a LayerManager.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceInterface: NameListener must respond to task name changing. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringProject Information property, Used to determine extra info as string textstatic final StringProject File property, Used to determine whether a project file has been moved away from its original locationstatic final StringProject SRS property, Used to determine spatial reference system of a project (saved as SRID: 32632, 4326, etc)static final StringProject Time property, Used to determine last modification time of a projectstatic final StringProject Unit property, Used to determine project unit (extract from SRS: metre, foot, etc) -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(Task.NameListener nameListener) voidaddCategory(Category category) Called by Java2XMLbooleangetName()Get all the task properties.<T> TgetProperty(QName name) Get the value for the named property casting it to the return value.<T> TgetProperty(QName name, Object defaultValue) convenience method forgetProperty(QName)that returns a default value in case the named property is not definedorg.locationtech.jts.geom.EnvelopeintintintintdoubledoubledoubledoublevoidsetMaximized(boolean isMaximized) voidvoidsetProjectFile(File projectFile) voidsetProperties(Map<QName, Object> properties) Set all the task properties.voidsetProperty(QName name, Object value) Set the value for the named property.voidsetSavedViewEnvelope(org.locationtech.jts.geom.Envelope savedViewEnvelope) voidsetTaskWindowLocation(Point taskWindowLocation) voidvoidvoidsetTaskWindowSize(Dimension taskWindowSize) voidsetTaskWindowSizeHeight(String height) voidsetTaskWindowSizeWidth(String width) voidsetTaskWindowZoomBottom(String bottom) voidsetTaskWindowZoomLeft(String left) voidsetTaskWindowZoomRight(String right) voidThis method must be called after all three previous have been done.toString()
-
Field Details
-
PROJECT_FILE_KEY
Project File property, Used to determine whether a project file has been moved away from its original location- See Also:
-
PROJECT_UNIT_KEY
Project Unit property, Used to determine project unit (extract from SRS: metre, foot, etc)- See Also:
-
PROJECT_SRS_KEY
Project SRS property, Used to determine spatial reference system of a project (saved as SRID: 32632, 4326, etc)- See Also:
-
PROJECT_COMMENT_KEY
Project Information property, Used to determine extra info as string text- See Also:
-
PROJECT_TIME_KEY
Project Time property, Used to determine last modification time of a project- See Also:
-
-
Constructor Details
-
Task
public Task()
-
-
Method Details
-
getName
-
setName
-
add
-
getProjectFile
-
setProjectFile
-
getLayerManager
- Specified by:
getLayerManagerin interfaceLayerManagerProxy
-
getCategories
-
addCategory
Called by Java2XML -
setProperty
-
getProperty
Get the value for the named property casting it to the return value.
Instead of:
Integer i = (Integer)task.getProperty(...)
You can use the following:
Integer i = task.getProperty(...)
- Parameters:
name- The name of the property.- Returns:
- value The value for the property.
-
getProperty
convenience method forgetProperty(QName)that returns a default value in case the named property is not defined- Parameters:
name- qualified name of the Task propertydefaultValue- default value of the Task property- Returns:
- the property of type T having this name
-
getProperties
-
setProperties
-
toString
-
getTaskWindowLocation
-
getTaskWindowLocationX
public int getTaskWindowLocationX() -
getTaskWindowLocationY
public int getTaskWindowLocationY() -
setTaskWindowLocation
-
setTaskWindowLocationX
-
setTaskWindowLocationY
-
getTaskWindowSize
-
getTaskWindowSizeWidth
public int getTaskWindowSizeWidth() -
getTaskWindowSizeHeight
public int getTaskWindowSizeHeight() -
setTaskWindowSize
-
setTaskWindowSizeWidth
-
setTaskWindowSizeHeight
-
getMaximized
public boolean getMaximized() -
setMaximized
public void setMaximized(boolean isMaximized) -
getSavedViewEnvelope
public org.locationtech.jts.geom.Envelope getSavedViewEnvelope() -
getTaskWindowZoomLeft
public double getTaskWindowZoomLeft() -
getTaskWindowZoomRight
public double getTaskWindowZoomRight() -
getTaskWindowZoomBottom
public double getTaskWindowZoomBottom() -
getTaskWindowZoomTop
public double getTaskWindowZoomTop() -
setSavedViewEnvelope
public void setSavedViewEnvelope(org.locationtech.jts.geom.Envelope savedViewEnvelope) -
setTaskWindowZoomLeft
-
setTaskWindowZoomRight
-
setTaskWindowZoomBottom
-
setTaskWindowZoomTop
This method must be called after all three previous have been done. Java2XML does this. This is necessary because all parameters must be known before an Envelope can be created (unlike Point and Dimension).- Parameters:
top-
-