Package simtools.shapes

Examples of simtools.shapes.LabelShape


      }
    });
   
    // a container with coordinates
    svg=new ShapesContainer("SVG");
    LabelShape l;
    for(int i=0;i<GRID_SIZE;i++){
      l=new LabelShape(""+i,GRID_STEP*i,0,LabelShape.CENTER,false);
      l.setBounds(sFont);
      svg.addElement(l);
      l=new LabelShape(""+i,0,GRID_STEP*i,LabelShape.CENTER,false);
      l.setBounds(sFont);
      svg.addElement(l);
    }
     editor.addComponent(svg.getComponent());

    DiagramClipboard.create();
View Full Code Here


        }       
      }
    } else {
      if(!secondary){
        if (_dateTime==null) {
          _dateTime=new LabelShape(s,0,0,LabelShape.RIGHTDOWN,false);
          computeBounds();
        }
        else {
          // centered, update pos
          _dateTime.setString(s);
          computeBounds();
        }
      }
      else{
        if (_sdateTime==null) {
          _sdateTime=new LabelShape(s,0,0,LabelShape.RIGHTDOWN,false);
          computeBounds();
        }
        else {
          // centered, update pos
          _sdateTime.setString(s);
View Full Code Here

TOP

Related Classes of simtools.shapes.LabelShape

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.