org.apache.cayenne.modeler.graph.ObjGraphBuilder.class Maven / Gradle / Ivy
The newest version!
???? 1J
L ? ?
? K ?
? ?
L ? ?
? ? K ?
? ?
? ? ?
?
?
? ?
?
? ? ? ?
L ?
? K ?
? ?
? ?
K ? K ? ? ? ? ? K ?
? ? ? ? ?
! ?
?
! ?
! ?
! ?@?
? ?
? ?
? ? ? ? ?
, ?
L ?
? ?
? ?
? ?
L ?
? ?
? ?
? ?
? ?
K ?
K ?
K ? K ?
? ? ?
? ? ? ?
? ?
? ?
K ?
? ?
K ?
? ?
K ?
K ?
L ? ? ? ?
I ? ? ? ? ? ? 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 V W java/util/HashMap R S ? ? ? b c org/apache/cayenne/map/ObjEntity ? ? %org/apache/cayenne/map/EntityResolver } ~ ? ? ? ? ? ? 6org/apache/cayenne/configuration/DataChannelDescriptor ? ? V ? ? ? ? ? ? l m P Q
r s
S !org/jgraph/graph/DefaultGraphCell org/jgraph/graph/DefaultEdge !" 6org/apache/cayenne/modeler/graph/ObjEntityCellMetadata V# { |$%&'() W*%+',)-./0 ?1 ?2 ?34567 java/lang/Object89:9;<= ? ?>? ?@ABCDEDFGH java/awt/Color VI 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; org/jgraph/graph/GraphConstants
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 K L M N O P Q R S T U V W X B *? *? Y? ? ? Y 5 6 7 Z [ \ ] ^ X 9 +? ? Y ; Z [ \ _ ` T a b c X ? Q*+,? ? ?,? ? ? ?? Y*?
? ? ?
? ? N-,? ? :? ? ? ? ? ? Y A B E F K / O 9 Q Z 4 Q [ \ Q d e Q f g / " h i 9 j k l m X ? 1*+,? ,? ? ? ,? ? *+? ? N-? *? -? W? Y V X Y [ ! \ % ] 0 _ Z * 1 [ \ 1 f g 1 n o ! p q r s X ?*? +? ? ?+? M,? {*? +? ? ? N*? ,? ? ? :? !Y? ":-? #? $? #? %? &?Y'QY'Q? (? &? )? &? **? +? + W?? Y : b
c d e ' f 9 h B i L j W l l o u r ~ t ? v ? y Z > ' g t o 9 U u o B L p q | v w ? [ \ ? f w x y X A
? ,Y*+? ? -? Y ~ Z
[ \
z g { | X Y *+? .+*? /+*? 0+*? 1? Y ? ?
? ? ? Z [ \ } ~ W X W *? 2*?
*? 3*?
*? 4*?
*? 5? Y ? ? ? ? ? Z [ \ ? ? X A *+? 6? 7? Y
? ? Z [ \ z ? ? ? X E ?*+? 8*+? 6? 9+? 6? M*? ,? ? !N-? j,? ? #*? :? ;?