net.sf.mpxj.mpp
Class GanttBarCommonStyle

java.lang.Object
  extended by net.sf.mpxj.mpp.GanttBarCommonStyle
Direct Known Subclasses:
GanttBarStyle, GanttBarStyleException

public class GanttBarCommonStyle
extends Object

This class represents common elements of the Gantt char bar styles shared between the normal styles, and the individual task bar exception styles.


Constructor Summary
GanttBarCommonStyle()
           
 
Method Summary
 TaskField getBottomText()
          Retrieve the text appearing at the bottom of the bar.
 Color getEndColor()
          Retrieve the color of the end of the bar.
 GanttBarStartEndShape getEndShape()
          Retrieve the bar end shape.
 GanttBarStartEndType getEndType()
          Retrieve the bar end type.
 TaskField getInsideText()
          Retrieve the text appearing inside the Gantt bar.
 TaskField getLeftText()
          Retrieve the text appearing to the left of the bar.
 Color getMiddleColor()
          Retrieve the color of the middle section of the bar.
 ChartPattern getMiddlePattern()
          Retrieve the pattern appearing in the middle section of the bar.
 GanttBarMiddleShape getMiddleShape()
          Retrieve the shape of the middle section of the bar.
 TaskField getRightText()
          Retrieve the text appearing to the right of the bar.
 Color getStartColor()
          Retrieve the color of the start of the bar.
 GanttBarStartEndShape getStartShape()
          Retrieve the bar start shape.
 GanttBarStartEndType getStartType()
          Retrieve the bar start type.
 TaskField getTopText()
          Retrieve the text which appears above the bar.
 void setBottomText(TaskField field)
          Sets the text appearing at the bottom of the bar.
 void setEndColor(Color color)
          Sets the color of the end of the bar.
 void setEndShape(GanttBarStartEndShape shape)
          Sets the bar end shape.
 void setEndType(GanttBarStartEndType type)
          Sets the bar end type.
 void setInsideText(TaskField field)
          Sets the text appearing inside the Gantt bar.
 void setLeftText(TaskField field)
          Sets the text appearing to the left of the bar.
 void setMiddleColor(Color color)
          Sets the color of the middle section of the bar.
 void setMiddlePattern(ChartPattern pattern)
          Sets the pattern appearing in the middle section of the bar.
 void setMiddleShape(GanttBarMiddleShape shape)
          Sets the shape of the middle section of the bar.
 void setRightText(TaskField field)
          Sets the text appearing to the right of the bar.
 void setStartColor(Color color)
          Sets the color of the start of the bar.
 void setStartShape(GanttBarStartEndShape shape)
          Sets the bar start shape.
 void setStartType(GanttBarStartEndType type)
          Sets the bar start type.
 void setTopText(TaskField field)
          Sets the top text.
 String toString()
          Generate a string representation of this instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GanttBarCommonStyle

public GanttBarCommonStyle()
Method Detail

getBottomText

public TaskField getBottomText()
Retrieve the text appearing at the bottom of the bar.

Returns:
bottom text

setBottomText

public void setBottomText(TaskField field)
Sets the text appearing at the bottom of the bar.

Parameters:
field - bottom text

getEndColor

public Color getEndColor()
Retrieve the color of the end of the bar.

Returns:
end color

setEndColor

public void setEndColor(Color color)
Sets the color of the end of the bar.

Parameters:
color - end color

getInsideText

public TaskField getInsideText()
Retrieve the text appearing inside the Gantt bar.

Returns:
inside text

setInsideText

public void setInsideText(TaskField field)
Sets the text appearing inside the Gantt bar.

Parameters:
field - inside text

getLeftText

public TaskField getLeftText()
Retrieve the text appearing to the left of the bar.

Returns:
left text

setLeftText

public void setLeftText(TaskField field)
Sets the text appearing to the left of the bar.

Parameters:
field - left text

getMiddleColor

public Color getMiddleColor()
Retrieve the color of the middle section of the bar.

Returns:
middle color

setMiddleColor

public void setMiddleColor(Color color)
Sets the color of the middle section of the bar.

Parameters:
color - middle color

getMiddlePattern

public ChartPattern getMiddlePattern()
Retrieve the pattern appearing in the middle section of the bar.

Returns:
middle pattern

setMiddlePattern

public void setMiddlePattern(ChartPattern pattern)
Sets the pattern appearing in the middle section of the bar.

Parameters:
pattern - middle pattern

getMiddleShape

public GanttBarMiddleShape getMiddleShape()
Retrieve the shape of the middle section of the bar.

Returns:
middle shape

setMiddleShape

public void setMiddleShape(GanttBarMiddleShape shape)
Sets the shape of the middle section of the bar.

Parameters:
shape - middle shape

getRightText

public TaskField getRightText()
Retrieve the text appearing to the right of the bar.

Returns:
right text

setRightText

public void setRightText(TaskField field)
Sets the text appearing to the right of the bar.

Parameters:
field - right text

getStartColor

public Color getStartColor()
Retrieve the color of the start of the bar.

Returns:
start color

setStartColor

public void setStartColor(Color color)
Sets the color of the start of the bar.

Parameters:
color - start color

getStartShape

public GanttBarStartEndShape getStartShape()
Retrieve the bar start shape.

Returns:
bar start shape

setStartShape

public void setStartShape(GanttBarStartEndShape shape)
Sets the bar start shape.

Parameters:
shape - start shape

getEndShape

public GanttBarStartEndShape getEndShape()
Retrieve the bar end shape.

Returns:
bar end shape

setEndShape

public void setEndShape(GanttBarStartEndShape shape)
Sets the bar end shape.

Parameters:
shape - end shape

getStartType

public GanttBarStartEndType getStartType()
Retrieve the bar start type.

Returns:
bar start type

setStartType

public void setStartType(GanttBarStartEndType type)
Sets the bar start type.

Parameters:
type - bar start type

getEndType

public GanttBarStartEndType getEndType()
Retrieve the bar end type.

Returns:
bar end type

setEndType

public void setEndType(GanttBarStartEndType type)
Sets the bar end type.

Parameters:
type - bar end type

getTopText

public TaskField getTopText()
Retrieve the text which appears above the bar.

Returns:
top text

setTopText

public void setTopText(TaskField field)
Sets the top text.

Parameters:
field - top text

toString

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

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


Copyright © 2012. All Rights Reserved.