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 EntityFactoryentityFactory-
Fields inherited from class net.sourceforge.plantuml.TitledDiagram
FORCE_SMETANA
-
-
Constructor Summary
Constructors Constructor Description CucaDiagram(UmlDiagramType type, ISkinSimple orig)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidaddLink(Link link)voidapplySingleStrategy()CodebuildCode(java.lang.String s)IdentbuildFullyQualified(java.lang.String id)IdentbuildLeafIdent(java.lang.String id)IdentbuildLeafIdentSpecial(java.lang.String id)protected voidcheckNotNull(java.lang.Object id)IdentcleanIdent(Ident ident)CommandExecutionResultconstraintOnLinks(Link link1, Link link2, Display display)ILeafcreateLeaf(Ident idNewLong, Code code, Display display, LeafType type, USymbol symbol)protected ILeafcreateLeafInternal(Ident newIdent, Code code, Display display, LeafType type, USymbol symbol)voidendGroup()protected ImageDataexportDiagramInternal(java.io.OutputStream os, int index, FileFormatOption fileFormatOption)java.util.Set<SuperGroup>getAllSuperGroups()java.util.Collection<IGroup>getChildrenGroups(IGroup parent)ColorMappergetColorMapper()IGroupgetCurrentGroup()protected abstract java.util.List<java.lang.String>getDotStrings()java.lang.String[]getDotStringSkek()EntityFactorygetEntityFactory()protected CodegetFullyQualifiedCode1972(Code code)IGroupgetGroup(Code code)java.util.Collection<IGroup>getGroups(boolean withRootGroup)IGroupgetGroupStrict(Ident ident)IGroupgetGroupVerySmart(Ident ident)java.util.Set<VisibilityModifier>getHides()intgetHorizontalPages()java.lang.StringgetLabelangle()java.lang.StringgetLabeldistance()ILeafgetLastEntity()LinkgetLastLink()ILeafgetLeaf(Code code)ILeafgetLeafSmart(Ident ident)intgetLeafssize()ILeafgetLeafStrict(Ident ident)java.util.Collection<ILeaf>getLeafsvalues()ILeafgetLeafVerySmart(Ident ident)java.util.List<Link>getLinks()protected java.lang.StringgetNamespace1972(Code fullyCode, java.lang.String separator)java.lang.StringgetNamespaceSeparator()intgetNbImages()Number of images in this diagram (usually, 1)abstract IEntitygetOrCreateLeaf(Ident ident, Code code, LeafType type, USymbol symbol)protected ILeafgetOrCreateLeafDefault(Ident idNewLong, Code code, LeafType type, USymbol symbol)IGroupgetRootGroup()SuperGroupgetRootSuperGroup()java.util.List<Link>getTwoLastLinks()intgetVerticalPages()java.lang.StringgetWarningOrError()voidgotoGroup(Ident ident, Code code, Display display, GroupType type, IGroup parent, NamespaceStrategy strategy)protected voidgotoGroupExternal(Ident newIdLong, Code code, Display display, Code namespace, GroupType type, IGroup parent)voidgotoThisGroup(IGroup group)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()booleanisAutarkic(IGroup g)booleanisEmpty(IGroup gToTest)booleanisGroup(Code code)booleanisGroupStrict(Ident ident)booleanisGroupVerySmart(Ident ident)booleanisHideEmptyDescriptionForState()booleanisStandalone(IEntity ent)booleanisVisibilityModifierPresent()booleanleafExist(Code code)booleanleafExistSmart(Ident ident)booleanleafExistStrict(Ident ident)booleanmergeIntricated()protected voidremoveLink(Link link)voidremoveOrRestore(java.lang.String what, boolean show)voidresetPragmaLabel()voidsetHorizontalPages(int horizontalPages)voidsetLastEntity(ILeaf foo)voidsetNamespaceSeparator(java.lang.String namespaceSeparator)voidsetVerticalPages(int verticalPages)voidsetVisibilityModifierPresent(boolean visibilityModifierPresent)booleanshowPortion(EntityPortion portion, IEntity entity)booleanV1972()-
Methods inherited from class net.sourceforge.plantuml.UmlDiagram
exportCmap, exportDiagramError, exportDiagramNow, getAnimation, getFailureText2, getFlashData, getFooterOrHeaderTeoz, getMinwidth, isHideUnlinkedData, isRotation, setAnimation, setHideEmptyDescription, setHideUnlinkedData, setMinwidth, setRotation
-
Methods inherited from class net.sourceforge.plantuml.TitledDiagram
addSprite, getCaption, getCurrentStyleBuilder, getFooter, getHeader, getLegend, getMainFrame, getPragma, getScaleCoef, getSkinParam, getTitle, getUmlDiagramType, isUseSmetana, loadSkin, setCaption, setLegend, setMainFrame, setParam, setTitle, setUseSmetana
-
Methods inherited from class net.sourceforge.plantuml.AbstractPSystem
checkFinalError, executeCommand, exportDiagram, getMetadata, getScale, getSource, isOk, makeDiagramReady, seed, setScale, setSource
-
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, getSource
-
Methods inherited from interface net.sourceforge.plantuml.WithSprite
addSprite
-
-
-
-
Field Detail
-
entityFactory
protected final EntityFactory entityFactory
-
-
Constructor Detail
-
CucaDiagram
public CucaDiagram(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:
getAllSuperGroupsin 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:DiagramCheck if the Diagram have some links.- Specified by:
hasUrlin interfaceDiagram- Overrides:
hasUrlin classAbstractPSystem- Returns:
-
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)
-
checkNotNull
protected final void checkNotNull(java.lang.Object id)
-
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:
getChildrenGroupsin 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:
getRootGroupin interfaceGroupHierarchy
-
getRootSuperGroup
public SuperGroup getRootSuperGroup()
- Specified by:
getRootSuperGroupin 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()
-
getHorizontalPages
public final int getHorizontalPages()
-
setHorizontalPages
public final void setHorizontalPages(int horizontalPages)
-
getVerticalPages
public final int getVerticalPages()
-
setVerticalPages
public final void setVerticalPages(int verticalPages)
-
getNbImages
public int getNbImages()
Description copied from interface:DiagramNumber of images in this diagram (usually, 1)- Specified by:
getNbImagesin interfaceDiagram- Overrides:
getNbImagesin classAbstractPSystem- Returns:
- usually 1
-
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:
exportDiagramInternalin classUmlDiagram- Throws:
java.io.IOException
-
getWarningOrError
public java.lang.String getWarningOrError()
- Specified by:
getWarningOrErrorin interfaceDiagram- Overrides:
getWarningOrErrorin 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:
isEmptyin interfaceGroupHierarchy
-
isVisibilityModifierPresent
public final boolean isVisibilityModifierPresent()
-
setVisibilityModifierPresent
public final void setVisibilityModifierPresent(boolean visibilityModifierPresent)
-
showPortion
public final boolean showPortion(EntityPortion portion, IEntity 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()
-
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)
-
-