org.apache.cayenne.modeler.graph.ObjGraphBuilder.class Maven / Gradle / Ivy
???? 1J
M ? ?
? L ?
? ?
M ? ?
? ? L ?
? ?
? ? ?
?
?
? ?
?
? ? ? ?
M ?
? L ?
) ?
) ?
L ? L ? ? ? ? ? L ?
? ? ? ? ?
! ?
?
! ?
! ?
! ?@?
) ? ?
) ?
) ? ? ? ?
- ?
M ?
? ?
? ?
? ?
M ?
? ?
? ?
? ?
? ?
L ?
L ?
L ? L ?
? ? ?
? ? ? ?
? ?
? ?
L ?
? ?
L ?
? ?
L ?
L ?
M ? ? ? ?
J ? ? ? ? ? ? ENTITY_COLOR Ljava/awt/Color; inheritanceEdges Ljava/util/Map; Signature NLjava/util/Map; ()V Code LineNumberTable LocalVariableTable this 2Lorg/apache/cayenne/modeler/graph/ObjGraphBuilder; getEntities 8(Lorg/apache/cayenne/map/DataMap;)Ljava/util/Collection; map Lorg/apache/cayenne/map/DataMap; Z(Lorg/apache/cayenne/map/DataMap;)Ljava/util/Collection<+Lorg/apache/cayenne/map/Entity;>;
isIsolated Z(Lorg/apache/cayenne/configuration/DataChannelDescriptor;Lorg/apache/cayenne/map/Entity;)Z domain 8Lorg/apache/cayenne/configuration/DataChannelDescriptor; entity Lorg/apache/cayenne/map/Entity; resolver 'Lorg/apache/cayenne/map/EntityResolver; inheritanceTree .Lorg/apache/cayenne/map/EntityInheritanceTree; postProcessEntity E(Lorg/apache/cayenne/map/Entity;Lorg/jgraph/graph/DefaultGraphCell;)V cell #Lorg/jgraph/graph/DefaultGraphCell; edge Lorg/jgraph/graph/DefaultEdge; createInheritanceEdge B(Lorg/apache/cayenne/map/ObjEntity;)Lorg/jgraph/graph/DefaultEdge;
sourceCell
targetCell superEntity "Lorg/apache/cayenne/map/ObjEntity; getCellMetadata V(Lorg/apache/cayenne/map/Entity;)Lorg/apache/cayenne/modeler/graph/EntityCellMetadata; e setProjectController 1(Lorg/apache/cayenne/modeler/ProjectController;)V mediator .Lorg/apache/cayenne/modeler/ProjectController; destroy objEntityAdded -(Lorg/apache/cayenne/map/event/EntityEvent;)V *Lorg/apache/cayenne/map/event/EntityEvent; objEntityChanged nested inheritanceEdge objEntityRemoved objAttributeAdded 0(Lorg/apache/cayenne/map/event/AttributeEvent;)V -Lorg/apache/cayenne/map/event/AttributeEvent; objAttributeChanged objAttributeRemoved objRelationshipAdded 3(Lorg/apache/cayenne/map/event/RelationshipEvent;)V 0Lorg/apache/cayenne/map/event/RelationshipEvent; objRelationshipChanged objRelationshipRemoved removeEntityCell "(Lorg/apache/cayenne/map/Entity;)V getType .()Lorg/apache/cayenne/modeler/graph/GraphType;
SourceFile ObjGraphBuilder.java W X java/util/HashMap S T ? ? ? c d org/apache/cayenne/map/ObjEntity ? ? %org/apache/cayenne/map/EntityResolver ~ ? ? ? ? ? ? 6org/apache/cayenne/configuration/DataChannelDescriptor ? ? W ? ? ? ? ? m n Q R
s t
T !org/jgraph/graph/DefaultGraphCell org/jgraph/graph/DefaultEdge org/jgraph/graph/GraphConstants !" 6org/apache/cayenne/modeler/graph/ObjEntityCellMetadata W# | }$%&'() ? X*%+',)-./0 ?1 ?2 ?34567 java/lang/Object89:9;<= ? ?>? ?@ABCDEDFGH java/awt/Color WI 0org/apache/cayenne/modeler/graph/ObjGraphBuilder 1org/apache/cayenne/modeler/graph/BaseGraphBuilder .org/apache/cayenne/map/event/ObjEntityListener 1org/apache/cayenne/map/event/ObjAttributeListener 4org/apache/cayenne/map/event/ObjRelationshipListener org/apache/cayenne/map/DataMap getObjEntities ()Ljava/util/Collection; getSuperEntity $()Lorg/apache/cayenne/map/ObjEntity; ,org/apache/cayenne/modeler/ProjectController
getProject &()Lorg/apache/cayenne/project/Project; "org/apache/cayenne/project/Project getRootNode 6()Lorg/apache/cayenne/configuration/ConfigurationNode; getDataMaps (Ljava/util/Collection;)V org/apache/cayenne/map/Entity getName ()Ljava/lang/String; lookupInheritanceTree B(Ljava/lang/String;)Lorg/apache/cayenne/map/EntityInheritanceTree; ,org/apache/cayenne/map/EntityInheritanceTree getChildren java/util/Collection isEmpty ()Z
getAttributes !()Lorg/jgraph/graph/AttributeMap;
setBackground "(Ljava/util/Map;Ljava/awt/Color;)V setOpaque (Ljava/util/Map;Z)V createdObjects Ljava/util/List; java/util/List add (Ljava/lang/Object;)Z
java/util/Map containsKey entityCells get &(Ljava/lang/Object;)Ljava/lang/Object;
getChildAt (I)Ljavax/swing/tree/TreeNode; setSource (Ljava/lang/Object;)V setTarget setDashPattern (Ljava/util/Map;[F)V
setLineEnd (Ljava/util/Map;I)V
setSelectable put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; D(Lorg/apache/cayenne/modeler/graph/GraphBuilder;Ljava/lang/String;)V addObjEntityListener 3(Lorg/apache/cayenne/map/event/ObjEntityListener;)V addObjAttributeListener 6(Lorg/apache/cayenne/map/event/ObjAttributeListener;)V addObjRelationshipListener 9(Lorg/apache/cayenne/map/event/ObjRelationshipListener;)V removeObjEntityListener removeObjAttributeListener removeObjRelationshipListener (org/apache/cayenne/map/event/EntityEvent getEntity !()Lorg/apache/cayenne/map/Entity; insertEntityCell remapEntity updateEntityCell graph Lorg/jgraph/JGraph; org/jgraph/JGraph getGraphLayoutCache %()Lorg/jgraph/graph/GraphLayoutCache; !org/jgraph/graph/GraphLayoutCache remove ([Ljava/lang/Object;)V edit (Ljava/util/Map;)V insert +org/apache/cayenne/map/event/AttributeEvent remapRelationship .org/apache/cayenne/map/event/RelationshipEvent getRelationship '()Lorg/apache/cayenne/map/Relationship; updateRelationshipCell ((Lorg/apache/cayenne/map/Relationship;)V removeRelationshipCell *org/apache/cayenne/modeler/graph/GraphType CLASS ,Lorg/apache/cayenne/modeler/graph/GraphType; (III)V L M N O P Q R S T U V W X Y B *? *? Y? ? ? Z 5 6 7 [ \ ] ^ _ Y 9 +? ? Z ; [ \ ] ` a U b c d Y ? Q*+,? ? ?,? ? ? ?? Y*?
? ? ?
? ? N-,? ? :? ? ? ? ? ? Z . A B E F K L " M / O 1 P 4 O 9 Q [ 4 Q \ ] Q e f Q g h / " i j 9 k l m n Y ? 1*+,? ,? ? ? ,? ? *+? ? N-? *? -? W? Z V X Y [ ! \ % ] 0 _ [ * 1 \ ] 1 g h 1 o p ! q r s t Y ( ?*? +? ? ?+? M,? {*? +? ? ? N*? ,? ? ? :? !Y? ":-? #? $? #? %? &?Y'QY'Q? (? &? *? &? +*? +? , W?? Z B b
c d e ' f 9 h B i L j W l l o n p r o u r ~ t ? v ? y [ > ' g u p 9 U v p B L q r | w x ? \ ] ? g x y z Y A
? -Y*+? ? .? Z ~ [
\ ]
{ h | } Y Y *+? /+*? 0+*? 1+*? 2? Z ? ?
? ? ? [ \ ] ~ ? X Y W *? 3*?
*? 4*?
*? 5*?
*? 6? Z ? ? ? ? ? [ \ ] ? ? Y A *+? 7? 8? Z
? ? [ \ ] { ? ? ? Y U ?*+? 9*+? 7? :+? 7? M*? ,? ? !N-? j,? ? #*? ;? <? =Y-S? >*? ,? ? W? ]-*? ,? ? ? ? ? #? %? Y? :--? &? , W*? ;? <? @? ,? ? *,? :*? ;? <? A? Z V ? ?
? ? # ? ' ? . ? @ ? N ? T ? Z ? c ? f ? i ? r ? ? ? ? ? ? ? ? ? ? ? ? [ > r ? T ? q r ? \ ] ? { ? ? g x # ? ? r ? ? Y A *+? 7? B? Z
? ? [ \ ] { ? ? ? Y A *+? C? :? Z
? ? [ \ ] { ? ? ? Y A *+? C? :? Z
? ? [ \ ] { ? ? ? Y A *+? C? :? Z
? ? [ \ ] { ? ? ? Y 5 ? Z ? [ \ ] { ? ? ? Y J *+? D*+? E? F? Z ? ?
? [ \ ] { ? ? ? Y A *+? E? G? Z
? ? [ \ ] { ? ? ? Y M *+? H*? +? ? W? Z ? ? ? [ \ ] { h ? ? Y . ? I? Z ? [ \ ] ? X Y , ? JY ? ? ?? K? ? Z 1 ? ?