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 voidaddLink(Link link)voidapplySingleStrategy()java.lang.StringcleanId(java.lang.String id)CommandExecutionResultconstraintOnLinks(Link link1, Link link2, Display display)intcountByName(java.lang.String full)EntitycreateGroup(LineLocation location, Quark<Entity> quark, GroupType groupType)EntitycreateLeaf(LineLocation location, Quark<Entity> quark, CucaDiagram diagram, LeafType entityType, java.util.Set<VisibilityModifier> hideVisibilityModifier)TogethercurrentTogether()booleanendGroup()voidexportDiagramGraphic(UGraphic ug, FileFormatOption fileFormatOption)protected ImageDataexportDiagramInternal(java.io.OutputStream os, int index, FileFormatOption fileFormatOption)Quark<Entity>firstWithName(java.lang.String full)java.util.Collection<Entity>getChildrenGroups(Entity entity)EntitygetCurrentGroup()ClockwiseTopRightBottomLeftgetDefaultMargins()protected abstract java.util.List<java.lang.String>getDotStrings()java.lang.String[]getDotStringSkek()EntitygetGroup(java.lang.String code)java.util.Set<VisibilityModifier>getHidesVisibilityModifier()java.lang.StringgetLabelangle()java.lang.StringgetLabeldistance()EntitygetLastEntity()LinkgetLastLink()java.util.List<Link>getLinks()java.lang.StringgetPortFor(java.lang.String entString, Quark<Entity> ident)java.lang.StringgetPortId(java.lang.String id)EntitygetRootGroup()protected TextBlockgetTextMainBlock(FileFormatOption fileFormatOption)java.util.List<Link>getTwoLastLinks()java.lang.StringgetUniqueSequence(java.lang.String prefix)java.lang.StringgetUniqueSequence2(java.lang.String prefix)intgetUniqueSequenceValue()java.util.List<java.lang.String>getVisibleStereotypeLabels(Entity entity)java.lang.StringgetWarningOrError()CommandExecutionResultgotoGroup(LineLocation location, Quark<Entity> quark, Display display, GroupType type)CommandExecutionResultgotoGroup(LineLocation location, Quark<Entity> quark, Display display, GroupType type, USymbol usymbol)CommandExecutionResultgotoTogether()java.util.Collection<Entity>groups()java.util.Collection<Entity>groupsAndRoot()booleanhasUrl()Check if the Diagram have some links.voidhideOrShow(EntityGender gender, EntityPortion portions, boolean show)voidhideOrShow2(java.lang.String what, boolean show)voidhideOrShowVisibilityModifier(java.util.Set<VisibilityModifier> visibilities, boolean show)voidincRawLayout()booleanisEmpty(Entity entity)booleanisGroup(java.lang.String code)booleanisGroup(Quark<Entity> quark)booleanisHidden(Entity leaf)booleanisHideEmptyDescriptionForState()booleanisRemoved(Entity leaf)booleanisRemovedIgnoreUnlinked(Entity leaf)booleanisStandalone(Entity ent)booleanisStandaloneForArgo(Entity ent)booleanisStereotypeRemoved(Stereotype stereotype)booleanisVisibilityModifierPresent()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()EntityreallyCreateLeaf(LineLocation location, Quark<Entity> ident, Display display, LeafType type, USymbol symbol)voidremoveLink(Link link)voidremoveOrRestore(java.lang.String what, boolean show)java.lang.StringremovePortId(java.lang.String id)voidresetPragmaLabel()voidsetLastEntity(Entity last)voidsetNamespaceSeparator(java.lang.String namespaceSeparator)voidsetSeparator(java.lang.String namespaceSeparator)voidsetVisibilityModifierPresent(boolean visibilityModifierPresent)booleanshowPortion(EntityPortion portion, Entity entity)voidstartingPass(ParserPass pass)protected voidupdateLasts(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:
setNamespaceSeparatorin classAbstractPSystem
-
startingPass
public void startingPass(ParserPass pass)
- Overrides:
startingPassin 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:DiagramCheck if the Diagram have some links.- Specified by:
hasUrlin interfaceDiagram- Overrides:
hasUrlin 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:
getChildrenGroupsin 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:
exportDiagramGraphicin interfaceDiagram- Overrides:
exportDiagramGraphicin classTitledDiagram
-
getTextMainBlock
protected final TextBlock getTextMainBlock(FileFormatOption fileFormatOption)
- Specified by:
getTextMainBlockin classTitledDiagram
-
exportDiagramInternal
protected ImageData exportDiagramInternal(java.io.OutputStream os, int index, FileFormatOption fileFormatOption) throws java.io.IOException
- Specified by:
exportDiagramInternalin classUmlDiagram- Throws:
java.io.IOException
-
getWarningOrError
public java.lang.String getWarningOrError()
- Specified by:
getWarningOrErrorin interfaceDiagram- Overrides:
getWarningOrErrorin 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:
isEmptyin interfaceGroupHierarchy
-
isVisibilityModifierPresent
public final boolean isVisibilityModifierPresent()
-
setVisibilityModifierPresent
public final void setVisibilityModifierPresent(boolean visibilityModifierPresent)
-
showPortion
public final boolean showPortion(EntityPortion portion, Entity entity)
- Specified by:
showPortionin 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:
getVisibleStereotypeLabelsin 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:
isHideEmptyDescriptionForStatein interfaceEntityFactory
-
constraintOnLinks
public CommandExecutionResult constraintOnLinks(Link link1, Link link2, Display display)
-
getDefaultMargins
public ClockwiseTopRightBottomLeft getDefaultMargins()
- Overrides:
getDefaultMarginsin 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:
groupsin 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:
getRootGroupin interfaceEntityFactory- Specified by:
getRootGroupin interfaceGroupHierarchy
-
setSeparator
public void setSeparator(java.lang.String namespaceSeparator)
-
countByName
public int countByName(java.lang.String full)
-
-