Package com.subhajit.diagram.classdiagrams.impl

Examples of com.subhajit.diagram.classdiagrams.impl.ClassRenderingStrategy


    }
    final ClassDiagramType _classDiagramType = classDiagramType;

    final boolean showMethods = (Boolean) userInputs.get("setMethods");

    final ClassRenderingStrategy strategy = showMethods ? DefaultClassRenderingStrategy.SHOW_ALL_DECLARED_METHODS
        : DefaultClassRenderingStrategy.SHOW_NO_FIELDS_OR_METHODS;

    /*
     * SwtTaskRunner is the standard way to execute long-running tasks
     * within the Swt context.
View Full Code Here


    }
    final ClassDiagramType _classDiagramType = classDiagramType;

    boolean showMethods = editedValues.get("setMethods") == null ? false
        : (Boolean) editedValues.get("setMethods");
    @SuppressWarnings("unused")
    final ClassRenderingStrategy strategy = showMethods ? DefaultClassRenderingStrategy.SHOW_ALL_DECLARED_METHODS
        : DefaultClassRenderingStrategy.SHOW_NO_FIELDS_OR_METHODS;
    new TaskRunner(new ISwingRunnableWithProgress() {
      public void run(IProgress progress) throws Throwable {
        Graph<ClassMetaData> classMetaDataGraph = null;
View Full Code Here

      if (args.length > 3) {
        FileUtils.saveSerializableObjectToFile(new File(args[3]),
            (Serializable) finder.getClassToClassMetaDataMap());
      }

      final ClassRenderingStrategy strategy = DefaultClassRenderingStrategy.SHOW_NO_FIELDS;
      final Graph<ClassMetaData> classMetaDataGraph = finder
          .computeGraph(args[1]);
      final String imageFileName = args[2];
      ClassDiagramUtils.renderGraphToFile(classLoader, strategy,
          classMetaDataGraph, imageFileName);
View Full Code Here

        final ClassHierarchyProcessor finder = new ClassHierarchyProcessor(
            urlClassLoader);
        @SuppressWarnings("unused")
        final Repository repository = new ClassLoaderRepository(
            urlClassLoader);
        final ClassRenderingStrategy strategy = DefaultClassRenderingStrategy.SHOW_ALL_DECLARED_METHODS;
        CallGraphGeneratorUtils
            .draw(
                new GraphTranscoder<ClassMetaData, String[]>()
                    .transcode(
                        finder.computeGraph(className),
                        new NodeConversionStrategy<ClassMetaData, String[]>() {
                          public String[] convert(
                              ClassMetaData input) {
                            try {
                              Graph<String[]> temp = new Graph<String[]>();
                              strategy
                                  .convert(
                                      temp,
                                      urlClassLoader,
                                      input
                                          .getClassName());
                              return temp
                                  .getUserData();
                            } catch (RuntimeException exc) {
                              throw new TranscodingException(
                                  exc);
                            }
                          }
                        }), new File(output));
      } else if (digest != null) {
        File digestFile = new File(digest);
        if (!digestFile.isAbsolute()) {
          digestFile = new File(getProject().getBaseDir(), digest);
        }
        if (!digestFile.exists()) {
          throw new IllegalArgumentException(
              "Cannot continue, since digest file not found - "
                  + digestFile.getAbsolutePath());
        }
        @SuppressWarnings("unchecked")
        Map<String, ClassMetaData> map = (Map<String, ClassMetaData>) FileUtils
            .loadSerializableObjectFromFile(digestFile);
        System.out.println(getClass().getName()
            + ".execute. classpathElements - " + classpathElements);
        final URLClassLoader urlClassLoader = ClassUtils
            .newURLClassLoader(classpathElements, null);
        final ClassHierarchyProcessor finder = new ClassHierarchyProcessor(
            urlClassLoader, map);
        @SuppressWarnings("unused")
        final Repository repository = new ClassLoaderRepository(
            urlClassLoader);
        final ClassRenderingStrategy strategy = DefaultClassRenderingStrategy.SHOW_ALL_DECLARED_METHODS;
        CallGraphGeneratorUtils
            .draw(
                new GraphTranscoder<ClassMetaData, String[]>()
                    .transcode(
                        finder.computeGraph(className),
                        new NodeConversionStrategy<ClassMetaData, String[]>() {
                          public String[] convert(
                              ClassMetaData input) {
                            try {
                              Graph<String[]> temp = new Graph<String[]>();
                              strategy
                                  .convert(
                                      temp,
                                      urlClassLoader,
                                      input
                                          .getClassName());
View Full Code Here

TOP

Related Classes of com.subhajit.diagram.classdiagrams.impl.ClassRenderingStrategy

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.