All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.eclipse.elk.alg.mrtree.TreeUtil.class Maven / Gradle / Ivy

There is a newer version: 1.2024.8
Show newest version
????7$#org/eclipse/elk/alg/mrtree/TreeUtiljava/lang/Object4$SWITCH_TABLE$org$eclipse$elk$core$options$Direction[I()VCode
LineNumberTableLocalVariableTablethis%Lorg/eclipse/elk/alg/mrtree/TreeUtil;getRootS(Lorg/eclipse/elk/alg/mrtree/graph/TGraph;)Lorg/eclipse/elk/alg/mrtree/graph/TNode;
'org/eclipse/elk/alg/mrtree/graph/TGraphgetNodes()Ljava/util/List;java/util/Liststream()Ljava/util/stream/Stream; !test ()Ljava/util/function/Predicate;#%$java/util/stream/Stream&'filter9(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;#)*+	findFirst()Ljava/util/Optional;
-/.java/util/Optional01get()Ljava/lang/Object;3&org/eclipse/elk/alg/mrtree/graph/TNodetGraph)Lorg/eclipse/elk/alg/mrtree/graph/TGraph;depth+(Lorg/eclipse/elk/alg/mrtree/graph/TNode;)I
9:;getChildren:(Lorg/eclipse/elk/alg/mrtree/graph/TNode;)Ljava/util/List;=>?size()IABCapply()Ljava/util/function/Function;#EFGmap8(Ljava/util/function/Function;)Ljava/util/stream/Stream;IJKcompare()Ljava/util/Comparator;#MNOmax,(Ljava/util/Comparator;)Ljava/util/Optional;Qjava/lang/Integer
PST?intValueroot(Lorg/eclipse/elk/alg/mrtree/graph/TNode;childsLjava/util/List;LocalVariableTypeTable:Ljava/util/List;
StackMapTable	Signatured(Lorg/eclipse/elk/alg/mrtree/graph/TNode;)Ljava/util/List;_java/util/ArrayList
^
2bcgetOutgoingEdgesefgiterator()Ljava/util/Iterator;ikjjava/util/Iteratorl1nextn&org/eclipse/elk/alg/mrtree/graph/TEdge
mpqr	getTarget*()Lorg/eclipse/elk/alg/mrtree/graph/TNode;tuvadd(Ljava/lang/Object;)ZixyzhasNext()Z#|}distinct
??java/util/stream/Collectors??toList()Ljava/util/stream/Collector;#???collect0(Ljava/util/stream/Collector;)Ljava/lang/Object;nreout(Lorg/eclipse/elk/alg/mrtree/graph/TEdge;rootDistanceS(Lorg/eclipse/elk/alg/mrtree/graph/TNode;Lorg/eclipse/elk/alg/mrtree/graph/TNode;)I
2??getIncomingEdges?0?(I)Ljava/lang/Object;
m??r	getSource
???pgetAllIncomingEdgesc(Lorg/eclipse/elk/alg/mrtree/graph/TNode;Lorg/eclipse/elk/alg/mrtree/graph/TGraph;)Ljava/util/List;?(Lorg/eclipse/elk/alg/mrtree/graph/TNode;Lorg/eclipse/elk/alg/mrtree/graph/TGraph;)Ljava/util/List;
??getEdges	2???idI	???0org/eclipse/elk/alg/mrtree/options/MrTreeOptions??
TREE_LEVEL,Lorg/eclipse/elk/graph/properties/IProperty;
2???getProperty@(Lorg/eclipse/elk/graph/properties/IProperty;)Ljava/lang/Object;? ?H(Lorg/eclipse/elk/alg/mrtree/graph/TEdge;)Ljava/util/function/Predicate;#???anyMatch!(Ljava/util/function/Predicate;)ZI???sort(Ljava/util/Comparator;)Vgraphe:Ljava/util/List;
getSubtreeA?B?%()Ljava/util/function/BinaryOperator;#???reduce9(Ljava/util/function/BinaryOperator;)Ljava/util/Optional;getAllOutgoingEdges
2???getLabel()Ljava/lang/String;?
SUPER_ROOT
???java/lang/String?vequals?I
getFirstPointM(Lorg/eclipse/elk/alg/mrtree/graph/TEdge;)Lorg/eclipse/elk/core/math/KVector;
m???
getBendPoints*()Lorg/eclipse/elk/core/math/KVectorChain;
?=?&org/eclipse/elk/core/math/KVectorChain?!org/eclipse/elk/core/math/KVector
2???getPosition%()Lorg/eclipse/elk/core/math/KVector;	????xD	????y
???(DD)V
???1getFirstgetLastPoint
???1getLastgetDirectionS(Lorg/eclipse/elk/alg/mrtree/graph/TGraph;)Lorg/eclipse/elk/core/options/Direction;	????	DIRECTION
??&org/eclipse/elk/core/options/DirectionggetDirectionVectorM(Lorg/eclipse/elk/core/options/Direction;)Lorg/eclipse/elk/core/math/KVector;
()[I
??ordinal??d(Lorg/eclipse/elk/core/options/Direction;getNodeSizeInDirectionS(Lorg/eclipse/elk/alg/mrtree/graph/TNode;Lorg/eclipse/elk/core/options/Direction;)D	?
LEFT
2?getSize@	?UP	?RIGHTgetNodeSizeVectorInDirectionu(Lorg/eclipse/elk/alg/mrtree/graph/TNode;Lorg/eclipse/elk/core/options/Direction;)Lorg/eclipse/elk/core/math/KVector;	turnRightR(Lorg/eclipse/elk/core/options/Direction;)Lorg/eclipse/elk/core/options/Direction;	?DOWNturnLefttoNodeBorderl(Lorg/eclipse/elk/core/math/KVector;Lorg/eclipse/elk/core/math/KVector;Lorg/eclipse/elk/core/math/KVector;)V
$&%java/lang/Math'(abs(D)D
$*+,min(DD)Dcenter#Lorg/eclipse/elk/core/math/KVector;whhhabsxabsyxscaleyscalescaleisCycleInducingT(Lorg/eclipse/elk/alg/mrtree/graph/TEdge;Lorg/eclipse/elk/alg/mrtree/graph/TGraph;)Z
9??
;??
?=>?
dotProduct&(Lorg/eclipse/elk/core/math/KVector;)D
getUniqueLong(II)J????abgetLowestParent{(Lorg/eclipse/elk/alg/mrtree/graph/TNode;Lorg/eclipse/elk/alg/mrtree/graph/TGraph;)Lorg/eclipse/elk/alg/mrtree/graph/TNode;	A
J K0(Ljava/util/List;)Ljava/util/function/Predicate;MBNB(Lorg/eclipse/elk/core/math/KVector;)Ljava/util/function/Function;PRQjava/util/ComparatorSKnaturalOrderUjava/lang/DoubleW XU(Lorg/eclipse/elk/core/math/KVector;Ljava/lang/Double;)Ljava/util/function/Predicate;dirVecsourcesparentslowestParentPosLjava/lang/Double;lowestParentgetLeftMost>(Ljava/lang/Iterable;)Lorg/eclipse/elk/alg/mrtree/graph/TNode;h(Ljava/lang/Iterable;)Lorg/eclipse/elk/alg/mrtree/graph/TNode;
c_d?(Ljava/lang/Iterable;I)Lorg/eclipse/elk/alg/mrtree/graph/TNode;currentlevelLjava/lang/Iterable;>Ljava/lang/Iterable;i(Ljava/lang/Iterable;I)Lorg/eclipse/elk/alg/mrtree/graph/TNode;
jlk#com/google/common/collect/Iterables>m(Ljava/lang/Iterable;)Io%org/eclipse/elk/alg/mrtree/TreeUtil$1
nresjava/lang/Iterable
2u:v()Ljava/lang/Iterable;
jxyzconcat>(Ljava/lang/Iterable;Ljava/lang/Iterable;)Ljava/lang/Iterable;|%org/eclipse/elk/alg/mrtree/TreeUtil$2
{
j??:(Ljava/lang/Iterable;Ljava/lang/Object;)Ljava/lang/Object;	nextLevelcN	?
????values+()[Lorg/eclipse/elk/core/options/Direction;	???	UNDEFINED?java/lang/NoSuchFieldErrorlambda$0+(Lorg/eclipse/elk/alg/mrtree/graph/TNode;)Z	???5org/eclipse/elk/alg/mrtree/options/InternalProperties??ROOT?java/lang/Boolean
???zbooleanValuelambda$1=(Lorg/eclipse/elk/alg/mrtree/graph/TNode;)Ljava/lang/Integer;
?67
P???valueOf(I)Ljava/lang/Integer;lambda$3S(Lorg/eclipse/elk/alg/mrtree/graph/TEdge;Lorg/eclipse/elk/alg/mrtree/graph/TEdge;)Z
m???toStringlambda$4S(Lorg/eclipse/elk/alg/mrtree/graph/TEdge;Lorg/eclipse/elk/alg/mrtree/graph/TEdge;)I
T?J?(DD)Ilambda$5
??;lambda$62(Ljava/util/List;Ljava/util/List;)Ljava/util/List;???addAll(Ljava/util/Collection;)Zreelambda$7lambda$8lambda$9R(Lorg/eclipse/elk/alg/mrtree/graph/TEdge;)Lorg/eclipse/elk/alg/mrtree/graph/TNode;	lambda$10;(Ljava/util/List;Lorg/eclipse/elk/alg/mrtree/graph/TNode;)Z??vcontains	lambda$11_(Lorg/eclipse/elk/core/math/KVector;Lorg/eclipse/elk/alg/mrtree/graph/TNode;)Ljava/lang/Double;
T???(D)Ljava/lang/Double;	lambda$12`(Lorg/eclipse/elk/core/math/KVector;Ljava/lang/Double;Lorg/eclipse/elk/alg/mrtree/graph/TNode;)Z
T???doubleValue()D
SourceFile
TreeUtil.javaBootstrapMethods
???"java/lang/invoke/LambdaMetafactory??metafactory?(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;?v
?????&(Ljava/lang/Object;)Ljava/lang/Object;?
?????'(Ljava/lang/Object;Ljava/lang/Object;)I?
P?J?(II)I?)(Ljava/lang/Integer;Ljava/lang/Integer;)I?v
????+(Lorg/eclipse/elk/alg/mrtree/graph/TEdge;)Z??
??????
??;?;8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;?
?????v
?????
????

??	?v
????
??<(Lorg/eclipse/elk/alg/mrtree/graph/TNode;)Ljava/lang/Double;v
???InnerClasses%java/lang/invoke/MethodHandles$Lookup!java/lang/invoke/MethodHandlesLookupNestMembers1J#	3*?
?
()
		U*????"?(?,?2?1	231
45	67	?6*?8L+?<??+??@?D?H?L?,?P?R`?<=>@
6UV1WXY1WZ[?	:;\]	?L?^Y?`L*?a?dN?-?h?mM+,?o?sW-?w???+??{?~???L+?JKL*K3NJO
 L?VD?X??YD?Z[?2i	??	s *+??*?????m??M,+??`?YZ]^
  ?V UV?V[	??\?	y?^Y?`M+???d:?O?h?mN-?o??*???6-??????-?o?????,?-?????,-?sW?w???,????,?.jl!m/n9oCnFpZqblluwv
*y?Vy?5q?X!A??Yq??[?2i?K	?;\]	?L*?8?<??^Y?`L+*?sW+?*?8????D?????,?L+*?sW+?&	?????;?A?B?J?
 L?V
?XB
?XY
?ZB
?Z[	??\?	)??^Y?`M+???d:?^?h?mN-????*???E-????˶͚6-??????-?o?????,?-?????,-?sW?w???,????,?.??!?>?H?R?U?i?q?{???
*??V??5??X!P??Y???[?2i?Z	??	t1*?ֶښ??Y*?o?ߴ?*?o?ߴ??*?ֶ??ݰ?
??"?&?
1??[&	??	t1*?ֶښ??Y*???ߴ?*???ߴ??*?ֶ??ݰ?
??"?&?
1??[&	??	5*????????
?5	??	?T??*?.?B,6B ??Y?갻?Y?갻?Y?갻?Y???(?4?>?J?
T[(			
	?G+??*???wo?+??*???wo?+??*???o?*???o?????(?/?;?
G?VG[		?g+????Y*???wo??+????Y*???wo??+????Y*???o?갻?Y*???o????#8?S
g?Vg[		r%*????*????*??????!
%[

	 	r%*????*????*??????"#$%&'!)
%[

	!"	P	?,??oJ,??o9+??*??g?#9+??*??g?#9	99
)??	)o9	??
	o9

?)9*Y??+??*??gkc??*Y??+??*??gkc??.56/758<9B;J<Q>Z?o@?A
f
?-.?l.?>.	|/?r0?!d1?/V2?	2S3?5P4?
Z+5?[?B	???	67	?	D+?8?:??Y*?o?ߴ?*???ߴ?g*?o?ߴ?*???ߴ?g??<????KL M5L;M<K
D??D?5[?B	@A	A
? y?B??X

D?
E?	FG	`?+?8?:M*???<??*????H?D?~???N+??-?I?"?~???:?,?L?D?O?L?,?T:?,?V?"?(?,?2:?:defh5iVj]khmvjxno?q?n?s
H??V??5?Y.5gZXVF[Xx$\]?^VY5gZZVF[Z[??	_`\a	B*?b?
efYeg	_d\h	??*?i??=?????nY?pN*?q:??h?2:-?t?wN?w???-?b??C?{Y?}N*?q:??h?2:-?t?wN?w???-?i?	-?b?*?~?2?F??	????0?:?D?J?N?V?m?w???????
H?ef?6?	??1?f0
?VV8?fm
?VY ?eg1?gV8?g[A?$rri?r?rri?r	?W??Y??W????
K*??O?W*??O?W*??O?W*???O?W*??O?W*Y????&)?*36?7@C?DMP?#
[(H????K?K?K?K?
??	8*?????????2
?V
??	2*?????@
?V
??	6+??*???ͬp
??
??	L*???ߴ?+???ߴ???u
????
?;	/*????
?V
??	??^Y?`M,*??W,+??W,?????
 ?X?X?XY ?Z?Z?Z
??	6+??*???ͬ?
??
??	L*?o?ߴ?+?o?ߴ????
????
??	/*???h
??
??	2*+???i
?V
??	k
5??Y+?ߴ?+???oc+?ߴ?+???oc??*?p
??V[=@????
?????????????????????????????????
?? "n{#n{




© 2015 - 2024 Weber Informatics LLC | Privacy Policy