Examples of pack()


Examples of com.badlogic.gdx.scenes.scene2d.ui.Table.pack()

    void toast (String text) {
      Table table = new Table();
      table.add(new Label(text, skin));
      table.getColor().a = 0;
      table.pack();
      table.setPosition(-table.getWidth(), -3 - table.getHeight());
      table.addAction(sequence( //
        parallel(moveBy(0, table.getHeight(), 0.3f), fadeIn(0.3f)), //
        delay(5f), //
        parallel(moveBy(0, table.getHeight(), 0.3f), fadeOut(0.3f)), //
View Full Code Here

Examples of com.badlogic.gdx.scenes.scene2d.utils.Layout.pack()

      Actor actor = node.actor;
      if (actor instanceof Layout) {
        Layout layout = (Layout)actor;
        rowWidth += layout.getPrefWidth();
        node.height = layout.getPrefHeight();
        layout.pack();
      } else {
        rowWidth += actor.getWidth();
        node.height = actor.getHeight();
      }
      if (node.icon != null) {
View Full Code Here

Examples of com.dadfha.uid.ResUcdRecieve.pack()

      server.queryProcessFailed();
      return;
    } else
      // Return resolved data packet
      ResUcdRecieve returnPacket = (ResUcdRecieve) rawData;
      ChannelBuffer returnBuffer = ChannelBuffers.wrappedBuffer(returnPacket.pack()); // Wrap return packet byte array
      e.getChannel().write(returnBuffer);         
    }
   
    // ??? close connection here?
   
View Full Code Here

Examples of com.dadfha.uid.UrpPacket.pack()

            ChannelHandlerContext ctx, ChannelStateEvent e) {
        // Send the packet when connected
      if(sendingPacket == null) throw new RuntimeException("The packet has yet to be defined.");
        if(!(sendingPacket instanceof UrpPacket)) throw new RuntimeException("The sending packet is not of type UrpPacket.");
        UrpPacket packet = (UrpPacket) sendingPacket;
      ChannelBuffer queryBuffer = ChannelBuffers.wrappedBuffer(packet.pack());
        e.getChannel().write(queryBuffer);
    }

    @Override
    public void messageReceived(
View Full Code Here

Examples of com.foundationdb.directory.DirectorySubspace.pack()

        TransactionState txn = txnService.getTransaction(session);
        // Require existence
        DirectorySubspace onlineDir = openDirectory (txn, smDirectory, onlineDirPath(onlineSession.id));
        // Create on demand
       DirectorySubspace changeDir = onlineDir.createOrOpen(txn.getTransaction(), CHANGES_PATH).get();
        byte[] packedKey = changeDir.pack(changeSet.getTableId());
        byte[] value = ChangeSetHelper.save(changeSet);
        txn.setBytes(packedKey, value);
        // TODO: Cleanup into Abstract. For consistency with PSSM.
        if(getAis(session).getGeneration() == getOnlineAIS(session).getGeneration()) {
            bumpGeneration(session);
View Full Code Here

Examples of com.foundationdb.tuple.Tuple2.pack()

    public void packRowData(FDBStore store, Session session,
                            FDBStoreData storeData, RowData rowData) {
        if (usage == TupleUsage.KEY_AND_ROW) {
            RowDef rowDef = object.getAIS().getTable(rowData.getRowDefId()).rowDef();
            Tuple2 t = TupleRowDataConverter.tupleFromRowData(rowDef, rowData);
            storeData.rawValue = t.pack();
        }
        else {
            super.packRowData(store, session, storeData, rowData);
        }
    }
View Full Code Here

Examples of com.gi.desktop.maptool.MapToolApp.pack()

      app.getMapPane().setBackground(bgColor);

      MapContext mapContext = app.getMap().getMapContext();
      if (mapContext != null) {
        app.setMapContext(mapContext);
        app.pack();
      }
    } catch (Exception ex) {
      JOptionPane.showMessageDialog(this, "Configure Map Error!");
    }
  }
View Full Code Here

Examples of com.golden.gamedev.engine.network.PacketManager.pack()

      System.out.println();
    }
   
    PacketManager packetManager = NetworkConfig.getPacketManager();
   
    byte[] data = packetManager.pack(packet);
   
    this.sendPacket(data);
   
    // check for packet compression, uncomment these lines
    // if (packet != NetworkPing.getInstance()) {
View Full Code Here

Examples of com.jbidwatcher.ui.util.JBidFrame.pack()

    wholePanel.add(buttonPanel, BorderLayout.SOUTH);

    contentPane.add(wholePanel, BorderLayout.CENTER);
    contentPane.add(subPanel, BorderLayout.SOUTH);
    w.pack();
    w.setResizable(true);
    w.setDefaultCloseOperation(WindowConstants.HIDE_ON_CLOSE);

    w.addWindowListener(new WindowAdapter() {
      public void windowClosing(WindowEvent we) {
View Full Code Here

Examples of com.jidesoft.spring.richclient.googledemo.preferences.SettingsDialog.pack()

        super(ID);
    }
 
    protected void doExecuteCommand() {
      SettingsDialog dialog = new SettingsDialog(getParentWindowControl(), "Preferences");
      dialog.pack();
      JideSwingUtilities.globalCenterWindow(dialog);
      dialog.setVisible(true);
    }

}
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.