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 EntityFactory
entityFactory
protected Entity
lastEntity
-
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 void
addLink(Link link)
void
applySingleStrategy()
java.lang.String
cleanId(java.lang.String id)
CommandExecutionResult
constraintOnLinks(Link link1, Link link2, Display display)
Together
currentTogether()
boolean
endGroup()
void
exportDiagramGraphic(UGraphic ug)
protected ImageData
exportDiagramInternal(java.io.OutputStream os, int index, FileFormatOption fileFormatOption)
Quark<Entity>
firstWithName(java.lang.String name)
java.util.Collection<Entity>
getChildrenGroups(Entity entity)
Entity
getCurrentGroup()
ClockwiseTopRightBottomLeft
getDefaultMargins()
protected abstract java.util.List<java.lang.String>
getDotStrings()
java.lang.String[]
getDotStringSkek()
EntityFactory
getEntityFactory()
Entity
getGroup(java.lang.String code)
java.util.Set<VisibilityModifier>
getHides()
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
getTextBlock()
java.util.List<Link>
getTwoLastLinks()
int
getUniqueSequence()
java.lang.String
getUniqueSequence(java.lang.String prefix)
java.lang.String
getWarningOrError()
CommandExecutionResult
gotoGroup(Quark<Entity> quark, Display display, GroupType type)
CommandExecutionResult
gotoTogether()
boolean
hasUrl()
Check if the Diagram have some links.void
hideOrShow(java.util.Set<VisibilityModifier> visibilities, boolean show)
void
hideOrShow(EntityGender gender, EntityPortion portions, boolean show)
void
hideOrShow2(java.lang.String what, boolean show)
protected void
incRawLayout()
boolean
isEmpty(Entity entity)
boolean
isGroup(java.lang.String code)
boolean
isGroup(Quark<Entity> quark)
boolean
isHideEmptyDescriptionForState()
boolean
isStandalone(Entity ent)
boolean
isStandaloneForArgo(Entity ent)
boolean
isVisibilityModifierPresent()
Quark<Entity>
quarkInContext(boolean reuseExistingChild, java.lang.String full)
Entity
reallyCreateLeaf(Quark<Entity> ident, Display display, LeafType type, USymbol symbol)
protected 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 foo)
void
setNamespaceSeparator(java.lang.String namespaceSeparator)
void
setVisibilityModifierPresent(boolean visibilityModifierPresent)
boolean
showPortion(EntityPortion portion, Entity entity)
protected void
updateLasts(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:
setNamespaceSeparator
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 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:
getChildrenGroups
in 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:
getRootGroup
in 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:
getLinks
in interfaceICucaDiagram
-
getDotStrings
protected abstract java.util.List<java.lang.String> getDotStrings()
-
getDotStringSkek
public final java.lang.String[] getDotStringSkek()
- Specified by:
getDotStringSkek
in interfaceICucaDiagram
-
exportDiagramGraphic
public final void exportDiagramGraphic(UGraphic ug)
- Specified by:
exportDiagramGraphic
in interfaceDiagram
- Overrides:
exportDiagramGraphic
in classTitledDiagram
-
getTextBlock
protected final TextBlock getTextBlock()
- Specified by:
getTextBlock
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
-
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:
getEntityFactory
in interfaceICucaDiagram
-
applySingleStrategy
public void applySingleStrategy()
-
isHideEmptyDescriptionForState
public boolean isHideEmptyDescriptionForState()
- Specified by:
isHideEmptyDescriptionForState
in interfaceICucaDiagram
-
incRawLayout
protected void incRawLayout()
-
constraintOnLinks
public CommandExecutionResult constraintOnLinks(Link link1, Link link2, Display display)
-
getDefaultMargins
public ClockwiseTopRightBottomLeft getDefaultMargins()
- Overrides:
getDefaultMargins
in classTitledDiagram
-
getUniqueSequence
public int getUniqueSequence()
- Specified by:
getUniqueSequence
in interfaceICucaDiagram
-
getUniqueSequence
public java.lang.String getUniqueSequence(java.lang.String prefix)
-
-