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_FONT Ljava/awt/Font; graph Lorg/jgraph/JGraph; domain 8Lorg/apache/cayenne/configuration/DataChannelDescriptor; entityCells Ljava/util/Map; Signature FLjava/util/Map; relCells ALjava/util/Map; createdObjects Ljava/util/List; 5Ljava/util/List; mediator .Lorg/apache/cayenne/modeler/ProjectController; selectedEntity Lorg/apache/cayenne/map/Entity; popup Ljavax/swing/JPopupMenu; undoEventsDisabled Z ()V Code LineNumberTable LocalVariableTable this 3Lorg/apache/cayenne/modeler/graph/BaseGraphBuilder;
buildGraph j(Lorg/apache/cayenne/modeler/ProjectController;Lorg/apache/cayenne/configuration/DataChannelDescriptor;Z)V cell #Lorg/jgraph/graph/DefaultGraphCell; array entity i$ Ljava/util/Iterator; mapCell map Lorg/apache/cayenne/map/DataMap;
sourceCell facade Lcom/jgraph/layout/JGraphFacade; layout /Lcom/jgraph/layout/organic/JGraphOrganicLayout; nested i I
isolatedIndex n x pref Ljava/awt/Dimension; dx dy posX posY row doLayout model Lorg/jgraph/graph/GraphModel; view #Lorg/jgraph/graph/GraphLayoutCache; isolatedObjects LocalVariableTypeTable createEntityCell D(Lorg/apache/cayenne/map/Entity;)Lorg/jgraph/graph/DefaultGraphCell;
getEntityCell 7(Ljava/lang/String;)Lorg/jgraph/graph/DefaultGraphCell;
entityName Ljava/lang/String; postProcessEntity E(Lorg/apache/cayenne/map/Entity;Lorg/jgraph/graph/DefaultGraphCell;)V edge Lorg/jgraph/graph/DefaultEdge; rel %Lorg/apache/cayenne/map/Relationship;
isIsolated Z(Lorg/apache/cayenne/configuration/DataChannelDescriptor;Lorg/apache/cayenne/map/Entity;)Z source getEntities 8(Lorg/apache/cayenne/map/DataMap;)Ljava/util/Collection; Z(Lorg/apache/cayenne/map/DataMap;)Ljava/util/Collection<+Lorg/apache/cayenne/map/Entity;>; getRelationshipLabel 9(Lorg/apache/cayenne/map/Relationship;)Ljava/lang/String; getCellMetadata V(Lorg/apache/cayenne/map/Entity;)Lorg/apache/cayenne/modeler/graph/EntityCellMetadata; showPopup 2(Ljava/awt/Point;Lorg/apache/cayenne/map/Entity;)V p Ljava/awt/Point; getSelectedEntity !()Lorg/apache/cayenne/map/Entity; createPopupMenu ()Ljavax/swing/JPopupMenu;
actionManager 1Lorg/apache/cayenne/modeler/action/ActionManager; menu updateEntityCell "(Lorg/apache/cayenne/map/Entity;)V e updateRelationshipCell ((Lorg/apache/cayenne/map/Relationship;)V removeEntityCell removeRelationshipCell createRelationshipCell E(Lorg/apache/cayenne/map/Relationship;)Lorg/jgraph/graph/DefaultEdge; reverse insertRelationshipCell insertEntityCell updateRelationshipLabels k(Lorg/jgraph/graph/DefaultEdge;Lorg/apache/cayenne/map/Relationship;Lorg/apache/cayenne/map/Relationship;)V
targetCell labels [Ljava/lang/Object; labelPositions [Ljava/awt/geom/Point2D; getGraph ()Lorg/jgraph/JGraph; dataMapAdded 8(Lorg/apache/cayenne/configuration/event/DataMapEvent;)V 5Lorg/apache/cayenne/configuration/event/DataMapEvent; dataMapChanged dataMapRemoved setProjectController 1(Lorg/apache/cayenne/modeler/ProjectController;)V
setDataDomain ;(Lorg/apache/cayenne/configuration/DataChannelDescriptor;)V
getDataDomain :()Lorg/apache/cayenne/configuration/DataChannelDescriptor; destroy remapEntity -(Lorg/apache/cayenne/map/event/EntityEvent;)V *Lorg/apache/cayenne/map/event/EntityEvent; remapRelationship 3(Lorg/apache/cayenne/map/event/RelationshipEvent;)V 0Lorg/apache/cayenne/map/event/RelationshipEvent; getQualifiedName encodeAsXML '(Lorg/apache/cayenne/util/XMLEncoder;)V rect Ljava/awt/geom/Rectangle2D; entry Entry Ljava/util/Map$Entry; encoder $Lorg/apache/cayenne/util/XMLEncoder; LLjava/util/Map$Entry; encodeRecangle B(Lorg/apache/cayenne/util/XMLEncoder;Ljava/awt/geom/Rectangle2D;)V edit (Ljava/util/Map;)V insert (Ljava/lang/Object;)V Ljava/lang/Object; runWithUndoDisabled (Ljava/lang/Runnable;)V r Ljava/lang/Runnable; undoableEditHappened ((Ljavax/swing/event/UndoableEditEvent;)V %Ljavax/swing/event/UndoableEditEvent;
SourceFile BaseGraphBuilder.java ? ? org/jgraph/JGraph "org/jgraph/graph/DefaultGraphModelklhijk !org/jgraph/graph/GraphLayoutCache 'org/jgraph/graph/DefaultCellViewFactorymno 3org/apache/cayenne/modeler/graph/BaseGraphBuilder$1pqr 3org/apache/cayenne/modeler/graph/BaseGraphBuilder$2st java/util/HashMap ? ? java/util/ArrayList ? ? ? ?uvwxyz{|}~ 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$Double Double?????????AB??? javax/swing/border/LineBorder????????????w #org/apache/cayenne/map/Relationship?H?HUV???} 0..*?} 1 0..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[XR 3org/apache/cayenne/modeler/graph/BaseGraphBuilder$3????? 3org/apache/cayenne/modeler/graph/BaseGraphBuilder$4??????? ? ??????????????? java/lang/Object java/lang/StringBuilder?? ?@???? java/awt/geom/Point2D java/awt/geom/Point2D$Double??????SO ? ???? ? ?????}????????H .