Package net.sourceforge.plantuml.project
Class GanttDiagram
- java.lang.Object
-
- net.sourceforge.plantuml.AbstractPSystem
-
- net.sourceforge.plantuml.TitledDiagram
-
- net.sourceforge.plantuml.project.GanttDiagram
-
- All Implemented Interfaces:
Annotated
,Diagram
,GanttStyle
,ToTaskDraw
,WithSprite
public class GanttDiagram extends TitledDiagram implements ToTaskDraw, WithSprite, GanttStyle
-
-
Field Summary
-
Fields inherited from class net.sourceforge.plantuml.TitledDiagram
FORCE_ELK, FORCE_SMETANA
-
-
Constructor Summary
Constructors Constructor Description GanttDiagram(UmlSource source)
-
Method Summary
-
Methods inherited from class net.sourceforge.plantuml.TitledDiagram
addSprite, calculateBackColor, createImageBuilder, exportDiagramGraphic, getCaption, getCurrentStyleBuilder, getFooter, getHeader, getLegend, getMainFrame, getPragma, getSkinParam, getTitle, getTitleDisplay, getUmlDiagramType, isUseElk, isUseSmetana, loadSkin, muteColorMapper, setCaption, setLegend, setMainFrame, setParam, setTitle, setUseElk, setUseSmetana
-
Methods inherited from class net.sourceforge.plantuml.AbstractPSystem
executeCommand, exportDiagram, getMetadata, getNamespaceSeparator, getNbImages, getScale, getSource, getSplitPagesHorizontal, getSplitPagesVertical, getWarningOrError, hasUrl, isOk, makeDiagramReady, seed, setNamespaceSeparator, setScale, setSplitPagesHorizontal, setSplitPagesVertical
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.sourceforge.plantuml.core.Diagram
exportDiagram, exportDiagramGraphic, getMetadata, getNbImages, getSource, getSplitPagesHorizontal, getSplitPagesVertical, getTitleDisplay, getWarningOrError, hasUrl
-
Methods inherited from interface net.sourceforge.plantuml.WithSprite
addSprite
-
-
-
-
Constructor Detail
-
GanttDiagram
public GanttDiagram(UmlSource source)
-
-
Method Detail
-
changeLanguage
public CommandExecutionResult changeLanguage(java.lang.String lang)
-
getDescription
public DiagramDescription getDescription()
- Specified by:
getDescription
in interfaceDiagram
-
setWeekNumberStrategy
public void setWeekNumberStrategy(DayOfWeek firstDayOfWeek, int minimalDaysInFirstWeek)
-
getDpi
public final int getDpi(FileFormatOption fileFormatOption)
-
exportDiagramNow
protected ImageData exportDiagramNow(java.io.OutputStream os, int index, FileFormatOption fileFormatOption) throws java.io.IOException
- Specified by:
exportDiagramNow
in classAbstractPSystem
- Throws:
java.io.IOException
-
setPrintScale
public void setPrintScale(PrintScale printScale)
-
setFactorScale
public void setFactorScale(double factorScale)
-
checkFinalError
public java.lang.String checkFinalError()
- Overrides:
checkFinalError
in classAbstractPSystem
-
getTextMainBlock
protected TextBlock getTextMainBlock(FileFormatOption fileFormatOption)
- Specified by:
getTextMainBlock
in classTitledDiagram
-
getStyle
public final Style getStyle(SName param)
- Specified by:
getStyle
in interfaceGanttStyle
-
getStyle
public final Style getStyle(SName param1, SName param2)
- Specified by:
getStyle
in interfaceGanttStyle
-
getDefaultStyleDefinitionArrow
public StyleSignatureBasic getDefaultStyleDefinitionArrow()
-
closeDayOfWeek
public void closeDayOfWeek(DayOfWeek day, java.lang.String task)
-
openDayOfWeek
public void openDayOfWeek(DayOfWeek day, java.lang.String task)
-
closeDayAsDate
public void closeDayAsDate(Day day, java.lang.String task)
-
openDayAsDate
public void openDayAsDate(Day day, java.lang.String task)
-
getThenDate
public Day getThenDate()
-
getExistingTask
public Task getExistingTask(java.lang.String id)
-
forceTaskOrder
public GanttConstraint forceTaskOrder(Task task1, Task task2)
-
getOrCreateTask
public Task getOrCreateTask(java.lang.String codeOrShortName, java.lang.String shortName, boolean linkedToPrevious)
-
addSeparator
public void addSeparator(java.lang.String comment)
-
addGroup
public CommandExecutionResult addGroup(java.lang.String name)
-
endGroup
public CommandExecutionResult endGroup()
-
addContraint
public void addContraint(GanttConstraint constraint)
-
getIHtmlColorSet
public HColorSet getIHtmlColorSet()
- Specified by:
getIHtmlColorSet
in interfaceToTaskDraw
-
setProjectStartingDate
public void setProjectStartingDate(Day start)
-
getStartingDate
public Day getStartingDate()
-
getEndingDate
public Day getEndingDate()
-
daysInWeek
public int daysInWeek()
-
isOpen
public boolean isOpen(Day day)
-
affectResource
public boolean affectResource(Task result, java.lang.String description)
-
getResource
public Resource getResource(java.lang.String resourceName)
-
getExistingMoment
public Moment getExistingMoment(java.lang.String id)
-
nameDay
public void nameDay(Day day, java.lang.String name)
-
getToday
public Day getToday()
-
setTodayColors
public void setTodayColors(CenterBorderColor colors)
-
setToday
public CommandExecutionResult setToday(Day date)
-
deleteTask
public CommandExecutionResult deleteTask(Task task)
-
getTaskDraw
public TaskDraw getTaskDraw(Task task)
- Specified by:
getTaskDraw
in interfaceToTaskDraw
-
addNote
public CommandExecutionResult addNote(Display note)
-
getDefaultPlan
public LoadPlanable getDefaultPlan()
- Specified by:
getDefaultPlan
in interfaceToTaskDraw
-
setShowFootbox
public void setShowFootbox(boolean footbox)
-
getDefaultMargins
public ClockwiseTopRightBottomLeft getDefaultMargins()
- Overrides:
getDefaultMargins
in classTitledDiagram
-
setLabelStrategy
public void setLabelStrategy(LabelStrategy strategy)
-
setWithCalendarDate
public void setWithCalendarDate(boolean withCalendarDate)
-
hideResourceName
public CommandExecutionResult hideResourceName()
-
hideResourceFootbox
public CommandExecutionResult hideResourceFootbox()
-
addVerticalSeparatorBefore
public void addVerticalSeparatorBefore(Day day)
-
setTaskDefaultCompletion
public void setTaskDefaultCompletion(int defaultCompletion)
-
getAllTasksForResource
public java.util.List<TaskDrawRegular> getAllTasksForResource(Resource res)
-
setIt
public void setIt(Task result)
-
getIt
public Task getIt()
-
getThey
public final Resource getThey()
-
setThey
public final void setThey(Resource they)
-
-