public class Task extends java.lang.Object implements LayerManagerProxy
Modifier and Type | Class and Description |
---|---|
static interface |
Task.NameListener
Interface: NameListener must respond to task name changing.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROJECT_FILE_KEY
Project File property,
Used to determine whether a project file has been moved away from its original location
|
Constructor and Description |
---|
Task() |
Modifier and Type | Method and Description |
---|---|
void |
add(Task.NameListener nameListener) |
void |
addCategory(Category category)
Called by Java2XML
|
java.util.Collection<Category> |
getCategories() |
LayerManager |
getLayerManager() |
boolean |
getMaximized() |
java.lang.String |
getName() |
java.io.File |
getProjectFile() |
java.util.Map<javax.xml.namespace.QName,java.lang.Object> |
getProperties()
Get all the task properties.
|
<T> T |
getProperty(javax.xml.namespace.QName name)
Get the value for the named property casting it to the return value.
|
com.vividsolutions.jts.geom.Envelope |
getSavedViewEnvelope() |
java.awt.Point |
getTaskWindowLocation() |
int |
getTaskWindowLocationX() |
int |
getTaskWindowLocationY() |
java.awt.Dimension |
getTaskWindowSize() |
int |
getTaskWindowSizeHeight() |
int |
getTaskWindowSizeWidth() |
double |
getTaskWindowZoomBottom() |
double |
getTaskWindowZoomLeft() |
double |
getTaskWindowZoomRight() |
double |
getTaskWindowZoomTop() |
void |
setMaximized(boolean isMaximized) |
void |
setName(java.lang.String name) |
void |
setProjectFile(java.io.File projectFile) |
void |
setProperties(java.util.Map<javax.xml.namespace.QName,java.lang.Object> properties)
Set all the task properties.
|
void |
setProperty(javax.xml.namespace.QName name,
java.lang.Object value)
Set the value for the named property.
|
void |
setSavedViewEnvelope(com.vividsolutions.jts.geom.Envelope savedViewEnvelope) |
void |
setTaskWindowLocation(java.awt.Point taskWindowLocation) |
void |
setTaskWindowLocationX(java.lang.String x) |
void |
setTaskWindowLocationY(java.lang.String y) |
void |
setTaskWindowSize(java.awt.Dimension taskWindowSize) |
void |
setTaskWindowSizeHeight(java.lang.String height) |
void |
setTaskWindowSizeWidth(java.lang.String width) |
void |
setTaskWindowZoomBottom(java.lang.String bottom) |
void |
setTaskWindowZoomLeft(java.lang.String left) |
void |
setTaskWindowZoomRight(java.lang.String right) |
void |
setTaskWindowZoomTop(java.lang.String top)
This method must be called after all three previous have been done.
|
java.lang.String |
toString() |
public static final java.lang.String PROJECT_FILE_KEY
public java.lang.String getName()
public void setName(java.lang.String name)
public void add(Task.NameListener nameListener)
public java.io.File getProjectFile()
public void setProjectFile(java.io.File projectFile)
public LayerManager getLayerManager()
getLayerManager
in interface LayerManagerProxy
public java.util.Collection<Category> getCategories()
public void addCategory(Category category)
public void setProperty(javax.xml.namespace.QName name, java.lang.Object value)
name
- The name of the property.value
- The value for the property.public <T> T getProperty(javax.xml.namespace.QName name)
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(...)
name
- The name of the property.public java.util.Map<javax.xml.namespace.QName,java.lang.Object> getProperties()
public void setProperties(java.util.Map<javax.xml.namespace.QName,java.lang.Object> properties)
properties
- The task properties.public java.lang.String toString()
toString
in class java.lang.Object
public java.awt.Point getTaskWindowLocation()
public int getTaskWindowLocationX()
public int getTaskWindowLocationY()
public void setTaskWindowLocation(java.awt.Point taskWindowLocation)
public void setTaskWindowLocationX(java.lang.String x)
public void setTaskWindowLocationY(java.lang.String y)
public java.awt.Dimension getTaskWindowSize()
public int getTaskWindowSizeWidth()
public int getTaskWindowSizeHeight()
public void setTaskWindowSize(java.awt.Dimension taskWindowSize)
public void setTaskWindowSizeWidth(java.lang.String width)
public void setTaskWindowSizeHeight(java.lang.String height)
public boolean getMaximized()
public void setMaximized(boolean isMaximized)
public com.vividsolutions.jts.geom.Envelope getSavedViewEnvelope()
public double getTaskWindowZoomLeft()
public double getTaskWindowZoomRight()
public double getTaskWindowZoomBottom()
public double getTaskWindowZoomTop()
public void setSavedViewEnvelope(com.vividsolutions.jts.geom.Envelope savedViewEnvelope)
public void setTaskWindowZoomLeft(java.lang.String left)
public void setTaskWindowZoomRight(java.lang.String right)
public void setTaskWindowZoomBottom(java.lang.String bottom)
public void setTaskWindowZoomTop(java.lang.String top)
top
-