$search
00001 package edu.tum.cs.ias.knowrob.map; 00002 00003 import java.awt.event.MouseListener; 00004 import java.awt.event.MouseMotionListener; 00005 import processing.core.*; 00006 import de.tum.in.fipm.kipm.gui.visualisation.base.PrologVisualizationCanvas; 00007 00008 00009 00019 public class SemanticMapEditor extends PrologVisualizationCanvas implements MouseListener, MouseMotionListener { 00020 00021 private static final long serialVersionUID = 4575739930038583994L; 00022 protected SemanticMapEditorForms forms_applet; 00023 00024 00029 public SemanticMapEditor() { 00030 00031 this.setSize(1050, 600); 00032 this.remove(AVObject); 00033 this.controlWindow.hide(); 00034 this.KVObject.setViewParameters(4.0f, 4.0f, 134f, -15f, 100); 00035 00036 forms_applet = new SemanticMapEditorForms(); 00037 forms_applet.setSize(390, 600); 00038 forms_applet.init(); 00039 forms_applet.setPrologVisCanvas(this); 00040 00041 this.add(forms_applet); 00042 00043 this.cursor(ARROW); 00044 this.forms_applet.cursor(ARROW); 00045 this.KVObject.cursor(ARROW); 00046 00047 this.draw(); 00048 this.setVisible(true); 00049 this.setSize(1050, 600); 00050 this.validate(); 00051 00052 } 00053 00054 public void draw() { 00055 background(20, 20, 20); 00056 } 00057 00063 public void displayInfoFor(String identifier) { 00064 00065 forms_applet.editObject(identifier); 00066 } 00067 00068 public static void main(String args[]) { 00069 PApplet.main(new String[] { "edu.tum.cs.ias.knowrob.map.SemanticMapEditor" }); 00070 } 00071 } 00072