net.sf.mpxj.mpp
Class GanttBarStyle

java.lang.Object
  extended by net.sf.mpxj.mpp.GanttBarCommonStyle
      extended by net.sf.mpxj.mpp.GanttBarStyle

public final class GanttBarStyle
extends GanttBarCommonStyle

This class represents the default style for a Gantt chart bar.


Constructor Summary
GanttBarStyle()
           
 
Method Summary
 void addShowForTasks(GanttBarShowForTasks tasks)
          Adds a Show For criteria entry for this style.
 TaskField getFromField()
          Retrieve the field used to determine the start date of this bar.
 String getName()
          Retrieve the name of this style.
 int getRow()
          Retrieve the row number of this bar.
 Set<GanttBarShowForTasks> getShowForTasks()
          Retrieve set of Show For criteria for this style.
 TaskField getToField()
          Retrieve the field used to determine the end date of this bar.
 void setFromField(TaskField field)
          Set the field used to determine the start date of this bar.
 void setName(String name)
          Sets the name of this style.
 void setRow(int row)
          Sets the row number of this style.
 void setToField(TaskField field)
          Sets the field used to determine the end date of this bar.
 String toString()
          Generate a string representation of this instance.
 
Methods inherited from class net.sf.mpxj.mpp.GanttBarCommonStyle
getBottomText, getEndColor, getEndShape, getEndType, getInsideText, getLeftText, getMiddleColor, getMiddlePattern, getMiddleShape, getRightText, getStartColor, getStartShape, getStartType, getTopText, setBottomText, setEndColor, setEndShape, setEndType, setInsideText, setLeftText, setMiddleColor, setMiddlePattern, setMiddleShape, setRightText, setStartColor, setStartShape, setStartType, setTopText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GanttBarStyle

public GanttBarStyle()
Method Detail

getFromField

public TaskField getFromField()
Retrieve the field used to determine the start date of this bar.

Returns:
from field

setFromField

public void setFromField(TaskField field)
Set the field used to determine the start date of this bar.

Parameters:
field - from field

getName

public String getName()
Retrieve the name of this style.

Returns:
style name

setName

public void setName(String name)
Sets the name of this style.

Parameters:
name - style name

getRow

public int getRow()
Retrieve the row number of this bar.

Returns:
row number

setRow

public void setRow(int row)
Sets the row number of this style.

Parameters:
row - row number

getToField

public TaskField getToField()
Retrieve the field used to determine the end date of this bar.

Returns:
to field

setToField

public void setToField(TaskField field)
Sets the field used to determine the end date of this bar.

Parameters:
field - to field

getShowForTasks

public Set<GanttBarShowForTasks> getShowForTasks()
Retrieve set of Show For criteria for this style.

Returns:
show for criteria

addShowForTasks

public void addShowForTasks(GanttBarShowForTasks tasks)
Adds a Show For criteria entry for this style.

Parameters:
tasks - Show For entry criteria

toString

public String toString()
Generate a string representation of this instance.

Overrides:
toString in class GanttBarCommonStyle
Returns:
string representation of this instance


Copyright © 2012. All Rights Reserved.