Package org.mt4j.components.visibleComponents.widgets.buttons

Examples of org.mt4j.components.visibleComponents.widgets.buttons.MTSvgButton.scale()


          keyb.addTextInputListener(t);
             
              //Flickr Button for the keyboard
              MTSvgButton flickrButton = new MTSvgButton( "advanced" + MTApplication.separator +  "flickrMT" + MTApplication.separator + "data" + MTApplication.separator
              + "Flickr_Logo.svg", app);
              flickrButton.scale(0.4f, 0.4f, 1, new Vector3D(0,0,0), TransformSpace.LOCAL);
              flickrButton.translate(new Vector3D(0, 15,0));
              flickrButton.setBoundsPickingBehaviour(AbstractShape.BOUNDS_ONLY_CHECK);
             
              //Add actionlistener to flickr button
              flickrButton.addActionListener(new ActionListener() {
View Full Code Here


  public void setDisplayCloseButton(boolean dispClose){
    if (dispClose){
      MTSvgButton keybCloseSvg = new MTSvgButton(MT4jSettings.getInstance().getDefaultSVGPath()
          + "keybClose.svg", this.getRenderer());
      //Transform
      keybCloseSvg.scale(0.5f, 0.5f, 1, new Vector3D(0,0,0));
      keybCloseSvg.translate(new Vector3D(this.getWidthXY(TransformSpace.RELATIVE_TO_PARENT) - 45, 2,0));
      keybCloseSvg.setBoundsPickingBehaviour(AbstractShape.BOUNDS_ONLY_CHECK);
      keybCloseSvg.addActionListener(new CloseActionListener(new MTComponent[]{this, keybCloseSvg}) );
//      pic.addChild(keybCloseSvg);
      keybCloseSvg.setName("closeButton");
View Full Code Here

   
   
    MTSvgButton newTextFieldSvg = new MTSvgButton(MT4jSettings.getInstance().getDefaultSVGPath()
        + "keybNewTextField.svg", pa);
    newTextFieldSvg.setBoundsPickingBehaviour(AbstractShape.BOUNDS_ONLY_CHECK);
    newTextFieldSvg.scale(0.8f, 0.8f, 1, new Vector3D(0,0,0));
    newTextFieldSvg.translate(new Vector3D(10,5,0));

    newTextFieldSvg.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent arg0) {
          if (arg0.getSource() instanceof MTComponent){
View Full Code Here

//    /*
    //TODO load button only once!
    MTSvgButton keybCloseSvg = new MTSvgButton(MT4jSettings.getInstance().getDefaultSVGPath()
        + "keybClose.svg", pa);
    //Transform
    keybCloseSvg.scale(0.8f, 0.8f, 1, new Vector3D(0,0,0));
    keybCloseSvg.translate(new Vector3D(640,5,0));
    keybCloseSvg.setBoundsPickingBehaviour(AbstractShape.BOUNDS_ONLY_CHECK);
    keybCloseSvg.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent arg0) {
        if (arg0.getID() == TapEvent.BUTTON_CLICKED)
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.