|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sourceforge.ganttproject.GanttTask
Class that generate a task
Field Summary | |
static int |
HIGHT
|
static int |
LOW
|
static int |
NORMAL
|
Constructor Summary | |
GanttTask(java.lang.String name,
GanttCalendar start,
int length)
Constructor |
Method Summary | |
void |
addNotes(java.lang.String note)
Add notes |
void |
addPredecessor(GanttTaskRelationship predecessor)
add one predecessor |
void |
addSuccessor(GanttTaskRelationship successor)
add one successor |
void |
cleanUsers()
|
GanttTask |
Clone()
clone the GanttTask |
boolean |
colorDefined()
Allows to determine, if a special color is defined for this task. |
java.util.Hashtable |
findUser(HumanResource user)
Looks for a given user object in this task. |
boolean |
getBilan()
Is it a meeting point?? |
java.awt.Color |
getColor()
|
GanttCalendar |
getEnd()
Return the end date |
java.lang.String |
getID()
return the identity of the task |
int |
getLength()
Return the duration |
java.lang.String |
getName()
|
java.lang.String |
getNotes()
Return the notes |
int |
getPercent()
Return the state |
java.util.Vector |
getPredecessors()
|
int |
getPriority()
Return the priority of the task |
ShapePaint |
getShape()
Return the shape of the task |
GanttCalendar |
getStart()
Return the begining |
java.util.Vector |
getSuccessors()
get all the successors |
static GanttTask |
getTaskByTaskID(int taskID)
max ID in the allTasksMap |
int |
getTaskID()
|
java.util.ArrayList |
getUserNames()
|
java.util.ArrayList |
getUsersList()
Return the list of the user assigned to |
void |
indentID(java.lang.String parent)
Indent the id of the task |
boolean |
isChecked()
return true if the realtionship between this task and others has been checked |
boolean |
isIn(HumanResource user)
|
java.lang.String |
nextID()
Return the next id of the task |
java.lang.String |
prevID()
Return the previous id of the task |
void |
refreshDateAndAdvancement(GanttTree tree)
This function calculate the begin of a task in function of the sub taks. |
void |
removePredecessor(GanttTaskRelationship r)
|
void |
removeSuccessor(GanttTaskRelationship r)
|
void |
removeUser(HumanResource user)
Remove the user u_name from the task's user list |
void |
replaceOldSuccessor(GanttTaskRelationship oldRel,
GanttTaskRelationship newRel)
supposed method that replaces checkDepend(String t, String n) replace the old successor (oldRel) with new one (newRel) |
void |
setBilan(boolean b)
Change meeting point |
void |
setChecked(boolean checked)
set the checked state of task: true if the relationship has been check. or else, false |
void |
setColor(java.awt.Color color)
|
void |
setEnd(GanttCalendar e)
Change the end of the date and the length indead |
void |
setID(java.lang.String newID)
Change the identity of the task |
void |
setLength(int l)
Change the duration |
void |
setName(java.lang.String name)
Change the name |
void |
setNotes(java.lang.String note)
Change notes |
void |
setPercent(int percent)
Change state |
void |
setPredecessors(java.util.Vector predecessors)
set all the predecessors |
void |
setPriority(int p)
Set the priority for the task |
void |
setResources(java.util.ArrayList resources)
|
void |
setShape(ShapePaint newShape)
Set a new shape for the task |
void |
setStart(GanttCalendar s)
Change the begining |
void |
setSuccessors(java.util.Vector successors)
set all the successors |
void |
setTaskID(int taskID)
set the task ID. the uniquness of ID should be check before using this method |
boolean |
shapeDefined()
Allows to determine, if a special shape is defined for this task. |
void |
taskUser(HumanResource user,
int load)
This adds a user to a task. |
java.lang.String |
toString()
Return the name. |
void |
unlink()
Unlink the task from all relashionship |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static int LOW
public static int NORMAL
public static int HIGHT
Constructor Detail |
public GanttTask(java.lang.String name, GanttCalendar start, int length)
Method Detail |
public GanttTask Clone()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getName()
public java.lang.String getID()
public void setID(java.lang.String newID)
public void indentID(java.lang.String parent)
public java.lang.String nextID()
public java.lang.String prevID()
public ShapePaint getShape()
public void setShape(ShapePaint newShape)
public int getLength()
public boolean shapeDefined()
public GanttCalendar getStart()
public GanttCalendar getEnd()
public java.lang.String getNotes()
public int getPercent()
public boolean getBilan()
public int getPriority()
public void setName(java.lang.String name)
public void setLength(int l)
public void setStart(GanttCalendar s)
public void setEnd(GanttCalendar e)
public void setNotes(java.lang.String note)
public void addNotes(java.lang.String note)
public void setPercent(int percent)
public void setBilan(boolean b)
public void setPriority(int p)
public void replaceOldSuccessor(GanttTaskRelationship oldRel, GanttTaskRelationship newRel)
oldRel
- old successornewRel
- new relationshippublic void refreshDateAndAdvancement(GanttTree tree)
public java.util.ArrayList getUsersList()
public void taskUser(HumanResource user, int load)
user
- is the HumanResource object that represents a
user.load
- is the load this task produes on the resource represented
through the user object.public void removeUser(HumanResource user)
public java.util.Hashtable findUser(HumanResource user)
user
- the user the method should search for
public void cleanUsers()
public java.util.ArrayList getUserNames()
public boolean isIn(HumanResource user)
public java.awt.Color getColor()
public void setColor(java.awt.Color color)
color
- New color for this task or null for default colorpublic boolean colorDefined()
public java.util.Vector getSuccessors()
public void setSuccessors(java.util.Vector successors)
public void addSuccessor(GanttTaskRelationship successor)
public void setPredecessors(java.util.Vector predecessors)
public void setResources(java.util.ArrayList resources)
public void addPredecessor(GanttTaskRelationship predecessor)
public java.util.Vector getPredecessors()
public void unlink()
public void removeSuccessor(GanttTaskRelationship r)
public void removePredecessor(GanttTaskRelationship r)
public boolean isChecked()
public void setChecked(boolean checked)
public static GanttTask getTaskByTaskID(int taskID)
public int getTaskID()
public void setTaskID(int taskID)
taskID
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |