org.hackystat.projectbrowser.page.trajectory
Class ProjectRecord

java.lang.Object
  extended by org.hackystat.projectbrowser.page.trajectory.ProjectRecord
All Implemented Interfaces:
java.io.Serializable

public class ProjectRecord
extends java.lang.Object
implements java.io.Serializable

The container for the project and some auxiliary information.

Author:
Pavel Senin.
See Also:
Serialized Form

Constructor Summary
ProjectRecord()
          Constructor.
ProjectRecord(org.hackystat.sensorbase.resource.projects.jaxb.Project project, java.util.Date selectedStartDate, java.util.Date selectedEndDate, java.lang.Integer indent)
          Constructor.
ProjectRecord(org.hackystat.sensorbase.resource.projects.jaxb.Project project, java.lang.Integer indent)
          Constructor.
 
Method Summary
 java.util.Date getEndDate()
          Get the end date for this record.
 java.lang.Integer getIndent()
          Get the indent.
 org.hackystat.sensorbase.resource.projects.jaxb.Project getProject()
          Returns the project.
 java.util.Date getStartDate()
          Get the start date for this record.
 java.lang.String getStreamColor()
          Get the stream color to use.
 void setEndDate(long timeInMillis)
          Set the end date for this record.
 void setIndent(java.lang.Integer indent)
          Set the indent.
 void setProject(org.hackystat.sensorbase.resource.projects.jaxb.Project project)
          Set the project.
 void setStartDate(long timeInMillis)
          Set the start date for this record.
 void setStreamColor(java.lang.String color)
          Set the color used for the telemetry trajectory rendering.
 java.lang.String toLabelMessage()
          Prints the debug log message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProjectRecord

public ProjectRecord(org.hackystat.sensorbase.resource.projects.jaxb.Project project,
                     java.util.Date selectedStartDate,
                     java.util.Date selectedEndDate,
                     java.lang.Integer indent)
Constructor.

Parameters:
project - The project.
selectedStartDate - The start date for the interval.
selectedEndDate - The end date for the interval.
indent - The shift.

ProjectRecord

public ProjectRecord(org.hackystat.sensorbase.resource.projects.jaxb.Project project,
                     java.lang.Integer indent)
Constructor.

Parameters:
project - The project.
indent - The shift in days.

ProjectRecord

public ProjectRecord()
Constructor.

Method Detail

getProject

public org.hackystat.sensorbase.resource.projects.jaxb.Project getProject()
Returns the project.

Returns:
The project.

toLabelMessage

public java.lang.String toLabelMessage()
Prints the debug log message.

Returns:
The debug message.

setIndent

public void setIndent(java.lang.Integer indent)
Set the indent.

Parameters:
indent - The indent to set.

getIndent

public java.lang.Integer getIndent()
Get the indent.

Returns:
The indent for the project interval.

setStartDate

public void setStartDate(long timeInMillis)
Set the start date for this record.

Parameters:
timeInMillis - The time to set.

getStartDate

public java.util.Date getStartDate()
Get the start date for this record.

Returns:
The start date for this project.

setEndDate

public void setEndDate(long timeInMillis)
Set the end date for this record.

Parameters:
timeInMillis - The time to set.

getEndDate

public java.util.Date getEndDate()
Get the end date for this record.

Returns:
The end date for this project.

setProject

public void setProject(org.hackystat.sensorbase.resource.projects.jaxb.Project project)
Set the project.

Parameters:
project - The project to set.

setStreamColor

public void setStreamColor(java.lang.String color)
Set the color used for the telemetry trajectory rendering.

Parameters:
color - the color to use.

getStreamColor

public java.lang.String getStreamColor()
Get the stream color to use.

Returns:
the stream color.