Package net.sourceforge.plantuml.cheneer
Class ChenEerDiagram
- java.lang.Object
-
- net.sourceforge.plantuml.AbstractPSystem
-
- net.sourceforge.plantuml.TitledDiagram
-
- net.sourceforge.plantuml.UmlDiagram
-
- net.atmp.CucaDiagram
-
- net.sourceforge.plantuml.classdiagram.AbstractEntityDiagram
-
- net.sourceforge.plantuml.cheneer.ChenEerDiagram
-
- All Implemented Interfaces:
EntityFactory
,Annotated
,Diagram
,GroupHierarchy
,PortionShower
,WarningHandler
,WithSprite
public class ChenEerDiagram extends AbstractEntityDiagram
-
-
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 ChenEerDiagram(UmlSource source, Previous previous, PreprocessingArtifact preprocessingArtifact)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Entity
peekOwner()
Returns the owner of the current attribute.boolean
popOwner()
Pops an attribute owner from the stack.void
pushOwner(Entity group)
Pushes the owner of the following attributes.-
Methods inherited from class net.sourceforge.plantuml.classdiagram.AbstractEntityDiagram
getDescription, getDotStrings, packSomePackage
-
Methods inherited from class net.atmp.CucaDiagram
addLink, applySingleStrategy, cleanId, constraintOnLinks, countByName, createGroup, createLeaf, currentTogether, endGroup, exportDiagramGraphic, exportDiagramInternal, firstWithName, getChildrenGroups, getCurrentGroup, getDefaultMargins, getDotStringSkek, getGroup, getHidesVisibilityModifier, getLabelangle, getLabeldistance, getLastEntity, getLastLink, getLinks, getPortFor, getPortId, getRootGroup, getTextMainBlock, getTwoLastLinks, getUniqueSequence, getUniqueSequence2, getUniqueSequenceValue, getVisibleStereotypeLabels, getWarningOrError, gotoGroup, gotoGroup, gotoTogether, groups, groupsAndRoot, hasUrl, hideOrShow, hideOrShow2, hideOrShowVisibilityModifier, incRawLayout, isEmpty, isGroup, isGroup, isHidden, isHideEmptyDescriptionForState, isRemoved, isRemovedIgnoreUnlinked, isStandalone, isStandaloneForArgo, isStereotypeRemoved, isVisibilityModifierPresent, leafs, quarkInContext, quarkInContextSafe, quarks, reallyCreateLeaf, removeLink, removeOrRestore, removePortId, resetPragmaLabel, setLastEntity, setNamespaceSeparator, setSeparator, setVisibilityModifierPresent, showPortion, startingPass, updateLasts
-
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, 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
-
ChenEerDiagram
public ChenEerDiagram(UmlSource source, Previous previous, PreprocessingArtifact preprocessingArtifact)
-
-
Method Detail
-
pushOwner
public void pushOwner(Entity group)
Pushes the owner of the following attributes.- Parameters:
group
- the entity that owns the following attributes- See Also:
peekOwner()
-
popOwner
public boolean popOwner()
Pops an attribute owner from the stack. See alsopeekOwner()
.- Returns:
- true if an owner was popped, false if the stack was empty
- See Also:
peekOwner()
-
peekOwner
public Entity peekOwner()
Returns the owner of the current attribute.This is used to link attributes based on their lexical position (how they appear in sources) without nesting the entities (like how packages are done). It is for this reason that we can't use CucaDiagram.getCurrentGroup, as that method nests the entities.
- Returns:
- the owner of the current attribute, or null if there is no owner
-
-