Package net.atmp
Class CucaDiagram
- java.lang.Object
-
- All Implemented Interfaces:
Annotated,Diagram,GroupHierarchy,ICucaDiagram,PortionShower,WithSprite
- Direct Known Subclasses:
AbstractEntityDiagram,ActivityDiagram
public abstract class CucaDiagram extends UmlDiagram implements GroupHierarchy, PortionShower, ICucaDiagram
-
-
Field Summary
Fields Modifier and Type Field Description protected EntityFactoryentityFactoryprotected EntitylastEntity-
Fields inherited from class net.sourceforge.plantuml.TitledDiagram
FORCE_ELK, FORCE_SMETANA
-
-
Constructor Summary
Constructors Constructor Description CucaDiagram(UmlSource source, UmlDiagramType type, java.util.Map<java.lang.String,java.lang.String> orig)
-
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)TogethercurrentTogether()booleanendGroup()voidexportDiagramGraphic(UGraphic ug)protected ImageDataexportDiagramInternal(java.io.OutputStream os, int index, FileFormatOption fileFormatOption)Quark<Entity>firstWithName(java.lang.String name)java.util.Collection<Entity>getChildrenGroups(Entity entity)EntitygetCurrentGroup()ClockwiseTopRightBottomLeftgetDefaultMargins()protected abstract java.util.List<java.lang.String>getDotStrings()java.lang.String[]getDotStringSkek()EntityFactorygetEntityFactory()EntitygetGroup(java.lang.String code)java.util.Set<VisibilityModifier>getHides()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 TextBlockgetTextBlock()java.util.List<Link>getTwoLastLinks()intgetUniqueSequence()java.lang.StringgetUniqueSequence(java.lang.String prefix)java.lang.StringgetWarningOrError()CommandExecutionResultgotoGroup(Quark<Entity> quark, Display display, GroupType type)CommandExecutionResultgotoTogether()booleanhasUrl()Check if the Diagram have some links.voidhideOrShow(java.util.Set<VisibilityModifier> visibilities, boolean show)voidhideOrShow(EntityGender gender, EntityPortion portions, boolean show)voidhideOrShow2(java.lang.String what, boolean show)protected voidincRawLayout()booleanisEmpty(Entity entity)booleanisGroup(java.lang.String code)booleanisGroup(Quark<Entity> quark)booleanisHideEmptyDescriptionForState()booleanisStandalone(Entity ent)booleanisStandaloneForArgo(Entity ent)booleanisVisibilityModifierPresent()Quark<Entity>quarkInContext(boolean reuseExistingChild, java.lang.String full)EntityreallyCreateLeaf(Quark<Entity> ident, Display display, LeafType type, USymbol symbol)protected voidremoveLink(Link link)voidremoveOrRestore(java.lang.String what, boolean show)java.lang.StringremovePortId(java.lang.String id)voidresetPragmaLabel()voidsetLastEntity(Entity foo)voidsetNamespaceSeparator(java.lang.String namespaceSeparator)voidsetVisibilityModifierPresent(boolean visibilityModifierPresent)booleanshowPortion(EntityPortion portion, Entity entity)protected voidupdateLasts(Entity result)-
Methods inherited from class net.sourceforge.plantuml.UmlDiagram
exportCmap, exportDiagramError, exportDiagramNow, getFailureText2, getFlashData, getFooterOrHeaderTeoz, getMinwidth, isRotation, setHideEmptyDescription, setMinwidth, setRotation
-
Methods inherited from class net.sourceforge.plantuml.TitledDiagram
addSprite, calculateBackColor, createImageBuilder, getAnimation, getCaption, getCurrentStyleBuilder, getFooter, getHeader, getLegend, getMainFrame, getPragma, getSkinParam, getTitle, getTitleDisplay, getUmlDiagramType, isUseElk, isUseSmetana, loadSkin, muteColorMapper, setAnimation, setCaption, setLegend, setMainFrame, setParam, setTitle, setUseElk, setUseSmetana
-
Methods inherited from class net.sourceforge.plantuml.AbstractPSystem
checkFinalError, executeCommand, exportDiagram, getMetadata, getNamespaceSeparator, getNbImages, 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.cucadiagram.ICucaDiagram
createImageBuilder, getCurrentStyleBuilder, getFlashData, getMetadata, getNamespaceSeparator, getPragma, getSkinParam, getSource, getUmlDiagramType, seed
-
Methods inherited from interface net.sourceforge.plantuml.WithSprite
addSprite
-
-
-
-
Field Detail
-
entityFactory
protected final EntityFactory entityFactory
-
lastEntity
protected Entity lastEntity
-
-
Constructor Detail
-
CucaDiagram
public CucaDiagram(UmlSource source, UmlDiagramType type, java.util.Map<java.lang.String,java.lang.String> orig)
-
-
Method Detail
-
setNamespaceSeparator
public final void setNamespaceSeparator(java.lang.String namespaceSeparator)
- Overrides:
setNamespaceSeparatorin 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 foo)
-
updateLasts
protected void updateLasts(Entity result)
-
reallyCreateLeaf
public final Entity reallyCreateLeaf(Quark<Entity> ident, Display display, LeafType type, USymbol symbol)
-
quarkInContext
public final Quark<Entity> quarkInContext(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(Quark<Entity> quark, Display display, GroupType type)
-
endGroup
public boolean endGroup()
-
getGroup
public final Entity getGroup(java.lang.String code)
-
isGroup
public final boolean isGroup(java.lang.String code)
-
getRootGroup
public Entity getRootGroup()
- Specified by:
getRootGroupin interfaceGroupHierarchy
-
addLink
public final void addLink(Link link)
-
removeLink
protected final void removeLink(Link link)
-
getLinks
public final java.util.List<Link> getLinks()
- Specified by:
getLinksin interfaceICucaDiagram
-
getDotStrings
protected abstract java.util.List<java.lang.String> getDotStrings()
-
getDotStringSkek
public final java.lang.String[] getDotStringSkek()
- Specified by:
getDotStringSkekin interfaceICucaDiagram
-
exportDiagramGraphic
public final void exportDiagramGraphic(UGraphic ug)
- Specified by:
exportDiagramGraphicin interfaceDiagram- Overrides:
exportDiagramGraphicin classTitledDiagram
-
getTextBlock
protected final TextBlock getTextBlock()
- Specified by:
getTextBlockin 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
-
hideOrShow
public final void hideOrShow(EntityGender gender, EntityPortion portions, boolean show)
-
hideOrShow
public void hideOrShow(java.util.Set<VisibilityModifier> visibilities, boolean show)
-
hideOrShow2
public void hideOrShow2(java.lang.String what, boolean show)
-
removeOrRestore
public void removeOrRestore(java.lang.String what, boolean show)
-
getHides
public final java.util.Set<VisibilityModifier> getHides()
-
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()
-
getEntityFactory
public final EntityFactory getEntityFactory()
- Specified by:
getEntityFactoryin interfaceICucaDiagram
-
applySingleStrategy
public void applySingleStrategy()
-
isHideEmptyDescriptionForState
public boolean isHideEmptyDescriptionForState()
- Specified by:
isHideEmptyDescriptionForStatein interfaceICucaDiagram
-
incRawLayout
protected void incRawLayout()
-
constraintOnLinks
public CommandExecutionResult constraintOnLinks(Link link1, Link link2, Display display)
-
getDefaultMargins
public ClockwiseTopRightBottomLeft getDefaultMargins()
- Overrides:
getDefaultMarginsin classTitledDiagram
-
getUniqueSequence
public int getUniqueSequence()
- Specified by:
getUniqueSequencein interfaceICucaDiagram
-
getUniqueSequence
public java.lang.String getUniqueSequence(java.lang.String prefix)
-
-