Ignore:
Timestamp:
01/16/13 17:51:51 (11 years ago)
Author:
adeicke
Message:
  • Removed lombok related annotations and util class
  • Added comments and formating due to match project defaults
Location:
trunk/autoquest-core-usability-evaluation-test/src/main/java/de/ugoe/cs/autoquest/usability/sandboxapp
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/autoquest-core-usability-evaluation-test/src/main/java/de/ugoe/cs/autoquest/usability/sandboxapp/CreateClickstreamImageFromTaskTreeDemoApp.java

    r1030 r1040  
     1//   Copyright 2012 Georg-August-Universität Göttingen, Germany 
     2// 
     3//   Licensed under the Apache License, Version 2.0 (the "License"); 
     4//   you may not use this file except in compliance with the License. 
     5//   You may obtain a copy of the License at 
     6// 
     7//       http://www.apache.org/licenses/LICENSE-2.0 
     8// 
     9//   Unless required by applicable law or agreed to in writing, software 
     10//   distributed under the License is distributed on an "AS IS" BASIS, 
     11//   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
     12//   See the License for the specific language governing permissions and 
     13//   limitations under the License. 
     14 
    115package de.ugoe.cs.autoquest.usability.sandboxapp; 
    216 
     
    2135import de.ugoe.cs.autoquest.usability.testutil.GenerateTaskTreeUtil; 
    2236 
     37/** 
     38 * <p> 
     39 * TODO comment 
     40 * </p> 
     41 *  
     42 * @author Alexander Deicke 
     43 */ 
    2344public class CreateClickstreamImageFromTaskTreeDemoApp { 
    2445 
    2546    private static final String fileToParse = "javatrace.xml"; 
    26      
     47 
    2748    private static final String clickstreamFilename = "clickstream.png"; 
    28      
     49 
    2950    /** 
    3051     * <p> 
    3152     * TODO: comment 
    3253     * </p> 
    33      * 
     54     *  
    3455     * @param args 
    35      * @throws IOException  
     56     * @throws IOException 
    3657     */ 
    3758    public static void main(String[] args) throws IOException { 
    3859        ITaskTree taskTree = GenerateTaskTreeUtil.getTaskTreeFromFile(fileToParse); 
    3960        FilterStatistic mouseInteractions = filterMouseInteractions(taskTree); 
    40          
     61 
    4162        BufferedImage clickstreamImage = new BufferedImage(1024, 768, BufferedImage.TYPE_INT_ARGB); 
    4263        Graphics2D drawArea = clickstreamImage.createGraphics(); 
    4364        drawArea.setColor(Color.BLACK); 
    44         drawArea.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); 
    45          
     65        drawArea.setRenderingHint(RenderingHints.KEY_ANTIALIASING, 
     66                                  RenderingHints.VALUE_ANTIALIAS_ON); 
     67 
    4668        drawClickstream(mouseInteractions, drawArea); 
    4769 
     
    5274        int xb = -1; 
    5375        int yb = -1; 
    54          
    55         for(ITaskTreeNode node : mouseInteractions.nodesMatchedFilter()) { 
    56             MouseButtonInteraction interaction = (MouseButtonInteraction) ((IEventTask) node).getEventType(); 
     76 
     77        for (ITaskTreeNode node : mouseInteractions.nodesMatchedFilter()) { 
     78            MouseButtonInteraction interaction = 
     79                (MouseButtonInteraction) ((IEventTask) node).getEventType(); 
    5780            int x = interaction.getX(); 
    5881            int y = interaction.getY(); 
    59             g2.fillOval(x,y,1,1); 
    60             if(xb != -1 && y != -1) g2.drawLine(x, y, xb, yb); 
     82            g2.fillOval(x, y, 1, 1); 
     83            if (xb != -1 && y != -1) 
     84                g2.drawLine(x, y, xb, yb); 
    6185            xb = x; 
    6286            yb = y; 
    6387        } 
    6488    } 
    65      
     89 
    6690    private static FilterStatistic filterMouseInteractions(ITaskTree taskTree) { 
    6791        return new TaskTreeFilter(new IterativeDFSFilterStrategy()) 
  • trunk/autoquest-core-usability-evaluation-test/src/main/java/de/ugoe/cs/autoquest/usability/sandboxapp/CreateHeatmapImageFromTaskTreeDemoApp.java

    r1030 r1040  
     1//   Copyright 2012 Georg-August-Universität Göttingen, Germany 
     2// 
     3//   Licensed under the Apache License, Version 2.0 (the "License"); 
     4//   you may not use this file except in compliance with the License. 
     5//   You may obtain a copy of the License at 
     6// 
     7//       http://www.apache.org/licenses/LICENSE-2.0 
     8// 
     9//   Unless required by applicable law or agreed to in writing, software 
     10//   distributed under the License is distributed on an "AS IS" BASIS, 
     11//   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
     12//   See the License for the specific language governing permissions and 
     13//   limitations under the License. 
    114 
    215package de.ugoe.cs.autoquest.usability.sandboxapp; 
     
    1831import de.ugoe.cs.autoquest.usability.testutil.GenerateTaskTreeUtil; 
    1932 
     33/** 
     34 * <p> 
     35 * TODO comment 
     36 * </p> 
     37 *  
     38 * @author Alexander Deicke 
     39 */ 
    2040public class CreateHeatmapImageFromTaskTreeDemoApp { 
    2141 
    2242    private static final String fileToParse = "javatrace.xml"; 
    23      
     43 
    2444    private static final String heatmapFilename = "click-heatmap.png"; 
    2545 
  • trunk/autoquest-core-usability-evaluation-test/src/main/java/de/ugoe/cs/autoquest/usability/sandboxapp/TaskTreeVisualizerDemoApp.java

    r1030 r1040  
    145145    RadialTreeLayout<String, Integer> radialLayout; 
    146146 
    147     @SuppressWarnings({ "unchecked", "rawtypes" }) 
     147    @SuppressWarnings( 
     148        { "unchecked", "rawtypes" }) 
    148149    public TaskTreeVisualizerDemoApp(String filetoparse) { 
    149          
    150         ITaskTree taskTree = GenerateTaskTreeUtil.getTaskTreeFromFile(filetoparse);  
    151          
     150 
     151        ITaskTree taskTree = GenerateTaskTreeUtil.getTaskTreeFromFile(filetoparse); 
     152 
    152153        // create a simple graph for the demo 
    153154        graph = new DelegateForest<String, Integer>(); 
     
    274275        content.add(controls, BorderLayout.SOUTH); 
    275276    } 
    276      
     277 
    277278    class Rings implements VisualizationServer.Paintable { 
    278279 
Note: See TracChangeset for help on using the changeset viewer.