![JAR search and dependency download from the Maven repository](/logo.png)
org.eclipse.elk.alg.layered.components.ComponentGroupGraphPlacer.class Maven / Gradle / Ivy
???? 7I @org/eclipse/elk/alg/layered/components/ComponentGroupGraphPlacer :org/eclipse/elk/alg/layered/components/AbstractGraphPlacer componentGroups Ljava/util/List; Signature ILjava/util/List; $assertionsDisabled Z ()V Code
java/lang/Class desiredAssertionStatus ()Z
LineNumberTable LocalVariableTable
StackMapTable
com/google/common/collect/Lists ! newArrayList ()Ljava/util/ArrayList; # this BLorg/eclipse/elk/alg/layered/components/ComponentGroupGraphPlacer; combine =(Ljava/util/List;Lorg/eclipse/elk/alg/layered/graph/LGraph;)V i(Ljava/util/List;Lorg/eclipse/elk/alg/layered/graph/LGraph;)V * , + java/util/List - clear * / 0 1 contains (Ljava/lang/Object;)Z 3 java/lang/AssertionError
2
6 8 7 (org/eclipse/elk/alg/layered/graph/LGraph 9 : getLayerlessNodes ()Ljava/util/List; * < = isEmpty
6 ? @ A getSize %()Lorg/eclipse/elk/core/math/KVector; C E D !org/eclipse/elk/core/math/KVector F G x D C I J G y * L M N get (I)Ljava/lang/Object;
6 P Q R copyProperties h(Lorg/eclipse/elk/graph/properties/IPropertyHolder;)Lorg/eclipse/elk/graph/properties/MapPropertyHolder; * T U V iterator ()Ljava/util/Iterator; X Z Y java/util/Iterator [ \ next ()Ljava/lang/Object;
^ _ ` addComponent -(Lorg/eclipse/elk/alg/layered/graph/LGraph;)V X b c hasNext
C f h g 2org/eclipse/elk/alg/layered/options/LayeredOptions i j SPACING_COMPONENT_COMPONENT ,Lorg/eclipse/elk/graph/properties/IProperty;
6 l m n getProperty @(Lorg/eclipse/elk/graph/properties/IProperty;)Ljava/lang/Object; p java/lang/Double
o r s t doubleValue ()D v 5org/eclipse/elk/alg/layered/components/ComponentGroup
x y z placeComponents ](Lorg/eclipse/elk/alg/layered/components/ComponentGroup;D)Lorg/eclipse/elk/core/math/KVector;
u | } ~
getComponents ()Ljava/util/Collection;
? ? ? offsetGraphs (Ljava/util/Collection;DD)V f ? ? j COMPACTION_CONNECTED_COMPONENTS ? java/lang/Boolean
? ? ? booleanValue f ? ? j EDGE_ROUTING ? ? ? (org/eclipse/elk/core/options/EdgeRouting ? ?
ORTHOGONAL *Lorg/eclipse/elk/core/options/EdgeRouting;
6 ? ? A getOffset
? ? ? offsetGraph /(Lorg/eclipse/elk/alg/layered/graph/LGraph;DD)V ? :org/eclipse/elk/alg/layered/components/ComponentsCompactor
?
? ? ? ? compact 7(Ljava/util/List;Lorg/eclipse/elk/core/math/KVector;D)V
C ? ? A reset
? ?
C ? ? ? add H(Lorg/eclipse/elk/core/math/KVector;)Lorg/eclipse/elk/core/math/KVector;
? ? ? A getGraphSize
? ? ?
moveGraphs E(Lorg/eclipse/elk/alg/layered/graph/LGraph;Ljava/util/Collection;DD)V
components target *Lorg/eclipse/elk/alg/layered/graph/LGraph; firstComponent component offset #Lorg/eclipse/elk/core/math/KVector; componentSpacing group 7Lorg/eclipse/elk/alg/layered/components/ComponentGroup; groupSize h compactor