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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? jviewport.java

?? linux下編程用 編譯軟件
?? 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);

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品理伦片| 欧美一区二区三区影视| 日本一区二区三区在线观看| 国产一区二区视频在线播放| 久久网这里都是精品| 国产黄人亚洲片| 国产人成一区二区三区影院| 波多野结衣中文一区| 亚洲欧美另类久久久精品2019| 99re这里只有精品首页| 亚洲男帅同性gay1069| 91一区二区三区在线观看| 一区二区三区在线免费播放 | 欧美日韩另类一区| 图片区小说区国产精品视频| 7777女厕盗摄久久久| 久久国产精品露脸对白| 欧美激情综合五月色丁香小说| 国产a区久久久| 一区二区三区中文字幕| 正在播放亚洲一区| 风间由美中文字幕在线看视频国产欧美| 国产精品久久三| 欧美三级中文字幕在线观看| 美女视频免费一区| 国产精品久久久久影院亚瑟| 欧美色窝79yyyycom| 国产精品一区二区久久精品爱涩 | 精品视频在线看| 国产揄拍国内精品对白| 亚洲特黄一级片| 日韩一区二区三| 97se亚洲国产综合在线| 一区二区理论电影在线观看| 精品人在线二区三区| 色综合咪咪久久| 国产精品自拍三区| 午夜精品久久久久影视| 国产色产综合色产在线视频| 在线成人小视频| 91视频.com| 国产精品996| 日日夜夜精品免费视频| 中文字幕中文字幕一区| 日韩午夜中文字幕| 91免费视频观看| 成人免费视频播放| 久久99精品网久久| 午夜精品久久久久影视| 亚洲图片你懂的| 国产日韩成人精品| 日韩一区二区三区视频| 欧美性受xxxx黑人xyx| 成人高清免费观看| 日韩电影一区二区三区| 亚洲激情男女视频| 中文字幕五月欧美| 国产婷婷色一区二区三区四区| 91久久一区二区| 91偷拍与自偷拍精品| 国产69精品久久777的优势| 六月婷婷色综合| 日本怡春院一区二区| 亚洲mv大片欧洲mv大片精品| 中文字幕一区三区| 国产精品视频第一区| 久久久久国产精品麻豆ai换脸| 正在播放一区二区| 91精品在线观看入口| 欧美精选一区二区| 欧美撒尿777hd撒尿| 欧美三级日韩在线| 在线观看一区二区视频| 成人av网站在线| voyeur盗摄精品| 成人黄色网址在线观看| 国产成人aaa| 国产黄色精品网站| 国产91精品精华液一区二区三区| 精品一区二区三区蜜桃| 老司机精品视频导航| 久久99国产精品久久99| 免费在线看一区| 国产综合色精品一区二区三区| 老司机精品视频一区二区三区| 精品一区二区三区不卡| 国内国产精品久久| 国产激情视频一区二区三区欧美| 国产精品一品二品| av一区二区三区在线| 91色视频在线| 69堂亚洲精品首页| 欧美xxxxxxxxx| 中文字幕乱码亚洲精品一区| 国产精品麻豆一区二区| 亚洲男人的天堂在线aⅴ视频| 亚洲综合另类小说| 日韩和的一区二区| 国产一区二区女| 99九九99九九九视频精品| 在线一区二区三区四区五区 | 国产高清不卡二三区| 成人av手机在线观看| 91福利在线播放| 91精品国产欧美一区二区18| 欧美精品一区二区三区在线播放 | 国产精品久久看| 亚洲国产美女搞黄色| 毛片av一区二区三区| 国产aⅴ综合色| 在线影院国内精品| 欧美精品一区二区久久婷婷| 中文欧美字幕免费| 亚洲国产精品嫩草影院| 久久99热这里只有精品| 成人天堂资源www在线| 色综合av在线| 亚洲精品一线二线三线| 亚洲欧美偷拍另类a∨色屁股| 亚洲123区在线观看| 国产乱码一区二区三区| 欧美性大战久久久久久久蜜臀| 欧美一级精品大片| 亚洲日本中文字幕区| 久久精品国产成人一区二区三区| 本田岬高潮一区二区三区| 91精品免费观看| 亚洲天堂2014| 国产精品99久久久久久有的能看| 欧美色综合网站| 《视频一区视频二区| 久久成人羞羞网站| 日本韩国一区二区| 国产亚洲一区二区三区在线观看| 亚洲成人在线网站| 91视频精品在这里| 中文字幕免费在线观看视频一区| 日韩精品91亚洲二区在线观看| www.欧美日韩国产在线| 久久亚区不卡日本| 日韩精品成人一区二区三区| 一本久久a久久免费精品不卡| 久久嫩草精品久久久精品一| 亚洲电影中文字幕在线观看| 懂色一区二区三区免费观看| 欧美成人高清电影在线| 亚洲成a人v欧美综合天堂 | 一区二区三区毛片| 99久久99久久精品免费观看| 国产日韩欧美一区二区三区综合 | 亚洲国产精品t66y| 九九九久久久精品| 日韩免费电影一区| 日韩精品乱码av一区二区| 欧美日免费三级在线| 亚洲女人的天堂| 国产成人激情av| 国产午夜精品久久久久久免费视 | 在线播放国产精品二区一二区四区 | 国产目拍亚洲精品99久久精品| 五月婷婷久久丁香| 欧美日韩中文字幕一区二区| 亚洲精品成人悠悠色影视| jlzzjlzz欧美大全| 国产精品久久久久久久久晋中| 国产精品一线二线三线精华| 精品免费国产二区三区| 伦理电影国产精品| 久久综合视频网| 国产原创一区二区三区| 国产日韩av一区二区| 高清久久久久久| 中文字幕欧美日韩一区| aaa亚洲精品一二三区| 中文字幕在线一区免费| www.欧美日韩| 亚洲综合色噜噜狠狠| 在线欧美日韩国产| 亚洲午夜激情网页| 欧美高清精品3d| 老司机免费视频一区二区三区| 精品国产一区二区三区不卡| 久久99精品国产麻豆婷婷| www亚洲一区| 成人av资源网站| 亚洲国产裸拍裸体视频在线观看乱了 | 国产欧美精品一区二区色综合朱莉 | 国产美女娇喘av呻吟久久| 久久婷婷国产综合精品青草 | 成人h版在线观看| 亚洲视频综合在线| 欧美日韩国产小视频在线观看| 午夜精品久久久| 精品国产一区a| av资源网一区| 五月激情综合色| 欧美经典三级视频一区二区三区| 99re视频精品| 美女视频免费一区| 1024精品合集|