Package charva.awt

Examples of charva.awt.Insets


    /**
     * Adds a border around the viewport.
     */
    public void setViewportBorder(Border viewportBorder_) {
        _border = viewportBorder_;
        Insets insets = _border.getBorderInsets(this);

        if (_headerViewport != null) {
            // This must be a JTable.
            _headerViewport.setLocation(new Point(insets.left, insets.top));
            _childViewport.setLocation(new Point(insets.left, insets.top + 1));
View Full Code Here


    public Dimension getSize() {
  return new Dimension(getWidth(), getHeight());
    }

    public int getWidth() {
  Insets insets = super.getInsets();
  return _columns + insets.left + insets.right;
    }
View Full Code Here

  Insets insets = super.getInsets();
  return _columns + insets.left + insets.right;
    }

    public int getHeight() {
  Insets insets = super.getInsets();
  return _listModel.getSize() + insets.top + insets.bottom;
    }
View Full Code Here

  }

  /* Take into account the border inherited from the JComponent
   * superclass.
   */
  Insets insets = super.getInsets();
  return new Dimension(_columns + insets.left + insets.right,
    _visibleRows + insets.top + insets.bottom);
    }
View Full Code Here

  super.requestFocus();

  /* Get the absolute origin of this component
   */
  Point origin = getLocationOnScreen();
  Insets insets = super.getInsets();
  origin.translate(insets.left, insets.top);
  Toolkit.getDefaultToolkit().setCursor(
    origin.addOffset(0, _currentRow));
    }
View Full Code Here

  super.draw(toolkit);

  /* Get the absolute origin of this component.
   */
  Point origin = getLocationOnScreen();
  Insets insets = super.getInsets();
  origin.translate(insets.left, insets.top);

  int colorpair = getCursesColor();
  int attribute;

View Full Code Here

    /**
     * Sets the menubar for this frame.
     */
    public void setJMenuBar(JMenuBar menubar_) {
        _menubar = menubar_;
        super._insets = new Insets(2, 1, 1, 1);

        /*
         * Insert the menubar as the first component so that it will be the
         * first to get the keyboard focus.
         */
 
View Full Code Here

    }

    /** Returns width (including the diamond symbol).
     */
    public int getWidth() {
  Insets insets = super.getInsets();
  return _columns + insets.left + insets.right + 2;
    }
View Full Code Here

  Insets insets = super.getInsets();
  return _columns + insets.left + insets.right + 2;
    }

    public int getHeight() {
  Insets insets = super.getInsets();
  return 1 + insets.top + insets.bottom;
    }
View Full Code Here

  super.draw(toolkit);

  /* Get the absolute origin of this component.
   */
  Point origin = getLocationOnScreen();
  Insets insets = super.getInsets();
  origin.translate(insets.left, insets.right);

  int colorpair = getCursesColor();
  toolkit.setCursor(origin);
  String selectedItem = (String) _model.getSelectedItem();
View Full Code Here

TOP

Related Classes of charva.awt.Insets

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.