Package java.awt.peer

Examples of java.awt.peer.ScrollPanePeer


    public synchronized void setUnitIncrement(int u) {
  if (u != unitIncrement) {
      unitIncrement = u;
      if (sp.peer != null) {
    ScrollPanePeer peer = (ScrollPanePeer) sp.peer;
    peer.setUnitIncrement(this, u);
      }
  }
    }
View Full Code Here


     * @return the height of a horizontal scrollbar in pixels
     */
    public int getHScrollbarHeight() {
  int h = 0;
  if (scrollbarDisplayPolicy != SCROLLBARS_NEVER) {
      ScrollPanePeer peer = (ScrollPanePeer)this.peer;
      if (peer != null) {
    h = peer.getHScrollbarHeight();
      }
  }
  return h;
    }
View Full Code Here

     * @return the width of a vertical scrollbar in pixels
     */
    public int getVScrollbarWidth() {
  int w = 0;
  if (scrollbarDisplayPolicy != SCROLLBARS_NEVER) {
      ScrollPanePeer peer = (ScrollPanePeer)this.peer;
      if (peer != null) {
    w = peer.getVScrollbarWidth();
      }
  }
  return w;
    }
View Full Code Here

        Dimension cs = calculateChildSize();
        Dimension vs = getViewportSize();
        Insets i = getInsets();
       
        c.reshape(i.left - p.x, i.top - p.y, cs.width, cs.height);
        ScrollPanePeer peer = (ScrollPanePeer)this.peer;
        if (peer != null) {
            peer.childResized(cs.width, cs.height);
        }
       
        // update adjustables... the viewport size may have changed
        // with the scrollbars coming or going so the viewport size
        // is updated before the adjustables.
View Full Code Here

   * Invoked when the value of the adjustable has changed.
   */
        public void adjustmentValueChanged(AdjustmentEvent e) {
      Adjustable adj = e.getAdjustable();
      int value = e.getValue();
      ScrollPanePeer peer = (ScrollPanePeer) scroller.peer;
      if (peer != null) {
    peer.setValue(adj, value);
      }

      Component c = scroller.getComponent(0);
      switch(adj.getOrientation()) {
      case Adjustable.VERTICAL:
View Full Code Here

     * Invoked when the value of the adjustable has changed.
     */  
    public void adjustmentValueChanged(AdjustmentEvent e) {
  Adjustable adj = e.getAdjustable();
  int value = e.getValue();
  ScrollPanePeer peer = (ScrollPanePeer) scroller.peer;
  if (peer != null) {
      peer.setValue(adj, value);
  }

  Component c = scroller.getComponent(0);
        switch(adj.getOrientation()) {
  case Adjustable.VERTICAL:
View Full Code Here

     * @return the height of a horizontal scrollbar in pixels
     */
    public int getHScrollbarHeight() {
        int h = 0;
        if (scrollbarDisplayPolicy != SCROLLBARS_NEVER) {
            ScrollPanePeer peer = (ScrollPanePeer)this.peer;
            if (peer != null) {
                h = peer.getHScrollbarHeight();
            }
        }
        return h;
    }
View Full Code Here

     * @return the width of a vertical scrollbar in pixels
     */
    public int getVScrollbarWidth() {
        int w = 0;
        if (scrollbarDisplayPolicy != SCROLLBARS_NEVER) {
            ScrollPanePeer peer = (ScrollPanePeer)this.peer;
            if (peer != null) {
                w = peer.getVScrollbarWidth();
            }
        }
        return w;
    }
View Full Code Here

        Dimension cs = calculateChildSize();
        Dimension vs = getViewportSize();
        Insets i = getInsets();

        c.reshape(i.left - p.x, i.top - p.y, cs.width, cs.height);
        ScrollPanePeer peer = (ScrollPanePeer)this.peer;
        if (peer != null) {
            peer.childResized(cs.width, cs.height);
        }

        // update adjustables... the viewport size may have changed
        // with the scrollbars coming or going so the viewport size
        // is updated before the adjustables.
View Full Code Here

         * Invoked when the value of the adjustable has changed.
         */
        public void adjustmentValueChanged(AdjustmentEvent e) {
            Adjustable adj = e.getAdjustable();
            int value = e.getValue();
            ScrollPanePeer peer = (ScrollPanePeer) scroller.peer;
            if (peer != null) {
                peer.setValue(adj, value);
            }

            Component c = scroller.getComponent(0);
            switch(adj.getOrientation()) {
            case Adjustable.VERTICAL:
View Full Code Here

TOP

Related Classes of java.awt.peer.ScrollPanePeer

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.