亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? jviewport.java

?? gcc的組建
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/* JViewport.java --    Copyright (C) 2002, 2004, 2005  Free Software Foundation, Inc.This file is part of GNU Classpath.GNU Classpath is free software; you can redistribute it and/or modifyit under the terms of the GNU General Public License as published bythe Free Software Foundation; either version 2, or (at your option)any later version.GNU Classpath is distributed in the hope that it will be useful, butWITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNUGeneral Public License for more details.You should have received a copy of the GNU General Public Licensealong with GNU Classpath; see the file COPYING.  If not, write to theFree Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA02110-1301 USA.Linking this library statically or dynamically with other modules ismaking a combined work based on this library.  Thus, the terms andconditions of the GNU General Public License cover the wholecombination.As a special exception, the copyright holders of this library give youpermission to link this library with independent modules to produce anexecutable, regardless of the license terms of these independentmodules, and to copy and distribute the resulting executable underterms of your choice, provided that you also meet, for each linkedindependent module, the terms and conditions of the license of thatmodule.  An independent module is a module which is not derived fromor based on this library.  If you modify this library, you may extendthis exception to your version of the library, but you are notobligated to do so.  If you do not wish to do so, delete thisexception statement from your version. */package javax.swing;import java.awt.Component;import java.awt.Dimension;import java.awt.Graphics;import java.awt.Image;import java.awt.Insets;import java.awt.LayoutManager;import java.awt.Point;import java.awt.Rectangle;import java.awt.event.ComponentAdapter;import java.awt.event.ComponentEvent;import java.io.Serializable;import javax.accessibility.Accessible;import javax.accessibility.AccessibleContext;import javax.accessibility.AccessibleRole;import javax.swing.border.Border;import javax.swing.event.ChangeEvent;import javax.swing.event.ChangeListener;import javax.swing.plaf.ViewportUI;/** *   * <pre> *                                                     _ *   +-------------------------------+    ...........Y1 \ *   |  view                         |                .  \ *   |  (this component's child)     |                .   > VY *   |                               |                .  / = Y2-Y1 *   |         +------------------------------+  ....Y2_/ *   |         | viewport            |        |       . *   |         | (this component)    |        |       . *   |         |                     |        |       . *   |         |                     |        |       . *   |         |                     |        |       . *   |         |                     |        |       . *   |         +------------------------------+  ....Y3 *   |                               |                . *   |         .                     |        .       . *   |         .                     |        .       . *   +---------.---------------------+    ...........Y4 *   .         .                     .        . *   .         .                     .        . *   .         .                     .        . *   X1.......X2.....................X3.......X4 *   \____  ___/ *        \/ *        VX = X2-X1 *</pre> *   * <p>A viewport is, like all swing components, located at some position in * the swing component tree; that location is exactly the same as any other * components: the viewport's "bounds".</p> * * <p>But in terms of drawing its child, the viewport thinks of itself as * covering a particular position <em>of the view's coordinate space</em>. * For example, the {@link #getViewPosition} method returns * the position <code>(VX,VY)</code> shown above, which is an position in * "view space", even though this is <em>implemented</em> by positioning * the underlying child at position <code>(-VX,-VY)</code></p> * */public class JViewport extends JComponent implements Accessible{  /**   * Provides accessibility support for <code>JViewport</code>.   *   * @author Roman Kennke (roman@kennke.org)   */  protected class AccessibleJViewport extends AccessibleJComponent  {    /**     * Creates a new instance of <code>AccessibleJViewport</code>.     */    public AccessibleJViewport()    {      // Nothing to do here.    }    /**     * Returns the accessible role of <code>JViewport</code>, which is     * {@link AccessibleRole#VIEWPORT}.     *     * @return the accessible role of <code>JViewport</code>     */    public AccessibleRole getAccessibleRole()    {      return AccessibleRole.VIEWPORT;    }  }  /**   * A {@link java.awt.event.ComponentListener} that listens for   * changes of the view's size. This triggers a revalidate() call on the   * viewport.   */  protected class ViewListener extends ComponentAdapter implements Serializable  {    private static final long serialVersionUID = -2812489404285958070L;    /**     * Creates a new instance of ViewListener.     */    protected ViewListener()    {      // Nothing to do here.    }    /**     * Receives notification when a component (in this case: the view     * component) changes it's size. This simply triggers a revalidate() on the     * viewport.     *     * @param ev the ComponentEvent describing the change     */    public void componentResized(ComponentEvent ev)    {      revalidate();    }  }  public static final int SIMPLE_SCROLL_MODE = 0;  public static final int BLIT_SCROLL_MODE = 1;  public static final int BACKINGSTORE_SCROLL_MODE = 2;  private static final long serialVersionUID = -6925142919680527970L;    protected boolean scrollUnderway;  protected boolean isViewSizeSet;  /**   * This flag indicates whether we use a backing store for drawing.   *   * @deprecated since JDK 1.3   */  protected boolean backingStore;  /**   * The backingstore image used for the backingstore and blit scroll methods.   */  protected Image backingStoreImage;  /**   * The position at which the view has been drawn the last time. This is used   * to determine the bittable area.   */  protected Point lastPaintPosition;  ChangeEvent changeEvent = new ChangeEvent(this);  int scrollMode;  /**    * The width and height of the Viewport's area in terms of view   * coordinates.  Typically this will be the same as the width and height   * of the viewport's bounds, unless the viewport transforms units of   * width and height, which it may do, for example if it magnifies or   * rotates its view.   *   * @see #toViewCoordinates(Dimension)   */  Dimension extentSize;  /**   * The width and height of the view in its own coordinate space.   */  Dimension viewSize;  /**   * The ViewListener instance.   */  ViewListener viewListener;  /**   * Stores the location from where to blit. This is a cached Point object used   * in blitting calculations.   */  Point cachedBlitFrom;  /**   * Stores the location where to blit to. This is a cached Point object used   * in blitting calculations.   */  Point cachedBlitTo;  /**   * Stores the width of the blitted area. This is a cached Dimension object   * used in blitting calculations.   */  Dimension cachedBlitSize;  /**   * Stores the bounds of the area that needs to be repainted. This is a cached   * Rectangle object used in blitting calculations.    */  Rectangle cachedBlitPaint;  boolean damaged = true;  /**   * A flag indicating if the size of the viewport has changed since the   * last repaint. This is used in double buffered painting to check if we   * need a new double buffer, or can reuse the old one.   */  boolean sizeChanged = true;  public JViewport()  {    setOpaque(true);    String scrollModeProp =      System.getProperty("gnu.javax.swing.JViewport.scrollMode",                         "BLIT");    int myScrollMode;    if (scrollModeProp.equalsIgnoreCase("simple"))      myScrollMode = SIMPLE_SCROLL_MODE;    else if (scrollModeProp.equalsIgnoreCase("backingstore"))      myScrollMode = BACKINGSTORE_SCROLL_MODE;    else      myScrollMode = BLIT_SCROLL_MODE;    setScrollMode(myScrollMode);    updateUI();    setLayout(createLayoutManager());    lastPaintPosition = new Point();    cachedBlitFrom = new Point();    cachedBlitTo = new Point();    cachedBlitSize = new Dimension();    cachedBlitPaint = new Rectangle();  }  public Dimension getExtentSize()  {    if (extentSize == null)      return toViewCoordinates(getSize());    else      return extentSize;  }  public Dimension toViewCoordinates(Dimension size)  {    return size;  }  public Point toViewCoordinates(Point p)  {    Point pos = getViewPosition();    return new Point(p.x + pos.x,                     p.y + pos.y);  }  public void setExtentSize(Dimension newSize)  {    extentSize = newSize;    fireStateChanged();  }  /**   * Returns the viewSize when set, or the preferred size of the set   * Component view.  If no viewSize and no Component view is set an   * empty Dimension is returned.   */  public Dimension getViewSize()  {    if (isViewSizeSet)      return viewSize;    else      {	Component view = getView();	if (view != null)	  return view.getPreferredSize();	else	  return new Dimension();      }  }  public void setViewSize(Dimension newSize)  {    viewSize = newSize;    Component view = getView();    if (view != null)      {        if (newSize != view.getSize())          {            view.setSize(viewSize);            fireStateChanged();          }      }    isViewSizeSet = true;  }  /**   * Get the viewport's position in view space. Despite confusing name,   * this really does return the viewport's (0,0) position in view space,   * not the view's position.   */  public Point getViewPosition()  {    Component view = getView();    if (view == null)      return new Point(0,0);    else      {        Point p = view.getLocation();        p.x = -p.x;        p.y = -p.y;        return p;      }  }  public void setViewPosition(Point p)  {    if (getViewPosition().equals(p))      return;    Component view = getView();    if (view != null)      {        Point q = new Point(-p.x, -p.y);        view.setLocation(q);        isViewSizeSet = false;        fireStateChanged();      }    repaint();  }  public Rectangle getViewRect()  {    return new Rectangle(getViewPosition(),                          getExtentSize());  }  /**   * @deprecated 1.4   */  public boolean isBackingStoreEnabled()  {    return scrollMode == BACKINGSTORE_SCROLL_MODE;  }  /**   * @deprecated 1.4   */  public void setBackingStoreEnabled(boolean b)  {    if (b && scrollMode != BACKINGSTORE_SCROLL_MODE)      {        scrollMode = BACKINGSTORE_SCROLL_MODE;        fireStateChanged();      }  }  public void setScrollMode(int mode)  {    scrollMode = mode;    fireStateChanged();  }  public int getScrollMode()  {    return scrollMode;  }  public Component getView()  {    if (getComponentCount() == 0)      return null;      return getComponents()[0];  }  public void setView(Component v)  {    if (viewListener != null)      getView().removeComponentListener(viewListener);    if (v != null)      {        if (viewListener == null)          viewListener = createViewListener();        v.addComponentListener(viewListener);        add(v);        fireStateChanged();      }    revalidate();    repaint();  }  public void reshape(int x, int y, int w, int h)  {    if (w != getWidth() || h != getHeight())      sizeChanged = true;    super.reshape(x, y, w, h);    if (sizeChanged)      {        damaged = true;        fireStateChanged();      }  }  public final Insets getInsets()  {    return new Insets(0, 0, 0, 0);

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲欧美日韩一区二区三区在线观看| 精品中文字幕一区二区小辣椒 | 精品视频在线免费观看| 51午夜精品国产| 国产精品久久久久久久久果冻传媒 | 亚洲一区在线电影| 国产一区视频在线看| 欧美日韩精品高清| 亚洲视频免费在线观看| 国产成人av一区二区三区在线观看| 3atv在线一区二区三区| 亚洲女与黑人做爰| 成人激情av网| 国产精品你懂的| 国产精品888| 久久影院午夜片一区| 蜜臂av日日欢夜夜爽一区| 在线视频亚洲一区| 国产精品区一区二区三区| 国产综合色产在线精品| 日韩美女视频在线| 免费久久精品视频| 精品视频一区二区三区免费| 国产精品天美传媒| 国产激情一区二区三区桃花岛亚洲| 欧美一级生活片| 日本人妖一区二区| 欧美一区欧美二区| 日本成人在线视频网站| 欧美精品色一区二区三区| 亚洲成人三级小说| 91麻豆精品国产91久久久资源速度| 亚洲综合偷拍欧美一区色| 91国在线观看| 午夜精品一区二区三区电影天堂| 欧美在线高清视频| 亚洲成人免费视| 91精品国产乱码久久蜜臀| 亚洲高清免费观看高清完整版在线观看 | 97久久超碰国产精品电影| 国产精品国产三级国产aⅴ原创| 日韩免费高清电影| 国产伦理精品不卡| 中文字幕中文乱码欧美一区二区| 91丨九色丨蝌蚪丨老版| 亚洲国产中文字幕在线视频综合| 欧美日韩免费观看一区二区三区| 天天av天天翘天天综合网| 7777精品伊人久久久大香线蕉完整版| 麻豆国产精品一区二区三区| 久久一夜天堂av一区二区三区| 国产精品综合网| 亚洲精品精品亚洲| 91麻豆精品国产无毒不卡在线观看| 另类的小说在线视频另类成人小视频在线| 日韩精品中文字幕在线一区| 国产成人精品aa毛片| 亚洲综合激情小说| 日韩写真欧美这视频| 国产风韵犹存在线视精品| 亚洲欧美色图小说| 91精品婷婷国产综合久久 | 久久精品一区四区| 91亚洲精品一区二区乱码| 亚洲1区2区3区4区| 亚洲国产精品传媒在线观看| 91久久精品一区二区三| 免费成人在线网站| 综合久久给合久久狠狠狠97色 | 色狠狠综合天天综合综合| 日韩中文字幕亚洲一区二区va在线| 欧美成人a在线| 91亚洲精品一区二区乱码| 免费一级片91| 亚洲欧美电影一区二区| 久久日一线二线三线suv| 色狠狠桃花综合| 成人午夜视频福利| 美女网站一区二区| 亚洲伦理在线精品| 精品成人免费观看| 欧美日韩性生活| 波多野结衣精品在线| 日韩精品免费专区| 一区二区三区在线观看国产| 久久免费视频一区| 欧美一级欧美一级在线播放| 日本高清视频一区二区| 国产精品夜夜嗨| 麻豆国产精品一区二区三区| 亚洲第一搞黄网站| 有码一区二区三区| 中文字幕中文在线不卡住| 久久免费视频色| 精品久久久久久久一区二区蜜臀| 欧美日韩国产影片| 日本高清不卡一区| 91日韩一区二区三区| 97精品久久久久中文字幕| 国产乱色国产精品免费视频| 久久丁香综合五月国产三级网站| 亚洲高清免费在线| 亚洲成人免费看| 亚洲成人免费av| 视频一区中文字幕国产| 亚洲伊人伊色伊影伊综合网| 国产精品成人一区二区艾草| 国产精品女同一区二区三区| 国产精品免费aⅴ片在线观看| 精品国产91九色蝌蚪| 日韩一区二区三区视频在线| 日韩一区二区精品葵司在线| 日韩午夜激情av| 久久一夜天堂av一区二区三区 | 国产成人免费9x9x人网站视频| 久久成人久久爱| 久久av老司机精品网站导航| 精品无人区卡一卡二卡三乱码免费卡| 日日嗨av一区二区三区四区| 天堂一区二区在线| 久久精品国产澳门| 国产999精品久久久久久绿帽| 国产成人综合网| aaa国产一区| 欧美专区日韩专区| 日韩视频免费观看高清在线视频| 精品福利一区二区三区| 久久久国产综合精品女国产盗摄| 国产欧美中文在线| 中文字幕一区二区在线观看| 一区二区三区四区在线播放| 亚洲一二三级电影| 狠狠色丁香婷婷综合| 成人免费观看av| 欧美主播一区二区三区| 欧美大片国产精品| 国产精品久久久久7777按摩| 亚洲图片欧美色图| 久久精品久久久精品美女| 国产精品一区一区三区| 色悠悠久久综合| 91精品国产欧美一区二区18| 国产精品视频看| 天天免费综合色| 成人av在线网| 91.com视频| 中文字幕制服丝袜一区二区三区| 肉肉av福利一精品导航| 国产成人8x视频一区二区| 欧美日韩在线观看一区二区| 久久亚洲精品小早川怜子| 亚洲女同一区二区| 国产精品一区二区不卡| 在线欧美日韩国产| 久久毛片高清国产| 亚洲福利视频一区| 成人免费观看av| 欧美本精品男人aⅴ天堂| 一区二区三区中文在线| 国产综合久久久久影院| 欧美裸体bbwbbwbbw| 国产精品国产自产拍在线| 久久精品国产精品青草| 欧美日韩亚洲丝袜制服| 国产精品每日更新在线播放网址| 五月天激情小说综合| 成人午夜视频网站| 欧美xxxxxxxx| 青青草伊人久久| 欧美丝袜自拍制服另类| 中文字幕av资源一区| 免费在线观看成人| 欧美视频完全免费看| 亚洲欧美综合色| 国产成人综合亚洲网站| 精品日本一线二线三线不卡| 亚洲一区二区黄色| 99riav一区二区三区| 国产日韩精品一区二区三区在线| 麻豆精品一区二区av白丝在线| 色狠狠色噜噜噜综合网| 综合激情成人伊人| 成人免费高清在线| 欧美国产欧美综合| 国产精品77777| 国产女主播一区| 国产麻豆精品在线| 国产午夜精品久久久久久免费视| 精品系列免费在线观看| 精品国产亚洲在线| 久久er99热精品一区二区| 欧美videos大乳护士334| 蜜臀av性久久久久蜜臀aⅴ| 在线不卡中文字幕| 首页综合国产亚洲丝袜| 欧美精品aⅴ在线视频| 日韩黄色片在线观看| 91精品国产日韩91久久久久久| 日产欧产美韩系列久久99| 51午夜精品国产|