Package charva.awt

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


    /**
     * Return the size of the text field. Overrides the method in the
     * Component superclass.
     */
    public Dimension getSize() {
  Insets insets = super.getInsets();
  return new Dimension(_columns + insets.left + insets.right,
    1 + insets.top + insets.bottom);
    }
View Full Code Here

  return new Dimension(_columns + insets.left + insets.right,
    1 + insets.top + insets.bottom);
    }

    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 1 + insets.top + insets.bottom;
    }
View Full Code Here

      attrib |= Toolkit.A_BOLD;

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

  int colorpair = getCursesColor();

  toolkit.setCursor(origin);
View Full Code Here

      int x = e_.getX();

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

      int new_caret = _offset + (x - origin.x);
      super._caretPosition =
        (new_caret < super._document.length()) ?
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(super._caretPosition - _offset, 0));
    }
View Full Code Here

     */
    public void setSize(int width_, int height_) {
        super.setSize(width_, height_);
        Dimension size = new Dimension(width_, height_);
        if (_border != null) {
            Insets borderInsets = _border.getBorderInsets(this);
            size.height -= (borderInsets.top + borderInsets.bottom);
            size.width -= (borderInsets.left + borderInsets.right);
        }

        // Set the size of the viewport(s) as well
View Full Code Here

        // Set the size of the viewport(s) as well
        setViewportExtents(size);

        if (_border != null) {
            Insets borderInsets = _border.getBorderInsets(this);
            size.height += (borderInsets.top + borderInsets.bottom);
            size.width += (borderInsets.left + borderInsets.right);
        }

        return size;
View Full Code Here

        /*
         * Get the absolute origin of this component.
         */
        Point origin = getLocationOnScreen();
        Insets borderInsets;
        if (getViewportBorder() != null) {
            borderInsets = getViewportBorder().getBorderInsets(this);
        } else
            borderInsets = new Insets(0, 0, 0, 0);

        int colorpair = getCursesColor();
        Dimension size = minimumSize();

        if (_border != null) {
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.