Examples of Insets


Examples of ae.java.awt.Insets

            return sp.getVAdjustable();

        }
        else {

            Insets ins = sp.getInsets();
            int vertScrollWidth = sp.getVScrollbarWidth();

            if (log.isLoggable(Level.FINER)) {
                log.log(Level.FINER, "insets: l = " + ins.left + ", r = " + ins.right +
                 ", t = " + ins.top + ", b = " + ins.bottom);
View Full Code Here

Examples of charva.awt.Insets

        this.getWidth(), this.getHeight(), toolkit);
  }

  /* Now draw the JPasswordField itself.
   */
  Insets insets = super.getInsets();
  origin.translate(insets.left, insets.top);

  /* If the field is enabled, it is drawn with the UNDERLINE
   * attribute.  If it is disabled, it is drawn without the
   * UNDERLINE attribute.
View Full Code Here

Examples of com.ardor3d.extension.ui.util.Insets

        super(new BorderLayout());
        setHorizontal(horizontal);

        _textLabel = new UILabel("");
        _textLabel.setBorder(new EmptyBorder());
        _textLabel.setMargin(new Insets(0, 0, 0, 0));
        _textLabel.setPadding(new Insets(0, 0, 0, 0));
        _textLabel.setLayoutData(BorderLayoutData.WEST);
        setLabelText(labelText);
        add(_textLabel);

        _mainPanel = new UIPanel(new BorderLayout());
View Full Code Here

Examples of com.google.code.appengine.awt.Insets

        String s = getProperty(key);
        if (s == null) return def;
        if (s.equals("null")) return null;

        String[] r = s.split(", ");
        return new Insets(
                        Integer.parseInt(r[0]),
                        Integer.parseInt(r[1]),
                        Integer.parseInt(r[2]),
                        Integer.parseInt(r[3])
        );
View Full Code Here

Examples of com.ulcjava.base.application.util.Insets

public class ItemListULCViewer implements ULCViewer {
    private ItemListModel mainModel;

    public ULCComponent getULCComponent(ULCViewerFactory factory) {
        ULCBoxPane panel = new ULCBoxPane(1, 0);
        Insets insets = new Insets(2, 2, 2, 2);
        GridBagConstraints c1 = new GridBagConstraints(0, 0, 3, 1, 1.0, 1.0, GridBagConstraints.NORTHWEST, GridBagConstraints.BOTH, insets, 0, 0);
        GridBagConstraints bc1 = new GridBagConstraints(0, 1, 1, 1, 1.0, 0.0, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, insets, 0, 0);
        GridBagConstraints bc2 = new GridBagConstraints(1, 1, 1, 1, 1.0, 0.0, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, insets, 0, 0);
        GridBagConstraints bc3 = new GridBagConstraints(2, 1, 1, 1, 1.0, 0.0, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, insets, 0, 0);
        try {
View Full Code Here

Examples of gwt.mosaic.client.ui.Insets

  }

  public Insets getMargin() {
    if (margin == Insets.NONE && widget.isAttached()) {
      Element elem = widget.getElement();
      margin = new Insets(ComputedStyle.getMarginTop(elem),
          ComputedStyle.getMarginLeft(elem),
          ComputedStyle.getMarginBottom(elem),
          ComputedStyle.getMarginRight(elem));
      if (Insets.NONE.equals(margin)) {
        WidgetHelper.invalidate(widget);
View Full Code Here

Examples of java.awt.Insets

    @Override
    public Dimension getPreferredSize(JComponent c) {
      int width = super.getPreferredSize(c).width;
      int height = 0;

      Insets i = c.getInsets();

      height += i.top + i.bottom;

      for(int localCellHeight : cellHeights) {
        height += localCellHeight;
View Full Code Here

Examples of java.awt.Insets

      g.setColor(((ProgramMenuItem) menuItem).getDefaultBackground());
    }

    g.fillRect(0, 0, menuItem.getWidth(), menuItem.getHeight());

    Insets i = menuItem.getMargin();
    int x = mIcon == null ? 0 : mIcon.getIconWidth() + i.left;

    int width = menuItem.getWidth() - x;
    int height = menuItem.getHeight();
    int top = i.top;
View Full Code Here

Examples of java.awt.Insets

        processIdTextField = new JTextField("com.sample.ruleflow");
        GridBagConstraints c = new GridBagConstraints();
        c.weightx = 1;
        c.fill = GridBagConstraints.HORIZONTAL;
        c.insets = new Insets(5, 5, 5, 5);
        panel.add(processIdTextField, c);

        startButton = new JButton("Start");
        startButton.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent event) {
                start();
            }
        });
        c = new GridBagConstraints();
        c.gridy = 1;
        c.anchor = GridBagConstraints.EAST;
        c.insets = new Insets(5, 5, 5, 5);
        panel.add(startButton, c);
    }
View Full Code Here

Examples of java.awt.Insets

   
    private static final long serialVersionUID = -3124434678426673334L;

    public void paintComponent(Graphics g) {

      Insets i = this.getInsets();
      Rectangle box = new Rectangle(i.left, i.top,
            this.getWidth() - i.right,
            this.getHeight() - i.bottom );
      g.setColor(isSelected
           ? list.getSelectionBackground()
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.