Package net.atmp
Class CucaDiagram
- java.lang.Object
-
- All Implemented Interfaces:
EntityFactory
,Annotated
,Diagram
,GroupHierarchy
,PortionShower
,WarningHandler
,WithSprite
- Direct Known Subclasses:
AbstractEntityDiagram
,ActivityDiagram
public abstract class CucaDiagram extends UmlDiagram implements GroupHierarchy, PortionShower, EntityFactory
-
-
Field Summary
-
Fields inherited from class net.sourceforge.plantuml.TitledDiagram
FORCE_ELK, FORCE_SMETANA
-
Fields inherited from interface net.sourceforge.plantuml.cucadiagram.PortionShower
ALL
-
-
Constructor Summary
Constructors Constructor Description CucaDiagram(UmlSource source, UmlDiagramType type, Previous previous, PreprocessingArtifact preprocessing)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
addLink(Link link)
void
applySingleStrategy()
java.lang.String
cleanId(java.lang.String id)
CommandExecutionResult
constraintOnLinks(Link link1, Link link2, Display display)
int
countByName(java.lang.String full)
Entity
createGroup(LineLocation location, Quark<Entity> quark, GroupType groupType)
Entity
createLeaf(LineLocation location, Quark<Entity> quark, CucaDiagram diagram, LeafType entityType, java.util.Set<VisibilityModifier> hideVisibilityModifier)
Together
currentTogether()
boolean
endGroup()
void
exportDiagramGraphic(UGraphic ug, FileFormatOption fileFormatOption)
protected ImageData
exportDiagramInternal(java.io.OutputStream os, int index, FileFormatOption fileFormatOption)
Quark<Entity>
firstWithName(java.lang.String full)
java.util.Collection<Entity>
getChildrenGroups(Entity entity)
Entity
getCurrentGroup()
ClockwiseTopRightBottomLeft
getDefaultMargins()
protected abstract java.util.List<java.lang.String>
getDotStrings()
java.lang.String[]
getDotStringSkek()
Entity
getGroup(java.lang.String code)
java.util.Set<VisibilityModifier>
getHidesVisibilityModifier()
java.lang.String
getLabelangle()
java.lang.String
getLabeldistance()
Entity
getLastEntity()
Link
getLastLink()
java.util.List<Link>
getLinks()
java.lang.String
getPortFor(java.lang.String entString, Quark<Entity> ident)
java.lang.String
getPortId(java.lang.String id)
Entity
getRootGroup()
protected TextBlock
getTextMainBlock(FileFormatOption fileFormatOption)
java.util.List<Link>
getTwoLastLinks()
java.lang.String
getUniqueSequence(java.lang.String prefix)
java.lang.String
getUniqueSequence2(java.lang.String prefix)
int
getUniqueSequenceValue()
java.util.List<java.lang.String>
getVisibleStereotypeLabels(Entity entity)
java.lang.String
getWarningOrError()
CommandExecutionResult
gotoGroup(LineLocation location, Quark<Entity> quark, Display display, GroupType type)
CommandExecutionResult
gotoGroup(LineLocation location, Quark<Entity> quark, Display display, GroupType type, USymbol usymbol)
CommandExecutionResult
gotoTogether()
java.util.Collection<Entity>
groups()
java.util.Collection<Entity>
groupsAndRoot()
boolean
hasUrl()
Check if the Diagram have some links.void
hideOrShow(EntityGender gender, EntityPortion portions, boolean show)
void
hideOrShow2(java.lang.String what, boolean show)
void
hideOrShowVisibilityModifier(java.util.Set<VisibilityModifier> visibilities, boolean show)
void
incRawLayout()
boolean
isEmpty(Entity entity)
boolean
isGroup(java.lang.String code)
boolean
isGroup(Quark<Entity> quark)
boolean
isHidden(Entity leaf)
boolean
isHideEmptyDescriptionForState()
boolean
isRemoved(Entity leaf)
boolean
isRemovedIgnoreUnlinked(Entity leaf)
boolean
isStandalone(Entity ent)
boolean
isStandaloneForArgo(Entity ent)
boolean
isStereotypeRemoved(Stereotype stereotype)
boolean
isVisibilityModifierPresent()
java.util.Collection<Entity>
leafs()
Quark<Entity>
quarkInContext(boolean reuseExistingChild, java.lang.String full)
Failable<Quark<Entity>>
quarkInContextSafe(boolean reuseExistingChild, java.lang.String full)
java.util.Collection<Quark<Entity>>
quarks()
Entity
reallyCreateLeaf(LineLocation location, Quark<Entity> ident, Display display, LeafType type, USymbol symbol)
void
removeLink(Link link)
void
removeOrRestore(java.lang.String what, boolean show)
java.lang.String
removePortId(java.lang.String id)
void
resetPragmaLabel()
void
setLastEntity(Entity last)
void
setNamespaceSeparator(java.lang.String namespaceSeparator)
void
setSeparator(java.lang.String namespaceSeparator)
void
setVisibilityModifierPresent(boolean visibilityModifierPresent)
boolean
showPortion(EntityPortion portion, Entity entity)
void
startingPass(ParserPass pass)
protected void
updateLasts(Entity result)
-
Methods inherited from class net.sourceforge.plantuml.UmlDiagram
exportCmap, exportDiagramError, exportDiagramNow, getFailureText2, getFlashData, getFooterOrHeaderTeoz, getMinwidth, getPrevious, isRotation, setHideEmptyDescription, setMinwidth, setRotation
-
Methods inherited from class net.sourceforge.plantuml.TitledDiagram
addSprite, addWarning, calculateBackColor, createImageBuilder, getCaption, getCurrentStyleBuilder, getFooter, getHeader, getLegend, getMainFrame, getPragma, getSkinParam, getTitle, getTitleDisplay, getUmlDiagramType, getWarnings, isUseElk, isUseSmetana, loadSkin, muteColorMapper, setCaption, setLegend, setMainFrame, setParam, setTitle, setUseElk, setUseSmetana
-
Methods inherited from class net.sourceforge.plantuml.AbstractPSystem
checkFinalError, executeCommand, exportDiagram, getMetadata, getNamespaceSeparator, getNbImages, getPreprocessingArtifact, getRequiredPass, getScale, getSource, getSplitPagesHorizontal, getSplitPagesVertical, isOk, makeDiagramReady, seed, 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.Annotated
getCaption, getFooter, getHeader, getLegend, getMainFrame, getTitle
-
Methods inherited from interface net.sourceforge.plantuml.core.Diagram
exportDiagram, getDescription, getMetadata, getNbImages, getSource, getSplitPagesHorizontal, getSplitPagesVertical, getTitleDisplay
-
Methods inherited from interface net.sourceforge.plantuml.abel.EntityFactory
getSkinParam, getUmlDiagramType
-
Methods inherited from interface net.sourceforge.plantuml.WithSprite
addSprite
-
-
-
-
Constructor Detail
-
CucaDiagram
public CucaDiagram(UmlSource source, UmlDiagramType type, Previous previous, PreprocessingArtifact preprocessing)
-
-
Method Detail
-
setNamespaceSeparator
public final void setNamespaceSeparator(java.lang.String namespaceSeparator)
- Overrides:
setNamespaceSeparator
in classAbstractPSystem
-
startingPass
public void startingPass(ParserPass pass)
- Overrides:
startingPass
in classAbstractPSystem
-
getCurrentGroup
public final Entity getCurrentGroup()
-
currentTogether
public final Together currentTogether()
-
cleanId
public java.lang.String cleanId(java.lang.String id)
-
hasUrl
public boolean hasUrl()
Description copied from interface:Diagram
Check if the Diagram have some links.- Specified by:
hasUrl
in interfaceDiagram
- Overrides:
hasUrl
in classAbstractPSystem
-
setLastEntity
public final void setLastEntity(Entity last)
-
updateLasts
protected void updateLasts(Entity result)
-
reallyCreateLeaf
public final Entity reallyCreateLeaf(LineLocation location, Quark<Entity> ident, Display display, LeafType type, USymbol symbol)
-
quarkInContext
public final Quark<Entity> quarkInContext(boolean reuseExistingChild, java.lang.String full)
-
quarkInContextSafe
public final Failable<Quark<Entity>> quarkInContextSafe(boolean reuseExistingChild, java.lang.String full)
-
removePortId
public java.lang.String removePortId(java.lang.String id)
-
getPortId
public java.lang.String getPortId(java.lang.String id)
-
getChildrenGroups
public final java.util.Collection<Entity> getChildrenGroups(Entity entity)
- Specified by:
getChildrenGroups
in interfaceGroupHierarchy
-
gotoTogether
public final CommandExecutionResult gotoTogether()
-
gotoGroup
public final CommandExecutionResult gotoGroup(LineLocation location, Quark<Entity> quark, Display display, GroupType type)
-
gotoGroup
public final CommandExecutionResult gotoGroup(LineLocation location, Quark<Entity> quark, Display display, GroupType type, USymbol usymbol)
-
endGroup
public boolean endGroup()
-
getGroup
public final Entity getGroup(java.lang.String code)
-
isGroup
public final boolean isGroup(java.lang.String code)
-
getDotStrings
protected abstract java.util.List<java.lang.String> getDotStrings()
-
getDotStringSkek
public final java.lang.String[] getDotStringSkek()
-
exportDiagramGraphic
public final void exportDiagramGraphic(UGraphic ug, FileFormatOption fileFormatOption)
- Specified by:
exportDiagramGraphic
in interfaceDiagram
- Overrides:
exportDiagramGraphic
in classTitledDiagram
-
getTextMainBlock
protected final TextBlock getTextMainBlock(FileFormatOption fileFormatOption)
- Specified by:
getTextMainBlock
in classTitledDiagram
-
exportDiagramInternal
protected ImageData exportDiagramInternal(java.io.OutputStream os, int index, FileFormatOption fileFormatOption) throws java.io.IOException
- Specified by:
exportDiagramInternal
in classUmlDiagram
- Throws:
java.io.IOException
-
getWarningOrError
public java.lang.String getWarningOrError()
- Specified by:
getWarningOrError
in interfaceDiagram
- Overrides:
getWarningOrError
in classUmlDiagram
-
resetPragmaLabel
public void resetPragmaLabel()
-
getLabeldistance
public java.lang.String getLabeldistance()
-
getLabelangle
public java.lang.String getLabelangle()
-
isEmpty
public final boolean isEmpty(Entity entity)
- Specified by:
isEmpty
in interfaceGroupHierarchy
-
isVisibilityModifierPresent
public final boolean isVisibilityModifierPresent()
-
setVisibilityModifierPresent
public final void setVisibilityModifierPresent(boolean visibilityModifierPresent)
-
showPortion
public final boolean showPortion(EntityPortion portion, Entity entity)
- Specified by:
showPortion
in interfacePortionShower
-
hideOrShowVisibilityModifier
public void hideOrShowVisibilityModifier(java.util.Set<VisibilityModifier> visibilities, boolean show)
-
getVisibleStereotypeLabels
public java.util.List<java.lang.String> getVisibleStereotypeLabels(Entity entity)
- Specified by:
getVisibleStereotypeLabels
in interfacePortionShower
-
hideOrShow
public final void hideOrShow(EntityGender gender, EntityPortion portions, boolean show)
-
hideOrShow2
public void hideOrShow2(java.lang.String what, boolean show)
-
removeOrRestore
public void removeOrRestore(java.lang.String what, boolean show)
-
getHidesVisibilityModifier
public final java.util.Set<VisibilityModifier> getHidesVisibilityModifier()
-
isStandalone
public final boolean isStandalone(Entity ent)
-
isStandaloneForArgo
public final boolean isStandaloneForArgo(Entity ent)
-
getLastLink
public final Link getLastLink()
-
getTwoLastLinks
public final java.util.List<Link> getTwoLastLinks()
-
getLastEntity
public final Entity getLastEntity()
-
applySingleStrategy
public void applySingleStrategy()
-
isHideEmptyDescriptionForState
public boolean isHideEmptyDescriptionForState()
- Specified by:
isHideEmptyDescriptionForState
in interfaceEntityFactory
-
constraintOnLinks
public CommandExecutionResult constraintOnLinks(Link link1, Link link2, Display display)
-
getDefaultMargins
public ClockwiseTopRightBottomLeft getDefaultMargins()
- Overrides:
getDefaultMargins
in classTitledDiagram
-
getUniqueSequenceValue
public int getUniqueSequenceValue()
-
getUniqueSequence
public java.lang.String getUniqueSequence(java.lang.String prefix)
-
getUniqueSequence2
public java.lang.String getUniqueSequence2(java.lang.String prefix)
-
isStereotypeRemoved
public boolean isStereotypeRemoved(Stereotype stereotype)
-
isHidden
public boolean isHidden(Entity leaf)
-
isRemoved
public boolean isRemoved(Entity leaf)
-
isRemovedIgnoreUnlinked
public boolean isRemovedIgnoreUnlinked(Entity leaf)
-
createLeaf
public final Entity createLeaf(LineLocation location, Quark<Entity> quark, CucaDiagram diagram, LeafType entityType, java.util.Set<VisibilityModifier> hideVisibilityModifier)
-
createGroup
public Entity createGroup(LineLocation location, Quark<Entity> quark, GroupType groupType)
-
leafs
public final java.util.Collection<Entity> leafs()
-
groups
public final java.util.Collection<Entity> groups()
- Specified by:
groups
in interfaceEntityFactory
-
groupsAndRoot
public final java.util.Collection<Entity> groupsAndRoot()
-
incRawLayout
public void incRawLayout()
-
getLinks
public final java.util.List<Link> getLinks()
-
addLink
public void addLink(Link link)
-
removeLink
public void removeLink(Link link)
-
getRootGroup
public Entity getRootGroup()
- Specified by:
getRootGroup
in interfaceEntityFactory
- Specified by:
getRootGroup
in interfaceGroupHierarchy
-
setSeparator
public void setSeparator(java.lang.String namespaceSeparator)
-
countByName
public int countByName(java.lang.String full)
-
-