Examples of pack()


Examples of ptolemy.vergil.basic.ExtendedGraphFrame.pack()

        } catch (IllegalActionException ex) {
            throw new InternalErrorException(ex);
        }

        frame.setBackground(BACKGROUND_COLOR);
        frame.pack();
        frame.centerOnScreen();
        frame.setVisible(true);
    }

    /** A factory that creates graph editing tableaux for Ptolemy models.
View Full Code Here

Examples of pushy.modules.StructModule.pack()

    public void setSoLinger(boolean on, int linger)
    {
        StructModule struct_ = (StructModule)client.getModule("struct");
        setsockopt(SocketModule.SOL_SOCKET, SocketModule.SO_LINGER,
            struct_.pack("ii", new Object[]{
                new Integer(on ? 1 : 0), new Integer(linger)}));
    }

    public boolean getTcpNoDelay()
    {
View Full Code Here

Examples of rcm.awt.ClosableFrame.pack()

        Statistics stats = new Statistics ();
        crawler.addCrawlListener (stats);

        win.add ("Center", BorderPanel.wrap (stats, 5, 5, 5, 5));
        win.pack ();
        win.show ();

        return win;
    }
View Full Code Here

Examples of resources.BarChart.pack()

 
  //TODO - Integrate function dynamically
  public static void loadBarGraphReport() {
   
    BarChart demo = new BarChart("Bar Chart Report Analysis");
    demo.pack();
    RefineryUtilities.centerFrameOnScreen(demo);
    demo.setVisible(true);
  }
 
 
View Full Code Here

Examples of rex.graphics.charts.ChartPickerDialog.pack()

         }
         chartTabs.clear();
      }
      ChartPickerDialog chartPicker = new ChartPickerDialog((JFrame)this.getRootPane().getParent()
                                                           , selectedCharts);
      chartPicker.pack();

      chartPicker.setVisible(true);
      Integer[] chartsToSpawn = chartPicker.getSelectedChartTypes();
      for(int i=0; i<chartsToSpawn.length; i++){
         chartTabs.addLast(new Integer(chartsToSpawn[i].intValue())); //new Chart(er, new CubeSlicer( (short) 1, (short) 0), chartsToSpawn[i].intValue())
View Full Code Here

Examples of ro.isdc.wro.extensions.processor.support.cjson.CJson.pack()

  private String doProcess(final String content) {
    final CJson engine = enginePool.getObject();
    try {
      if (pack) {
        return engine.pack(content);
      }
      return engine.unpack(content);
    } finally {
      enginePool.returnObject(engine);
    }
View Full Code Here

Examples of ro.isdc.wro.extensions.processor.support.jsonhpack.JsonHPack.pack()

  private String doProcess(final String content) {
    final JsonHPack engine = enginePool.getObject();
    try {
      if (pack) {
        return engine.pack(content);
      }
      return engine.unpack(content);
    } finally {
      enginePool.returnObject(engine);
    }
View Full Code Here

Examples of ro.isdc.wro.extensions.processor.support.packer.PackerJs.pack()

  public void process(final Resource resource, final Reader reader, final Writer writer)
    throws IOException {
    final String content = IOUtils.toString(reader);
    final PackerJs packerJs = enginePool.getObject();
    try {
      writer.write(packerJs.pack(content));
    } catch (final WroRuntimeException e) {
      onException(e);
      final String resourceUri = resource == null ? StringUtils.EMPTY : "[" + resource.getUri() + "]";
      LOG.warn("Exception while applying " + getClass().getSimpleName() + " processor on the " + resourceUri
          + " resource, no processing applied...", e);
View Full Code Here

Examples of scalaExec.gui.MathDialogs.ExpressionDialogPlot2D_Histo.pack()

        bplot2d_histo.setFont(new Font("Arial", Font.BOLD, 14));
        bplot2d_histo.addActionListener(new ActionListener() {
             public void actionPerformed(ActionEvent e) {
           ExpressionDialogPlot2D_Histo  exprDialog = new ExpressionDialogPlot2D_Histo();
           exprDialog.setLocation(GlobalValues.scalalabMainFrame.getLocation());
           exprDialog.pack();
           exprDialog.setVisible(true);
                 
           // construct an explicit focus event in order to display the cursor at the input console
        FocusEvent fe = new FocusEvent(GlobalValues.scalalabMainFrame.scalalabConsole, FocusEvent.FOCUS_GAINED);
        GlobalValues.scalalabMainFrame.scalalabConsole.dispatchEvent(fe);   
View Full Code Here

Examples of scalaExec.gui.MathDialogs.ExpressionDialogPlot2D_Line.pack()

        bplot2d_line.setFont(new Font("Arial", Font.BOLD, 14));
        bplot2d_line.addActionListener(new ActionListener() {
             public void actionPerformed(ActionEvent e) {
           ExpressionDialogPlot2D_Line  exprDialog = new ExpressionDialogPlot2D_Line();
           exprDialog.setLocation(GlobalValues.scalalabMainFrame.getLocation());
           exprDialog.pack();
           exprDialog.setVisible(true);
                 
           // construct an explicit focus event in order to display the cursor at the input console
        FocusEvent fe = new FocusEvent(GlobalValues.scalalabMainFrame.scalalabConsole, FocusEvent.FOCUS_GAINED);
        GlobalValues.scalalabMainFrame.scalalabConsole.dispatchEvent(fe);   
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.