Class TimingDiagram
- java.lang.Object
-
- net.sourceforge.plantuml.AbstractPSystem
-
- net.sourceforge.plantuml.TitledDiagram
-
- net.sourceforge.plantuml.UmlDiagram
-
- net.sourceforge.plantuml.timingdiagram.TimingDiagram
-
- All Implemented Interfaces:
Annotated,Diagram,Clocks,WithSprite
public class TimingDiagram extends UmlDiagram implements Clocks
-
-
Field Summary
Fields Modifier and Type Field Description static doublemarginX1-
Fields inherited from class net.sourceforge.plantuml.TitledDiagram
FORCE_SMETANA
-
-
Constructor Summary
Constructors Constructor Description TimingDiagram()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddTime(TimeTick time, java.lang.String code)PlayerAnalogcreateAnalog(java.lang.String code, java.lang.String full, boolean compact)CommandExecutionResultcreateBinary(java.lang.String code, java.lang.String full, boolean compact)CommandExecutionResultcreateClock(java.lang.String code, java.lang.String full, int period, int pulse, boolean compact)CommandExecutionResultcreateRobustConcise(java.lang.String code, java.lang.String full, TimingStyle type, boolean compact)TimeMessagecreateTimeMessage(Player player1, TimeTick time1, Player player2, TimeTick time2, java.lang.String label)protected ImageDataexportDiagramInternal(java.io.OutputStream os, int index, FileFormatOption fileFormatOption)TimeTickgetClockValue(java.lang.String clockName, int nb)TimeTickgetCodeValue(java.lang.String code)DiagramDescriptiongetDescription()PlayergetLastPlayer()TimeTickgetNow()PlayergetPlayer(java.lang.String code)voidgoCompactMode()CommandExecutionResulthideTimeAxis()CommandExecutionResulthighlight(TimeTick tickFrom, TimeTick tickTo, Display caption, Colors colors)voidscaleInPixels(long tick, long pixel)voidsetLastPlayer(Player player)voidupdateNow(TimeTick time)-
Methods inherited from class net.sourceforge.plantuml.UmlDiagram
exportCmap, exportDiagramError, exportDiagramNow, getAnimation, getFailureText2, getFlashData, getFooterOrHeaderTeoz, getMinwidth, getWarningOrError, isHideUnlinkedData, isRotation, setAnimation, setHideEmptyDescription, setHideUnlinkedData, setMinwidth, setRotation
-
Methods inherited from class net.sourceforge.plantuml.TitledDiagram
addSprite, getCaption, getCurrentStyleBuilder, getFooter, getHeader, getLegend, getMainFrame, getPragma, getScaleCoef, getSkinParam, getTitle, getUmlDiagramType, isUseSmetana, loadSkin, setCaption, setLegend, setMainFrame, setParam, setTitle, setUseSmetana
-
Methods inherited from class net.sourceforge.plantuml.AbstractPSystem
checkFinalError, executeCommand, exportDiagram, getMetadata, getNbImages, getScale, getSource, hasUrl, isOk, makeDiagramReady, seed, setScale, setSource
-
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.Annotated
getCaption, getFooter, getHeader, getLegend, getMainFrame, getTitle
-
Methods inherited from interface net.sourceforge.plantuml.core.Diagram
exportDiagram, getMetadata, getNbImages, getSource, hasUrl
-
Methods inherited from interface net.sourceforge.plantuml.WithSprite
addSprite
-
-
-
-
Field Detail
-
marginX1
public static final double marginX1
- See Also:
- Constant Field Values
-
-
Method Detail
-
getDescription
public DiagramDescription getDescription()
- Specified by:
getDescriptionin interfaceDiagram
-
exportDiagramInternal
protected ImageData exportDiagramInternal(java.io.OutputStream os, int index, FileFormatOption fileFormatOption) throws java.io.IOException
- Specified by:
exportDiagramInternalin classUmlDiagram- Throws:
java.io.IOException
-
createRobustConcise
public CommandExecutionResult createRobustConcise(java.lang.String code, java.lang.String full, TimingStyle type, boolean compact)
-
createClock
public CommandExecutionResult createClock(java.lang.String code, java.lang.String full, int period, int pulse, boolean compact)
-
createAnalog
public PlayerAnalog createAnalog(java.lang.String code, java.lang.String full, boolean compact)
-
createBinary
public CommandExecutionResult createBinary(java.lang.String code, java.lang.String full, boolean compact)
-
createTimeMessage
public TimeMessage createTimeMessage(Player player1, TimeTick time1, Player player2, TimeTick time2, java.lang.String label)
-
addTime
public void addTime(TimeTick time, java.lang.String code)
-
getCodeValue
public TimeTick getCodeValue(java.lang.String code)
- Specified by:
getCodeValuein interfaceClocks
-
updateNow
public void updateNow(TimeTick time)
-
getPlayer
public Player getPlayer(java.lang.String code)
-
getClockValue
public TimeTick getClockValue(java.lang.String clockName, int nb)
- Specified by:
getClockValuein interfaceClocks
-
setLastPlayer
public void setLastPlayer(Player player)
-
getLastPlayer
public Player getLastPlayer()
-
scaleInPixels
public void scaleInPixels(long tick, long pixel)
-
hideTimeAxis
public CommandExecutionResult hideTimeAxis()
-
highlight
public CommandExecutionResult highlight(TimeTick tickFrom, TimeTick tickTo, Display caption, Colors colors)
-
goCompactMode
public void goCompactMode()
-
-