Package org.mt4j.components.clusters

Examples of org.mt4j.components.clusters.Cluster.attachCamera()


        //Create new selection only if at least more than 1 is selected
        if (selectedComps.length > 1){
          //Create new Cluster
          Cluster cluster = new Cluster(pa, dse.getSelectionPoly());
          //Attach a cam to the cluster because it doesent have the canvas as a parent as it is now..
          cluster.attachCamera(selectedComps[0].getViewingCamera());
         
          //Add gestures //TODO what about the isRotatable/dragable settings of the childs?
          //TODO What if we want to click a item of the cluster only? ->Maybe cluster should
          //delegate other gestures to the components..
//          cluster.assignGestureClassAndAction(DragGestureAnalyzer.class,    new DefaultDragAction());
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.