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

org.apache.cayenne.modeler.graph.BaseGraphBuilder.class Maven / Gradle / Ivy

The newest version!
????1
??	???
??
?
?
??
????
?

?
??
?
??
?
??
?	???
?	??	??
??????????
!???
???
??
??
!?
%???
????

??
.??
0?B?0??@
0?@?@
0?A.??
0?
0?
0?
0?
.?
????
??@
??
?	??	????
!??@$
J?
??
???
??
!?
???	??
T?
??
????
!?
%??
\?
\?
????
%?
\??
\???	??	??
??	??	??
o?
??
???
o??
q?
q?
o?
o?
q
{?
o
?
?	

\
?
??
?

?
??
??
??
?
?	?
?
?
?


?
? 
??
\?
?!"
?#
?$?
?%&'?????????ə?????
?(?????????$
?)
*+
?,	?-
./	?0
.1
23
24
25
63
67
689
65:
;<
?=
>$?
@
?AB
;C
;D?EF?GH?IJK?L
M
?NOPQ
?R
?ST
?UV
?WX
?YZ
?[\
?]	?^_`
.a
?b
cdef
?ghijInnerClasses	EDGE_FONTLjava/awt/Font;graphLorg/jgraph/JGraph;domain8Lorg/apache/cayenne/configuration/DataChannelDescriptor;entityCellsLjava/util/Map;	SignatureFLjava/util/Map;relCellsALjava/util/Map;createdObjectsLjava/util/List;5Ljava/util/List;mediator.Lorg/apache/cayenne/modeler/ProjectController;selectedEntityLorg/apache/cayenne/map/Entity;popupLjavax/swing/JPopupMenu;undoEventsDisabledZ()VCodeLineNumberTableLocalVariableTablethis3Lorg/apache/cayenne/modeler/graph/BaseGraphBuilder;
buildGraphj(Lorg/apache/cayenne/modeler/ProjectController;Lorg/apache/cayenne/configuration/DataChannelDescriptor;Z)Vcell#Lorg/jgraph/graph/DefaultGraphCell;arrayentityi$Ljava/util/Iterator;mapCellmap Lorg/apache/cayenne/map/DataMap;
sourceCellfacade Lcom/jgraph/layout/JGraphFacade;layout/Lcom/jgraph/layout/organic/JGraphOrganicLayout;nestediI
isolatedIndexnxprefLjava/awt/Dimension;dxdyposXposYrowdoLayoutmodelLorg/jgraph/graph/GraphModel;view#Lorg/jgraph/graph/GraphLayoutCache;isolatedObjectsLocalVariableTypeTablecreateEntityCellD(Lorg/apache/cayenne/map/Entity;)Lorg/jgraph/graph/DefaultGraphCell;
getEntityCell7(Ljava/lang/String;)Lorg/jgraph/graph/DefaultGraphCell;
entityNameLjava/lang/String;postProcessEntityE(Lorg/apache/cayenne/map/Entity;Lorg/jgraph/graph/DefaultGraphCell;)VedgeLorg/jgraph/graph/DefaultEdge;rel%Lorg/apache/cayenne/map/Relationship;
isIsolatedZ(Lorg/apache/cayenne/configuration/DataChannelDescriptor;Lorg/apache/cayenne/map/Entity;)ZsourcegetEntities8(Lorg/apache/cayenne/map/DataMap;)Ljava/util/Collection;Z(Lorg/apache/cayenne/map/DataMap;)Ljava/util/Collection<+Lorg/apache/cayenne/map/Entity;>;getRelationshipLabel9(Lorg/apache/cayenne/map/Relationship;)Ljava/lang/String;getCellMetadataV(Lorg/apache/cayenne/map/Entity;)Lorg/apache/cayenne/modeler/graph/EntityCellMetadata;	showPopup2(Ljava/awt/Point;Lorg/apache/cayenne/map/Entity;)VpLjava/awt/Point;getSelectedEntity!()Lorg/apache/cayenne/map/Entity;createPopupMenu()Ljavax/swing/JPopupMenu;
actionManager1Lorg/apache/cayenne/modeler/action/ActionManager;menuupdateEntityCell"(Lorg/apache/cayenne/map/Entity;)VeupdateRelationshipCell((Lorg/apache/cayenne/map/Relationship;)VremoveEntityCellremoveRelationshipCellcreateRelationshipCellE(Lorg/apache/cayenne/map/Relationship;)Lorg/jgraph/graph/DefaultEdge;reverseinsertRelationshipCellinsertEntityCellupdateRelationshipLabelsk(Lorg/jgraph/graph/DefaultEdge;Lorg/apache/cayenne/map/Relationship;Lorg/apache/cayenne/map/Relationship;)V
targetCelllabels[Ljava/lang/Object;labelPositions[Ljava/awt/geom/Point2D;getGraph()Lorg/jgraph/JGraph;dataMapAdded8(Lorg/apache/cayenne/configuration/event/DataMapEvent;)V5Lorg/apache/cayenne/configuration/event/DataMapEvent;dataMapChangeddataMapRemovedsetProjectController1(Lorg/apache/cayenne/modeler/ProjectController;)V
setDataDomain;(Lorg/apache/cayenne/configuration/DataChannelDescriptor;)V
getDataDomain:()Lorg/apache/cayenne/configuration/DataChannelDescriptor;destroyremapEntity-(Lorg/apache/cayenne/map/event/EntityEvent;)V*Lorg/apache/cayenne/map/event/EntityEvent;remapRelationship3(Lorg/apache/cayenne/map/event/RelationshipEvent;)V0Lorg/apache/cayenne/map/event/RelationshipEvent;getQualifiedNameencodeAsXML'(Lorg/apache/cayenne/util/XMLEncoder;)VrectLjava/awt/geom/Rectangle2D;entryEntryLjava/util/Map$Entry;encoder$Lorg/apache/cayenne/util/XMLEncoder;LLjava/util/Map$Entry;encodeRecangleB(Lorg/apache/cayenne/util/XMLEncoder;Ljava/awt/geom/Rectangle2D;)Vedit(Ljava/util/Map;)Vinsert(Ljava/lang/Object;)VLjava/lang/Object;runWithUndoDisabled(Ljava/lang/Runnable;)VrLjava/lang/Runnable;undoableEditHappened((Ljavax/swing/event/UndoableEditEvent;)V%Ljavax/swing/event/UndoableEditEvent;
SourceFileBaseGraphBuilder.java??org/jgraph/JGraph"org/jgraph/graph/DefaultGraphModelklhijk!org/jgraph/graph/GraphLayoutCache'org/jgraph/graph/DefaultCellViewFactorymno3org/apache/cayenne/modeler/graph/BaseGraphBuilder$1pqr3org/apache/cayenne/modeler/graph/BaseGraphBuilder$2stjava/util/HashMap??java/util/ArrayList????uvwxyz{|}~org/apache/cayenne/map/DataMap!org/jgraph/graph/DefaultGraphCell???<=org/apache/cayenne/map/Entity-.9:???????34????com/jgraph/layout/JGraphFacade?-com/jgraph/layout/organic/JGraphOrganicLayout????????????????????????????????? java/awt/geom/Rectangle2D$DoubleDouble?????????AB???javax/swing/border/LineBorder????????????w#org/apache/cayenne/map/Relationship?H?HUV???}0..*?}10..1????IJ?????????javax/swing/JPopupMenu;org/apache/cayenne/modeler/graph/action/EntityDisplayAction??????7org/apache/cayenne/modeler/action/CreateAttributeAction???-org/apache/cayenne/modeler/util/CayenneAction?:org/apache/cayenne/modeler/action/CreateRelationshipAction:org/apache/cayenne/modeler/graph/action/RemoveEntityAction????u@org/jgraph/graph/DefaultEdge??Z[XR3org/apache/cayenne/modeler/graph/BaseGraphBuilder$3?????3org/apache/cayenne/modeler/graph/BaseGraphBuilder$4???????????????????????java/lang/Objectjava/lang/StringBuilder?? ?@????java/awt/geom/Point2Djava/awt/geom/Point2D$Double??????SO???????????}????????H.
	

java/util/Map$Entryx="??" y="?	" width="??
" height="??3org/apache/cayenne/modeler/graph/BaseGraphBuilder$53org/apache/cayenne/modeler/graph/BaseGraphBuilder$6????
java/awt/FontVerdana1org/apache/cayenne/modeler/graph/BaseGraphBuilder-org/apache/cayenne/modeler/graph/GraphBuilder6org/apache/cayenne/configuration/event/DataMapListenersetModel (Lorg/jgraph/graph/GraphModel;)VB(Lorg/jgraph/graph/GraphModel;Lorg/jgraph/graph/CellViewFactory;)VsetGraphLayoutCache&(Lorg/jgraph/graph/GraphLayoutCache;)V6(Lorg/apache/cayenne/modeler/graph/BaseGraphBuilder;)VaddMouseListener!(Ljava/awt/event/MouseListener;)VaddMouseWheelListener&(Ljava/awt/event/MouseWheelListener;)V6org/apache/cayenne/configuration/DataChannelDescriptorgetDataMaps()Ljava/util/Collection;java/util/Collectioniterator()Ljava/util/Iterator;java/util/IteratorhasNext()Znext()Ljava/lang/Object;java/util/Listadd(Ljava/lang/Object;)Z
getChildAt(I)Ljavax/swing/tree/TreeNode;getName()Ljava/lang/String;
java/util/Mapget&(Ljava/lang/Object;)Ljava/lang/Object;toArray()[Ljava/lang/Object;([Ljava/lang/Object;)V(Lorg/jgraph/JGraph;)VsetNodeDistributionCostFactor(D)VsetEdgeLengthCostFactorsetEdgeCrossingCostFactorsetOptimizeBorderLine(Z)VsetOptimizeEdgeDistancerun#(Lcom/jgraph/layout/JGraphFacade;)VcreateNestedMap(ZZ)Ljava/util/Map;size()Ijava/lang/Mathsqrt(D)DceilgetPreferredSize()Ljava/awt/Dimension;java/awt/Dimensionwidthheight(I)Ljava/lang/Object;
getAttributes!()Lorg/jgraph/graph/AttributeMap;java/awt/geom/Rectangle2D(DDDD)Vorg/jgraph/graph/GraphConstants	setBounds-(Ljava/util/Map;Ljava/awt/geom/Rectangle2D;)VgetModel()Lorg/jgraph/graph/GraphModel;org/jgraph/graph/GraphModeladdUndoableEditListener+(Ljavax/swing/event/UndoableEditListener;)V	setResize(Ljava/util/Map;Z)Vjava/awt/ColorBLACKLjava/awt/Color;(Ljava/awt/Color;)V	setBorder-(Ljava/util/Map;Ljavax/swing/border/Border;)VsetEditableput8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;addPortgetRelationshipsgetSourceEntitygetTargetEntitygetAnyRelationshipF(Lorg/apache/cayenne/map/Entity;)Lorg/apache/cayenne/map/Relationship;isToManyisMandatoryjava/awt/Pointyshow(Ljava/awt/Component;II)V&org/apache/cayenne/modeler/ApplicationgetInstance*()Lorg/apache/cayenne/modeler/Application;getActionManager3()Lorg/apache/cayenne/modeler/action/ActionManager;2(Lorg/apache/cayenne/modeler/graph/GraphBuilder;)V	buildMenu()Ljavax/swing/JMenuItem;0(Ljavax/swing/JMenuItem;)Ljavax/swing/JMenuItem;addSeparator/org/apache/cayenne/modeler/action/ActionManager	getAction'(Ljava/lang/Class;)Ljavax/swing/Action;a(Lorg/apache/cayenne/modeler/graph/GraphBuilder;Lorg/apache/cayenne/modeler/util/CayenneAction;)V-(Ljavax/swing/Action;)Ljavax/swing/JMenuItem;setValue$(Ljava/util/Map;Ljava/lang/Object;)VgetReverseRelationship'()Lorg/apache/cayenne/map/Relationship;Y(Lorg/apache/cayenne/modeler/graph/BaseGraphBuilder;Lorg/jgraph/graph/DefaultGraphCell;)VremoveT(Lorg/apache/cayenne/modeler/graph/BaseGraphBuilder;Lorg/jgraph/graph/DefaultEdge;)VcontainsKeysetLabelAlongEdge
setSelectablesetFont!(Ljava/util/Map;Ljava/awt/Font;)Vrandom()DgetWidth	getHeight	setSource	setTargetappend-(Ljava/lang/String;)Ljava/lang/StringBuilder;toStringsetExtraLabels%(Ljava/util/Map;[Ljava/lang/Object;)V(DD)VsetExtraLabelPositions*(Ljava/util/Map;[Ljava/awt/geom/Point2D;)V3org/apache/cayenne/configuration/event/DataMapEvent
getDataMap"()Lorg/apache/cayenne/map/DataMap;,org/apache/cayenne/modeler/ProjectControlleraddDataMapListener;(Lorg/apache/cayenne/configuration/event/DataMapListener;)VremoveDataMapListener(org/apache/cayenne/map/event/EntityEventisNameChange
getNewName
getOldName.org/apache/cayenne/map/event/RelationshipEventgetRelationship	getEntity"org/apache/cayenne/util/XMLEncoderprint(Ljava/lang/String;)VgetType.()Lorg/apache/cayenne/modeler/graph/GraphType;*org/apache/cayenne/modeler/graph/GraphTypegetScalevalueOf(D)Ljava/lang/String;printlnindent(I)VentrySet()Ljava/util/Set;
java/util/SetgetKeygetValue
getCellBounds/(Ljava/lang/Object;)Ljava/awt/geom/Rectangle2D;getX(D)Ljava/lang/StringBuilder;getYE(Lorg/apache/cayenne/modeler/graph/BaseGraphBuilder;Ljava/util/Map;)VH(Lorg/apache/cayenne/modeler/graph/BaseGraphBuilder;Ljava/lang/Object;)Vjava/lang/RunnablesetDirtygetUndoManager6()Lorg/apache/cayenne/modeler/undo/CayenneUndoManager;2org/apache/cayenne/modeler/undo/CayenneUndoManager(Ljava/lang/String;II)V ????
????????????????????????????&/*??I!	
\?*???*?Y???Y?:*??*+?*,?	?
Y?Y??
:*??*??Y*??*??Y*??*?Y??*?Y??*?Y???Y?:,??:????? :?!Y?":	*?	?#W*?$?:

??J
??%:*?&:*,?'?
*??:

?#W
?(?!?#W?????w,??:??S?? :*?$?:		??-	??%:
*?
?)?*?!:*
?+??ϧ??*??,?-?S?.Y*??/:?0Y?1:2?45?78?:?;?<?=?>:	*	???@???@l6h`??AgBo?D?6*??E:		?Fll6
	?Gll6
l6l6
66?@?v6?@?Rd?H?H?!?I?JY	?Fd?	?G
hld?KK?M?N?
`6????
l6
l`6
?????,?-*??O*?P???vx{|}%*?/?A?J?Y?h?s?~?????????????????#?&?)?J?m???????????????????????????????????%?1?=?C?I?L?[?t????????????????B ?0
?
?8??Q
?j	?s???m?
W4	JA4Z?C?:??	^[O??%? 	1?!
=?"C?#I?$
L?%????????&?'(A?)*?V+?,
?
?V+?-.?D?!Y*+?Q?RM,?I?S,?I?TY?U?V?W,?I?X*?+?),?YW,?ZW,?

&
.=B DD?
7/0B*?+?*?!?1234?K+?[?N-??:-??\:?]?$?^?*?_:?*??#W??ñ.6; G"J$>656)78
@KK?K9:?b,?[?`?W+??N-??B-?? :*?$?:????%:,?a????ߧ????+.*/M0V1^5`7HM;?7$*1Hbb??b?<=?>
?@Y*??*?b?c?*?d?e?f?ABE
FH78ABCDv(*,?g*?h?**?i?h*?h*?+?j+?k?l?QRSU'V ((EF(?GH/*?g?YIJ?n?m?nL?oY?pM,?qY*?r?s?tW,?u,?qY*+v?w?x?y?s?tW,?qY*+z?w?x?y?s?tW,?u,?{Y*?|?}W,?&	`bcd#e?g[i_jll ngKL_M?NO?C*?+?)?*?!M,?0,?I*+?Q?~,?I?S?Y?N-,,?I?YW*-???"stu!v)x1y={B}*1?CCP?2QR?O+?]?J+?^?C*?+??*??M,?)*,++?????Y?N-,,???YW*-???*+???*
???#?-?5?A?F?I?N?*5?/56OO78SO1*?+?)?*?!M,?*??Y*,????*?+?)??W????"?0? 11P? TR1*?+??*??M,?*??Y*,????*?+???W????"?0? 1178 56UV?l*?+????]+??M??Y??N-???X-????-????-??????*-+,??*?+?-?YW,?*?,?-?YW-??6
????%?-?5???F?U?Y?h?j?*UW8M56ll78XRR*+?_M*,?????? 7856YO?>*+?&M,?I?JY??*????k??*????kKK?M?N*+,?+*,?????2?8?=? >>?8Z[?
?*?,?]?)?*?!:*?,?^?)?*?!:+??(???+??(?????Y??Y??,???????,??????SY-??? ??Y??-???????-??????S:+??????Y??Y5????kckK??SY??Y5????kgk???S:+?????&	??*?=?P?????????R??56?78?W8?*?\?Q]^?
_`ab/*??cd5?Pefd5?Pegdz**+???$?M,??,??%N*-?????!)*!?**PehiG*+??+*???
??jk>*+???
??lm/*???n7	*??*???
 	op_#+???*?+??*?+?????YW?&'")##Pqrs~B+???=*?+???*???Y??+???)?????+?????????YW?/0A6BBPtu@K!??Y??*?]?)?????*???????<!78vwO?+???+*??????+???+*???????+¶?+??*?????M,??L,???N+ȶ?+-???ʶ?+˶?-???!:*???:*+??+϶ç??+??+жñJ@ABC%D+E0GRHXIeJkLvM?N?O?P?R?S?T>v?
xyR<z|?R??}~,R<z???o+Ѷ?+??Y??,?Ҷ?Զ?????+??Y??,?ն?ֶ?????+??Y??,?׶?ض?????+??Y??,?ٶ?˶??????WX Y:ZT[n\ oo}~oxy"??F*??Y*+?۷??
_
e?"??F*??Y*+?ݷ??
h
n?"??t*??+??*?ާM*??,??qsvwvx????Z*?ޚ*????m??+??{}?P??(??Y?
????K???J	??????{	J??	???	




© 2015 - 2024 Weber Informatics LLC | Privacy Policy