Class CucaDiagram
- java.lang.Object
-
- net.sourceforge.plantuml.AbstractPSystem
-
- net.sourceforge.plantuml.TitledDiagram
-
- net.sourceforge.plantuml.UmlDiagram
-
- net.sourceforge.plantuml.cucadiagram.CucaDiagram
-
- All Implemented Interfaces:
Annotated
,Diagram
,GroupHierarchy
,PortionShower
,WithSprite
- Direct Known Subclasses:
AbstractEntityDiagram
,ActivityDiagram
public abstract class CucaDiagram extends UmlDiagram implements GroupHierarchy, PortionShower
-
-
Field Summary
Fields Modifier and Type Field Description protected EntityFactory
entityFactory
-
Fields inherited from class net.sourceforge.plantuml.TitledDiagram
FORCE_ELK, FORCE_SMETANA
-
-
Constructor Summary
Constructors Constructor Description CucaDiagram(UmlSource source, UmlDiagramType type, ISkinSimple orig)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
addLink(Link link)
void
applySingleStrategy()
Code
buildCode(java.lang.String s)
Ident
buildFullyQualified(java.lang.String id)
Ident
buildLeafIdent(java.lang.String id)
Ident
buildLeafIdentSpecial(java.lang.String id)
Ident
cleanIdent(Ident ident)
CommandExecutionResult
constraintOnLinks(Link link1, Link link2, Display display)
ILeaf
createLeaf(Ident idNewLong, Code code, Display display, LeafType type, USymbol symbol)
protected ILeaf
createLeafInternal(Ident newIdent, Code code, Display display, LeafType type, USymbol symbol)
void
endGroup()
protected ImageData
exportDiagramInternal(java.io.OutputStream os, int index, FileFormatOption fileFormatOption)
java.util.Set<SuperGroup>
getAllSuperGroups()
java.util.Collection<IGroup>
getChildrenGroups(IGroup parent)
ColorMapper
getColorMapper()
IGroup
getCurrentGroup()
ClockwiseTopRightBottomLeft
getDefaultMargins()
protected abstract java.util.List<java.lang.String>
getDotStrings()
java.lang.String[]
getDotStringSkek()
EntityFactory
getEntityFactory()
protected Code
getFullyQualifiedCode1972(Code code)
IGroup
getGroup(Code code)
java.util.Collection<IGroup>
getGroups(boolean withRootGroup)
IGroup
getGroupStrict(Ident ident)
IGroup
getGroupVerySmart(Ident ident)
java.util.Set<VisibilityModifier>
getHides()
java.lang.String
getLabelangle()
java.lang.String
getLabeldistance()
ILeaf
getLastEntity()
Link
getLastLink()
ILeaf
getLeaf(Code code)
ILeaf
getLeafSmart(Ident ident)
int
getLeafssize()
ILeaf
getLeafStrict(Ident ident)
java.util.Collection<ILeaf>
getLeafsvalues()
ILeaf
getLeafVerySmart(Ident ident)
java.util.List<Link>
getLinks()
protected java.lang.String
getNamespace1972(Code fullyCode, java.lang.String separator)
java.lang.String
getNamespaceSeparator()
abstract IEntity
getOrCreateLeaf(Ident ident, Code code, LeafType type, USymbol symbol)
protected ILeaf
getOrCreateLeafDefault(Ident idNewLong, Code code, LeafType type, USymbol symbol)
IGroup
getRootGroup()
SuperGroup
getRootSuperGroup()
java.util.List<Link>
getTwoLastLinks()
java.lang.String
getWarningOrError()
void
gotoGroup(Ident ident, Code code, Display display, GroupType type, IGroup parent, NamespaceStrategy strategy)
protected void
gotoGroupExternal(Ident newIdLong, Code code, Display display, Code namespace, GroupType type, IGroup parent)
void
gotoThisGroup(IGroup group)
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
isAutarkic(IGroup g)
boolean
isEmpty(IGroup gToTest)
boolean
isGroup(Code code)
boolean
isGroupStrict(Ident ident)
boolean
isGroupVerySmart(Ident ident)
boolean
isHideEmptyDescriptionForState()
boolean
isStandalone(IEntity ent)
boolean
isVisibilityModifierPresent()
boolean
leafExist(Code code)
boolean
leafExistSmart(Ident ident)
boolean
leafExistStrict(Ident ident)
boolean
mergeIntricated()
protected void
removeLink(Link link)
void
removeOrRestore(java.lang.String what, boolean show)
void
resetPragmaLabel()
void
setLastEntity(ILeaf foo)
void
setNamespaceSeparator(java.lang.String namespaceSeparator)
void
setVisibilityModifierPresent(boolean visibilityModifierPresent)
boolean
showPortion(EntityPortion portion, IEntity entity)
boolean
V1972()
-
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, setAnimation, setCaption, setLegend, setMainFrame, setParam, setTitle, setUseElk, setUseSmetana
-
Methods inherited from class net.sourceforge.plantuml.AbstractPSystem
checkFinalError, executeCommand, exportDiagram, getMetadata, 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.WithSprite
addSprite
-
-
-
-
Field Detail
-
entityFactory
protected final EntityFactory entityFactory
-
-
Constructor Detail
-
CucaDiagram
public CucaDiagram(UmlSource source, UmlDiagramType type, ISkinSimple orig)
-
-
Method Detail
-
V1972
public final boolean V1972()
-
mergeIntricated
public final boolean mergeIntricated()
-
getAllSuperGroups
public java.util.Set<SuperGroup> getAllSuperGroups()
- Specified by:
getAllSuperGroups
in interfaceGroupHierarchy
-
getOrCreateLeaf
public abstract IEntity getOrCreateLeaf(Ident ident, Code code, LeafType type, USymbol symbol)
-
setNamespaceSeparator
public final void setNamespaceSeparator(java.lang.String namespaceSeparator)
-
getNamespaceSeparator
public final java.lang.String getNamespaceSeparator()
-
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(ILeaf foo)
-
getOrCreateLeafDefault
protected final ILeaf getOrCreateLeafDefault(Ident idNewLong, Code code, LeafType type, USymbol symbol)
-
createLeaf
public ILeaf createLeaf(Ident idNewLong, Code code, Display display, LeafType type, USymbol symbol)
-
createLeafInternal
protected final ILeaf createLeafInternal(Ident newIdent, Code code, Display display, LeafType type, USymbol symbol)
-
buildLeafIdent
public final Ident buildLeafIdent(java.lang.String id)
-
buildLeafIdentSpecial
public final Ident buildLeafIdentSpecial(java.lang.String id)
-
buildFullyQualified
public final Ident buildFullyQualified(java.lang.String id)
-
buildCode
public final Code buildCode(java.lang.String s)
-
leafExist
public boolean leafExist(Code code)
-
leafExistSmart
public boolean leafExistSmart(Ident ident)
-
leafExistStrict
public boolean leafExistStrict(Ident ident)
-
getChildrenGroups
public final java.util.Collection<IGroup> getChildrenGroups(IGroup parent)
- Specified by:
getChildrenGroups
in interfaceGroupHierarchy
-
gotoGroup
public final void gotoGroup(Ident ident, Code code, Display display, GroupType type, IGroup parent, NamespaceStrategy strategy)
-
getNamespace1972
protected final java.lang.String getNamespace1972(Code fullyCode, java.lang.String separator)
-
endGroup
public void endGroup()
-
gotoGroupExternal
protected final void gotoGroupExternal(Ident newIdLong, Code code, Display display, Code namespace, GroupType type, IGroup parent)
-
gotoThisGroup
public final void gotoThisGroup(IGroup group)
-
getCurrentGroup
public final IGroup getCurrentGroup()
-
isGroup
public final boolean isGroup(Code code)
-
isGroupStrict
public final boolean isGroupStrict(Ident ident)
-
isGroupVerySmart
public final boolean isGroupVerySmart(Ident ident)
-
getGroups
public final java.util.Collection<IGroup> getGroups(boolean withRootGroup)
-
getRootGroup
public IGroup getRootGroup()
- Specified by:
getRootGroup
in interfaceGroupHierarchy
-
getRootSuperGroup
public SuperGroup getRootSuperGroup()
- Specified by:
getRootSuperGroup
in interfaceGroupHierarchy
-
getLeafsvalues
public final java.util.Collection<ILeaf> getLeafsvalues()
-
getLeafssize
public final int getLeafssize()
-
addLink
public final void addLink(Link link)
-
removeLink
protected final void removeLink(Link link)
-
getLinks
public final java.util.List<Link> getLinks()
-
getDotStrings
protected abstract java.util.List<java.lang.String> getDotStrings()
-
getDotStringSkek
public final java.lang.String[] getDotStringSkek()
-
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
-
isAutarkic
public boolean isAutarkic(IGroup g)
-
resetPragmaLabel
public void resetPragmaLabel()
-
getLabeldistance
public java.lang.String getLabeldistance()
-
getLabelangle
public java.lang.String getLabelangle()
-
isEmpty
public final boolean isEmpty(IGroup gToTest)
- Specified by:
isEmpty
in interfaceGroupHierarchy
-
isVisibilityModifierPresent
public final boolean isVisibilityModifierPresent()
-
setVisibilityModifierPresent
public final void setVisibilityModifierPresent(boolean visibilityModifierPresent)
-
showPortion
public final boolean showPortion(EntityPortion portion, IEntity 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()
-
getColorMapper
public ColorMapper getColorMapper()
-
isStandalone
public final boolean isStandalone(IEntity ent)
-
getLastLink
public final Link getLastLink()
-
getTwoLastLinks
public final java.util.List<Link> getTwoLastLinks()
-
getLastEntity
public final ILeaf getLastEntity()
-
getEntityFactory
public final EntityFactory getEntityFactory()
-
applySingleStrategy
public void applySingleStrategy()
-
isHideEmptyDescriptionForState
public boolean isHideEmptyDescriptionForState()
-
incRawLayout
protected void incRawLayout()
-
constraintOnLinks
public CommandExecutionResult constraintOnLinks(Link link1, Link link2, Display display)
-
getDefaultMargins
public ClockwiseTopRightBottomLeft getDefaultMargins()
- Overrides:
getDefaultMargins
in classTitledDiagram
-
-