
org.eclipse.elk.alg.layered.graph.LGraphUtil.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of plantuml Show documentation
Show all versions of plantuml Show documentation
PlantUML is a component that allows to quickly write :
* sequence diagram,
* use case diagram,
* class diagram,
* activity diagram,
* component diagram,
* state diagram
* object diagram
???? 7. ,org/eclipse/elk/alg/layered/graph/LGraphUtil java/lang/Object 3$SWITCH_TABLE$org$eclipse$elk$core$options$PortSide [I 4$SWITCH_TABLE$org$eclipse$elk$core$options$Alignment 4$SWITCH_TABLE$org$eclipse$elk$core$options$Direction =$SWITCH_TABLE$org$eclipse$elk$core$options$EdgeLabelPlacement :$SWITCH_TABLE$org$eclipse$elk$alg$layered$options$PortType $assertionsDisabled Z ()V Code
java/lang/Class desiredAssertionStatus ()Z LineNumberTable LocalVariableTable
StackMapTable
this .Lorg/eclipse/elk/alg/layered/graph/LGraphUtil; toNodeArray B(Ljava/util/Collection;)[Lorg/eclipse/elk/alg/layered/graph/LNode; Signature m(Ljava/util/Collection;)[Lorg/eclipse/elk/alg/layered/graph/LNode; % ' & java/util/Collection ( ) size ()I + 'org/eclipse/elk/alg/layered/graph/LNode % - . / toArray (([Ljava/lang/Object;)[Ljava/lang/Object; 1 *[Lorg/eclipse/elk/alg/layered/graph/LNode; nodes Ljava/util/Collection; LocalVariableTypeTable ALjava/util/Collection; toEdgeArray B(Ljava/util/Collection;)[Lorg/eclipse/elk/alg/layered/graph/LEdge; m(Ljava/util/Collection;)[Lorg/eclipse/elk/alg/layered/graph/LEdge; : 'org/eclipse/elk/alg/layered/graph/LEdge < *[Lorg/eclipse/elk/alg/layered/graph/LEdge; edges ALjava/util/Collection; toPortArray B(Ljava/util/Collection;)[Lorg/eclipse/elk/alg/layered/graph/LPort; m(Ljava/util/Collection;)[Lorg/eclipse/elk/alg/layered/graph/LPort; C 'org/eclipse/elk/alg/layered/graph/LPort E *[Lorg/eclipse/elk/alg/layered/graph/LPort; ports ALjava/util/Collection;
resizeNode Q(Lorg/eclipse/elk/alg/layered/graph/LNode;Lorg/eclipse/elk/core/math/KVector;ZZ)V K !org/eclipse/elk/core/math/KVector
* M N O getSize %()Lorg/eclipse/elk/core/math/KVector;
J Q R &(Lorg/eclipse/elk/core/math/KVector;)V J T U V x D J X Y V y [ ] \ 2org/eclipse/elk/alg/layered/options/LayeredOptions ^ _ PORT_CONSTRAINTS ,Lorg/eclipse/elk/graph/properties/IProperty;
* a b c getProperty @(Lorg/eclipse/elk/graph/properties/IProperty;)Ljava/lang/Object; e g f ,org/eclipse/elk/core/options/PortConstraints h i FIXED_POS .Lorg/eclipse/elk/core/options/PortConstraints;
* k l m getPorts ()Ljava/util/List; o q p java/util/List r s iterator ()Ljava/util/Iterator; u w v java/util/Iterator x y next ()Ljava/lang/Object;
{ | ()[I
B ~ ? getSide )()Lorg/eclipse/elk/core/options/PortSide;
? ? ? %org/eclipse/elk/core/options/PortSide ? ) ordinal
B ? ? O getPosition u ? ? hasNext
* ? ? m getLabels ? (org/eclipse/elk/alg/layered/graph/LLabel
? ?
? M@ [ ? ? _ NODE_SIZE_CONSTRAINTS
? ? ? +org/eclipse/elk/core/options/SizeConstraint ? ? fixed ()Ljava/util/EnumSet;
* ? ? ? setProperty t(Lorg/eclipse/elk/graph/properties/IProperty;Ljava/lang/Object;)Lorg/eclipse/elk/graph/properties/MapPropertyHolder; node )Lorg/eclipse/elk/alg/layered/graph/LNode; newSize #Lorg/eclipse/elk/core/math/KVector; movePorts
moveLabels oldSize
widthRatio F heightRatio widthDiff
heightDiff
fixedPorts port )Lorg/eclipse/elk/alg/layered/graph/LPort; label *Lorg/eclipse/elk/alg/layered/graph/LLabel; midx midy widthPercent
heightPercent offsetGraphs (Ljava/util/Collection;DD)V G(Ljava/util/Collection;DD)V % q ? (org/eclipse/elk/alg/layered/graph/LGraph
? ? ? offsetGraph /(Lorg/eclipse/elk/alg/layered/graph/LGraph;DD)V graphs offsetx offsety graph *Lorg/eclipse/elk/alg/layered/graph/LGraph; BLjava/util/Collection;
J ? ? (DD)V
? ? ? m getLayerlessNodes
* ?
J ? ? ? add H(Lorg/eclipse/elk/core/math/KVector;)Lorg/eclipse/elk/core/math/KVector;
B ? ? m getOutgoingEdges
9 ? ? ?
getBendPoints *()Lorg/eclipse/elk/core/math/KVectorChain;
? ? ? &org/eclipse/elk/core/math/KVectorChain ? ? offset M(Lorg/eclipse/elk/core/math/KVector;)Lorg/eclipse/elk/core/math/KVectorChain; [ ? ? _ JUNCTION_POINTS
9 a
9 ? graphOffset edge )Lorg/eclipse/elk/alg/layered/graph/LEdge; junctionPoints (Lorg/eclipse/elk/core/math/KVectorChain; placeNodesHorizontally -(Lorg/eclipse/elk/alg/layered/graph/Layer;D)V
? ? ? 'org/eclipse/elk/alg/layered/graph/Layer ? m getNodes
* ? ? ? getMargin -()Lorg/eclipse/elk/alg/layered/graph/LMargin; ? ? ? )org/eclipse/elk/alg/layered/graph/LMargin ? V left
? ? ? java/lang/Math ? ? max (DD)D ? V right [ _ ALIGNMENT &org/eclipse/elk/core/options/Alignment
|
???
B
m getIncomingEdges o isEmpty
? M layer )Lorg/eclipse/elk/alg/layered/graph/Layer; xoffset
maxLeftMargin maxRightMargin alignment (Lorg/eclipse/elk/core/options/Alignment; ratio inports I outports nodeSize xpos
leftMargin rightMargin findMaxNonDummyNodeWidth -(Lorg/eclipse/elk/alg/layered/graph/Layer;Z)D
?%&' getGraph ,()Lorg/eclipse/elk/alg/layered/graph/LGraph; [)* _ DIRECTION
? a- &org/eclipse/elk/core/options/Direction
,/0
isVertical
? q
*345 getType 4()Lorg/eclipse/elk/alg/layered/graph/LNode$NodeType; 798 0org/eclipse/elk/alg/layered/graph/LNode$NodeType:; NORMAL 2Lorg/eclipse/elk/alg/layered/graph/LNode$NodeType; respectNodeMargins maxWidth width computeGraphProperties -(Lorg/eclipse/elk/alg/layered/graph/LGraph;)V BDC 6org/eclipse/elk/alg/layered/options/InternalPropertiesE _ GRAPH_PROPERTIESG
java/util/SetFFJK clear
MNO getDirection T(Lorg/eclipse/elk/alg/layered/graph/LGraph;)Lorg/eclipse/elk/core/options/Direction; [QR _ COMMENT_BOXT java/lang/Boolean
SVW booleanValue Y[Z 3org/eclipse/elk/alg/layered/options/GraphProperties\] COMMENTS 5Lorg/eclipse/elk/alg/layered/options/GraphProperties;F_ ?` (Ljava/lang/Object;)Z [bc _ HYPERNODE Yef]
HYPERNODES Yhi]
HYPEREDGES 7kl;
EXTERNAL_PORT Yno] EXTERNAL_PORTS eqr i UNDEFINED etu i FREE Ywx] NON_FREE_PORTS o '
{ |
, ? ?~? EAST 'Lorg/eclipse/elk/core/options/PortSide; ???? WEST Y??] NORTH_SOUTH_PORTS ???? NORTH ???? SOUTH
9??? getTarget +()Lorg/eclipse/elk/alg/layered/graph/LPort;
B??? getNode +()Lorg/eclipse/elk/alg/layered/graph/LNode; Y??]
SELF_LOOPS
? | [?? _ EDGE_LABELS_PLACEMENT
? a? /org/eclipse/elk/core/options/EdgeLabelPlacement
? ? Y??]
CENTER_LABELS Y??]
END_LABELS layeredGraph props Ljava/util/Set; direction (Lorg/eclipse/elk/core/options/Direction; portConstraints portSide FLjava/util/Set;
createPort ?(Lorg/eclipse/elk/alg/layered/graph/LNode;Lorg/eclipse/elk/core/math/KVector;Lorg/eclipse/elk/alg/layered/options/PortType;Lorg/eclipse/elk/alg/layered/graph/LGraph;)Lorg/eclipse/elk/alg/layered/graph/LPort; [?? _ MERGE_EDGES
e?? isSideFixed
????
fromDirection Q(Lorg/eclipse/elk/core/options/Direction;)Lorg/eclipse/elk/core/options/PortSide; ??? ,org/eclipse/elk/alg/layered/options/PortType?? OUTPUT .Lorg/eclipse/elk/alg/layered/options/PortType;
??? ? opposed
??? provideCollectorPort ?(Lorg/eclipse/elk/alg/layered/graph/LGraph;Lorg/eclipse/elk/alg/layered/graph/LNode;Lorg/eclipse/elk/alg/layered/options/PortType;Lorg/eclipse/elk/core/options/PortSide;)Lorg/eclipse/elk/alg/layered/graph/LPort;
B
B??? setNode ,(Lorg/eclipse/elk/alg/layered/graph/LNode;)V
J??? bound )(DDDD)Lorg/eclipse/elk/core/math/KVector;
??? calcPortSide z(Lorg/eclipse/elk/alg/layered/graph/LPort;Lorg/eclipse/elk/core/options/Direction;)Lorg/eclipse/elk/core/options/PortSide;
B??? setSide *(Lorg/eclipse/elk/core/options/PortSide;)V endPoint type
mergePorts defaultSide pos graphProperties ??r?
B M nodeWidth
nodeHeight ypos height calcPortOffset S(Lorg/eclipse/elk/alg/layered/graph/LPort;Lorg/eclipse/elk/core/options/PortSide;)D side centerPoint p(Lorg/eclipse/elk/core/math/KVector;Lorg/eclipse/elk/core/math/KVector;Lorg/eclipse/elk/core/options/PortSide;)V point boundary
?
|
? ? B?? _
INPUT_COLLECT
B a
S??? valueOf (Z)Ljava/lang/Boolean;
B ? B?? _ OUTPUT_COLLECT
??? inport outport initializePort ?(Lorg/eclipse/elk/alg/layered/graph/LPort;Lorg/eclipse/elk/core/options/PortConstraints;Lorg/eclipse/elk/core/options/Direction;Lorg/eclipse/elk/core/math/KVector;)V
B getAllProperties ()Ljava/util/Map; [ _ PORT_BORDER_OFFSET
java/util/Map
` containsKey
??
java/lang/Double? (D)Ljava/lang/Double;
e isRatioFixed B _ PORT_RATIO_OR_POSITION
B O getAnchor
B ! setExplicitlySuppliedPortAnchor (Z)V anchorPos portSize
portAnchor createExternalPortDummyn(Lorg/eclipse/elk/graph/properties/IPropertyHolder;Lorg/eclipse/elk/core/options/PortConstraints;Lorg/eclipse/elk/core/options/PortSide;ILorg/eclipse/elk/core/math/KVector;Lorg/eclipse/elk/core/math/KVector;Lorg/eclipse/elk/core/math/KVector;Lorg/eclipse/elk/core/options/Direction;Lorg/eclipse/elk/alg/layered/graph/LGraph;)Lorg/eclipse/elk/alg/layered/graph/LNode;
*( @
**+, setType 5(Lorg/eclipse/elk/alg/layered/graph/LNode$NodeType;)V B./ _
EXT_PORT_SIZE1 a2 0org/eclipse/elk/graph/properties/IPropertyHolder
456 doubleValue ()D ,8r?: java/lang/AssertionError
9 [=> _ PORT_SIDE1@ ?A r(Lorg/eclipse/elk/graph/properties/IProperty;Ljava/lang/Object;)Lorg/eclipse/elk/graph/properties/IPropertyHolder;
J [DE _ PORT_ANCHOR1GHI hasProperty /(Lorg/eclipse/elk/graph/properties/IProperty;)Z
JKL ? set
JNLO '(DD)Lorg/eclipse/elk/core/math/KVector; [QR _ LAYERING_LAYER_CONSTRAINT TVU 3org/eclipse/elk/alg/layered/options/LayerConstraintWX FIRST_SEPARATE 5Lorg/eclipse/elk/alg/layered/options/LayerConstraint; BZ[ _ EDGE_CONSTRAINT ]_^ 2org/eclipse/elk/alg/layered/options/EdgeConstraint`a
OUTGOING_ONLY 4Lorg/eclipse/elk/alg/layered/options/EdgeConstraint; TcdX
LAST_SEPARATE ]fga
INCOMING_ONLY Bij _ IN_LAYER_CONSTRAINT lnm 5org/eclipse/elk/alg/layered/options/InLayerConstraintop TOP 7Lorg/eclipse/elk/alg/layered/options/InLayerConstraint; lrsp BOTTOM
9u v (Ljava/lang/Object;)V
exy isOrderFixed e{| i FIXED_ORDER [~ _
PORT_INDEX? java/lang/Integer
?4?? B?? _
EXT_PORT_SIDE propertyHolder 2Lorg/eclipse/elk/graph/properties/IPropertyHolder; netFlow portNodeSize portPosition layoutDirection finalExternalPortSide dummy portBorderOffset dummyPort anchor explicitAnchor informationAboutIt getExternalPortPosition z(Lorg/eclipse/elk/alg/layered/graph/LGraph;Lorg/eclipse/elk/alg/layered/graph/LNode;DD)Lorg/eclipse/elk/core/math/KVector;
? M
????
getPadding .()Lorg/eclipse/elk/alg/layered/graph/LPadding;
??? O getOffset ? ?? *org/eclipse/elk/alg/layered/graph/LPadding ??? V top ? ??? V bottom portDummy portWidth
portHeight
portOffset graphSize padding ,Lorg/eclipse/elk/alg/layered/graph/LPadding; isDescendant U(Lorg/eclipse/elk/alg/layered/graph/LNode;Lorg/eclipse/elk/alg/layered/graph/LNode;)Z
*%
????
getParentNode child parent current changeCoordSystem z(Lorg/eclipse/elk/core/math/KVector;Lorg/eclipse/elk/alg/layered/graph/LGraph;Lorg/eclipse/elk/alg/layered/graph/LGraph;)V
J? ?O
J?? ? sub
J??O oldGraph newGraph getIndividualOrInherited i(Lorg/eclipse/elk/alg/layered/graph/LNode;Lorg/eclipse/elk/graph/properties/IProperty;)Ljava/lang/Object; u(Lorg/eclipse/elk/alg/layered/graph/LNode;Lorg/eclipse/elk/graph/properties/IProperty;)TT; ??? (org/eclipse/elk/core/options/CoreOptions? _ SPACING_INDIVIDUAL
*G property result Ljava/lang/Object; individualSpacings 1Lorg/eclipse/elk/graph/properties/IProperty; TT; [?? _ ASPECT_RATIO ,??? RIGHT ,??? DOWN aspectRatio getMinimalModelOrder -(Lorg/eclipse/elk/alg/layered/graph/LGraph;)I??? B?? _ MODEL_ORDER
??? ) intValue
???? min (II)I order ?
???? values *()[Lorg/eclipse/elk/core/options/PortSide;? java/lang/NoSuchFieldError ?
??? +()[Lorg/eclipse/elk/core/options/Alignment; ?? AUTOMATIC ?s ? CENTER LEFT ? o
,? +()[Lorg/eclipse/elk/core/options/Direction; ,? ,? UP
?? 4()[Lorg/eclipse/elk/core/options/EdgeLabelPlacement; ? 1Lorg/eclipse/elk/core/options/EdgeLabelPlacement; ? HEAD ? TAIL !
?#?$ 1()[Lorg/eclipse/elk/alg/layered/options/PortType; ?&'? INPUT ?)r?
SourceFile LGraphUtil.java InnerClasses NodeType 1 J J J J J
<