Examples of Drawing


Examples of CH.ifa.draw.framework.Drawing

         ex.printStackTrace();        
      }

      // this.figure.changed();
      Rectangle newRect = this.figure.displayBox();
      Drawing drawing = view.drawing();
      FigureChangeEvent ev0 = new FigureChangeEvent(this.figure);
      drawing.figureChanged(ev0);

      DrawingChangeEvent ev = new DrawingChangeEvent(drawing, oldRect);
      view.drawingRequestUpdate(ev);
      ev = new DrawingChangeEvent(drawing, newRect);
      view.drawingRequestUpdate(ev);
View Full Code Here

Examples of CH.ifa.draw.framework.Drawing

      Figure fig = (Figure)this.figure.clone();
      return new MonitorCommand(this.global, oid, this.action, fig);
   }

   public void remove(DrawingView view) {
      Drawing drawing = view.drawing();
      drawing.remove(this.figure);
      drawing.orphan(this.figure);
      FigureChangeEvent ev = new FigureChangeEvent(this.figure);
      drawing.figureRequestUpdate(ev);
   }
View Full Code Here

Examples of CH.ifa.draw.framework.Drawing

      super.destroy();
   }

   protected void fireViewDestroyingEvent(DrawingView view) {
      log.info("Destroying view '" + view.drawing().getTitle() + "'");
      Drawing drawing = view.drawing();
      super.fireViewDestroyingEvent(view);
      drawing.release();
   }
View Full Code Here

Examples of com.cburch.draw.model.Drawing

import com.cburch.logisim.util.VerticalSplitPane;

public class Main {
  public static void main(String[] args) {
    DrawingAttributeSet attrs = new DrawingAttributeSet();
    Drawing model = new Drawing();
    CanvasObject rect = attrs.applyTo(new Rectangle(25, 25, 50, 50));
    model.addObjects(0, Collections.singleton(rect));

    showFrame(model, "Drawing 1");
    showFrame(model, "Drawing 2");
  }
View Full Code Here

Examples of com.cburch.draw.model.Drawing

import com.cburch.logisim.util.VerticalSplitPane;

public class Main {
    public static void main(String[] args) {
        DrawingAttributeSet attrs = new DrawingAttributeSet();
        Drawing model = new Drawing();
        CanvasObject rect = attrs.applyTo(new Rectangle(25, 25, 50, 50));
        model.addObjects(0, Collections.singleton(rect));

        showFrame(model, "Drawing 1");
        showFrame(model, "Drawing 2");
    }
View Full Code Here

Examples of com.googlecode.gaal.vis.api.Drawing

    }

    public static <S> void visualizeSequence(Appendable buffer, IntSequence sequence, SymbolTable<S> symbolTable)
            throws IOException {

        Drawing drawing = new TikzReducedIntervalDrawing(buffer, null, null, 0.65, 0.65, 26, 0);
        TableVisualizer<S> tableVisualizer = new TableVisualizer<S>(sequence, symbolTable);
        tableVisualizer.visualizeSequence(drawing);
        drawing.flush();
    }
View Full Code Here

Examples of com.googlecode.gaal.vis.api.Drawing

    }

    public static <S> void visualizeSubsequence(Appendable buffer, IntSequence sequence, SymbolTable<S> symbolTable,
            int... indices) throws IOException {

        Drawing drawing = new TikzReducedIntervalDrawing(buffer, null, null, 0.65, 0.65, 26, 0);
        TableVisualizer<S> tableVisualizer = new TableVisualizer<S>(sequence, symbolTable);
        tableVisualizer.visualizeSubsequence(drawing, indices);
        drawing.flush();
    }
View Full Code Here

Examples of com.googlecode.gaal.vis.api.Drawing

    }

    public static <S> void visualizeComplexSubsequence(Appendable buffer, IntSequence sequence,
            SymbolTable<S> symbolTable, int... indices) throws IOException {

        Drawing drawing = new TikzReducedIntervalDrawing(buffer, null, null, 0.65, 0.65, 26, 0);
        TableVisualizer<S> tableVisualizer = new TableVisualizer<S>(sequence, symbolTable);
        tableVisualizer.visualizeComplexSubsequence(drawing, indices);
        drawing.flush();
    }
View Full Code Here

Examples of com.googlecode.gaal.vis.api.Drawing

    }

    public static <S> void visualizeSuffixes(Appendable buffer, String caption, String label, IntSequence sequence,
            SymbolTable<S> symbolTable) throws IOException {

        Drawing drawing = new TikzReducedIntervalDrawing(buffer, caption, label, 0.65, 0.65, 26, 0);
        TableVisualizer<S> tableVisualizer = new TableVisualizer<S>(sequence, symbolTable);
        tableVisualizer.visualizeSuffixes(drawing);
        drawing.flush();
    }
View Full Code Here

Examples of com.googlecode.gaal.vis.api.Drawing

    }

    public static <S> void visualizeSuffixTable(Appendable buffer, String caption, String label, SuffixArray sa,
            IntSequence sequence, SymbolTable<S> symbolTable) throws IOException {

        Drawing drawing = new TikzReducedIntervalDrawing(buffer, caption, label, 0.65, 0.65, 26, 0);
        TableVisualizer<S> tableVisualizer = new TableVisualizer<S>(sequence, symbolTable);
        tableVisualizer.visualizeSuffixTable(drawing, sa);
        drawing.flush();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.