apps.projectmanagement.component.ganttchart
Class TaskRow

java.lang.Object
  extended by apps.projectmanagement.component.ganttchart.TaskRow

public class TaskRow
extends java.lang.Object

The Class TaskRow.


Nested Class Summary
static interface TaskRow.TaskRowCommandListener
          The listener interface for receiving taskRowCommand events.
 
Constructor Summary
TaskRow(com.jme.scene.Node rootNode, ContentSystem contentSystem, Window periodBarParent, Window taskBarParent, float rowHeigth, float lengthPerDay, com.jme.math.Vector2f orgin)
          Instantiates a new task row.
 
Method Summary
 void addTaskRowCommandListener(TaskRow.TaskRowCommandListener l)
          Adds the task row command listener.
 void clear()
          Clear.
 int getDays()
          Gets the days.
 Frame getPeriodBar()
          Gets the period bar.
 float getPeriodBarWidth()
          Gets the period bar width.
 int getStartDay()
          Gets the start day.
 void removeMenuCommandListener(Menu.MenuCommandListener l)
          Removes the menu command listener.
 void setRowIndex(int rowIndex)
          Sets the row index.
 void setStartDay(int startDay)
          Sets the start day.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TaskRow

public TaskRow(com.jme.scene.Node rootNode,
               ContentSystem contentSystem,
               Window periodBarParent,
               Window taskBarParent,
               float rowHeigth,
               float lengthPerDay,
               com.jme.math.Vector2f orgin)
Instantiates a new task row.

Parameters:
rootNode - the root node
contentSystem - the content system
periodBarParent - the period bar parent
taskBarParent - the task bar parent
rowHeigth - the row heigth
lengthPerDay - the length per day
orgin - the orgin
Method Detail

addTaskRowCommandListener

public void addTaskRowCommandListener(TaskRow.TaskRowCommandListener l)
Adds the task row command listener.

Parameters:
l - the l

clear

public void clear()
Clear.


getDays

public int getDays()
Gets the days.

Returns:
the days

getPeriodBar

public Frame getPeriodBar()
Gets the period bar.

Returns:
the period bar

getPeriodBarWidth

public float getPeriodBarWidth()
Gets the period bar width.

Returns:
the period bar width

getStartDay

public int getStartDay()
Gets the start day.

Returns:
the start day

removeMenuCommandListener

public void removeMenuCommandListener(Menu.MenuCommandListener l)
Removes the menu command listener.

Parameters:
l - the l

setRowIndex

public void setRowIndex(int rowIndex)
Sets the row index.

Parameters:
rowIndex - the new row index

setStartDay

public void setStartDay(int startDay)
Sets the start day.

Parameters:
startDay - the new start day