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

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

?? imgscrollpane.java

?? jpeg2000算法實現
?? JAVA
?? 第 1 頁 / 共 4 頁
字號:
        // Now redo the layout        doLayout();    }    /**     * Scrolls to the specified position within the image. Specifying a     * position outside of the legal scrolling bounds of the image will scroll     * to the closest legal position. This is a convenience method which     * interfaces with the Adjustable objects which represent the state of the     * scrollbars.     *     * @param x the x position to scroll to      *     * @param y the y position to scroll to      * */    public synchronized void setScrollPosition(int x, int y) {        hsbar.setValueI(x);        vsbar.setValueI(y);        // Check if we need to repaint        x = hsbar.getValue(); // get the actual value for check        y = vsbar.getValue(); // get the actual value for check        if (imgDisplay.lastUpdateOffset != null &&            imgDisplay.lastUpdateOffset.x == x &&            imgDisplay.lastUpdateOffset.y == y) {            return; // No change        }        // New value changes from last drawn => repaint        imgDisplay.repaint();    }    /**     * Scrolls to the specified position within the image. Specifying a     * position outside of the legal scrolling bounds of the image will scroll     * to the closest legal position. This is a convenience method which     * interfaces with the Adjustable objects which represent the state of the     * scrollbars.     *     * @param p the position to scroll to      * */    public synchronized void setScrollPosition(Point p) {        setScrollPosition(p.x,p.y);    }    /**     * Returns the current x,y position within the child which is displayed at     * the 0,0 location of the scrolled panel's view port. This is a     * convenience method which interfaces with the adjustable objects which     * represent the state of the scrollbars.     *     * @return the coordinate position for the current scroll position     * */    public Point getScrollPosition() {        return new Point(hsbar.getValue(),vsbar.getValue());    }    /**     * Returns the current size of the image scroll pane's view port. This is     * the size of the image display area. If this component has not been     * layed out yet the value is not defined.     *     * @return The size of the image display area     * */    public Dimension getViewportSize() {        return imgDisplay.getSize();    }    /**     * Sets if the scrolling is to be done by copying and redrawing of damaged     * parts of the displayed image. Otherwise it is done by redrawing the     * entire displayed image. In general copy scrolling is faster and     * produces less annoying effects. See the class description.     *     * @param v If true scrolling will be done by copying.     * */    public synchronized void setCopyScroll(boolean v) {        copyScroll = v;    }         /**     * Returns true if the scrolling is done by copying.     *     * @return If the copy is done by scrolling     * */    public synchronized boolean getCopyScroll() {        return copyScroll;    }    /**     * Causes this container to lay out its components. Most programs should     * not call this method directly, but should invoke the validate method     * instead.     * */    public synchronized void doLayout() {        // Let's see if we should include the scrollbars or not        if (sbType == SCROLLBARS_AS_NEEDED && imgDisplay.calcDim()) {            Dimension sz = getSize();            Dimension imsz = imgDisplay.getPreferredSize();            if (sz.width>=imsz.width+2*INTERNAL_GAP) {                if (sz.height>=imsz.height+2*INTERNAL_GAP) {                    // We don't need scrollbars                    hsbar.setVisible(false);                    vsbar.setVisible(false);                }                else {                    // We need at least the vertical one, check again for the                    // horizontal.                    vsbar.setVisible(true);                    if (sz.width >=                        imsz.width+3*INTERNAL_GAP+SCROLLBAR_THICKNESS) {                        hsbar.setVisible(false);                    }                    else {                        hsbar.setVisible(true);                    }                }            }            else {                // We need at least the horizontal, check for the vertical                // one.                hsbar.setVisible(true);                if (sz.height >=                    imsz.height+3*INTERNAL_GAP+SCROLLBAR_THICKNESS) {                    vsbar.setVisible(false);                }                else {                    vsbar.setVisible(true);                }            }        }        // Indicate that we are erasing the image (the doLayout() will erase)        imgDisplay.erase = true;        // Now do the layout        super.doLayout();        // Trick the lower scrollbar: if both scrollbars are showing then        // shorten the horizontal one so that the traditional empty square        // appears at the lower right corner. This is probably not the best        // solution but it works.        if (hsbar.isVisible() && vsbar.isVisible()) {            Rectangle b = hsbar.getBounds();            if (b.width > SCROLLBAR_THICKNESS+INTERNAL_GAP) {                b.width -= SCROLLBAR_THICKNESS+INTERNAL_GAP;            }            hsbar.setBounds(b);        }        // We need to calculate the scrollbars with the possibly new size        setScrollbars();    }    /**     * Adds the specified focus listener to receive focus events from this     * component. It is added to the image and scrollbar areas.     *     * @param l the focus listener     * */    public synchronized void addFocusListener(FocusListener l) {        super.addFocusListener(l);        imgDisplay.addFocusListener(l);        hsbar.addFocusListener(l);        vsbar.addFocusListener(l);    }    /**     * Removes the specified focus listener so that it no longer receives     * focus events from this component.     *     * @param l the focus listener     * */    public synchronized void removeFocusListener(FocusListener l) {        super.removeFocusListener(l);        imgDisplay.removeFocusListener(l);        hsbar.removeFocusListener(l);        vsbar.removeFocusListener(l);    }            /**     * Adds the specified key listener to receive key events from this     * component. It is added to the image and scrollbar areas.     *     * @param l the key listener     * */    public synchronized void addKeyListener(KeyListener l) {        super.addKeyListener(l);        imgDisplay.addKeyListener(l);        hsbar.addKeyListener(l);        vsbar.addKeyListener(l);    }    /**     * Removes the specified key listener so that it no longer receives key     * events from this component.     *     * @param l the key listener     * */    public synchronized void removeKeyListener(KeyListener l) {        super.removeKeyListener(l);        imgDisplay.removeKeyListener(l);        hsbar.removeKeyListener(l);        vsbar.removeKeyListener(l);    }    /**     * Adds the specified mouse listener to receive mouse events from this     * component. It is actually added to the image area only and not to the     * scrollbar areas.     *     * @param l the mouse listener     * */    public synchronized void addMouseListener(MouseListener l) {        super.addMouseListener(l);        imgDisplay.addMouseListener(l);    }    /**     * Removes the specified mouse listener so that it no longer receives     * mouse events from this component.     *     * @param l the mouse listener     * */    public synchronized void removeMouseListener(MouseListener l) {        super.removeMouseListener(l);        imgDisplay.removeMouseListener(l);    }    /**     * Adds the specified mouse motion listener to receive mouse motion events     * from this component. It is actually added to the image area only and     * not to the scrollbar areas.     *     * @param l the mouse motion listener     * */    public synchronized void addMouseMotionListener(MouseMotionListener l) {        super.addMouseMotionListener(l);        imgDisplay.addMouseMotionListener(l);    }    /**     * Removes the specified mouse motion listener so that it no longer     * receives mouse motion events from this component.     *     * @param l the mouse motion listener     * */    public synchronized void removeMouseMotionListener(MouseMotionListener l) {        super.removeMouseMotionListener(l);        imgDisplay.removeMouseMotionListener(l);    }    /**     * Sets the background color of this component. It sets the background of     * the 3 areas (image and scrollbars) plus the container itself.     *     * @param c The color to become background color for this component     * */    public synchronized void setBackground(Color c) {        super.setBackground(c);        imgDisplay.setBackground(c);        hsbar.setBackground(c);        vsbar.setBackground(c);    }    /**     * Set the cursor image to a predefined cursor. It sets the cursor of the     * image area and this container to the specified one. It does not set the      * cursor of the scrollbars.     *     * @param cursor One of the constants defined by the Cursor class.     * */    public synchronized void setCursor(Cursor cursor) {        super.setCursor(cursor);        imgDisplay.setCursor(cursor);    }    /**     * Enables or disables this component, depending on the value of the     * parameter b. An enabled component can respond to user input and     * generate events. Components are enabled initially by default.     *     * @param b If true, this component is enabled; otherwise this component     * is disabled.     * */    public synchronized void setEnabled(boolean b) {        super.setEnabled(b);        imgDisplay.setEnabled(b);        hsbar.setEnabled(b);        vsbar.setEnabled(b);    }    /**     * Sets the foreground color of this component. It sets the foreground of     * the 3 areas (image display and scrollbars) plus this contaioner's     * foreground.     *     * @param c The color to become this component's foreground color.     * */    public synchronized void setForeground(Color c) {        super.setForeground(c);        imgDisplay.setForeground(c);        hsbar.setForeground(c);        vsbar.setForeground(c);    }   /**     * Throws an IllegalArgumentException since no components can be added to     * this container.     * */    public Component add(Component comp) {        throw new IllegalArgumentException();    }    /**     * Throws an IllegalArgumentException since no components can be added to     * this container.     * */    public Component add(String name,Component comp) {        throw new IllegalArgumentException();    }    /**     * Throws an IllegalArgumentException since no components can be added to     * this container.     * */    public Component add(Component comp, int index) {        throw new IllegalArgumentException();    }    /**     * Throws an IllegalArgumentException since no components can be added to     * this container.     * */    public void add(Component comp, Object constraints) {        throw new IllegalArgumentException();    }    /**     * Throws an IllegalArgumentException since no components can be added to     * this container.     * */    public void add(Component comp, Object constraints, int index) {        throw new IllegalArgumentException();    }    /**     * Throws an IllegalArgumentException since the components should never be      * removed from this container.     * */    public void remove(int index) {        throw new IllegalArgumentException();    }    /**     * Throws an IllegalArgumentException since the components should never be      * removed from this container.

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久国产精品色| 奇米色一区二区| 国产jizzjizz一区二区| 国产日韩欧美电影| 91麻豆免费在线观看| 亚洲综合色区另类av| 日韩免费电影网站| 成人免费毛片a| 亚洲综合激情网| 2017欧美狠狠色| 色婷婷av一区二区三区gif| 亚洲国产视频在线| 久久久综合激的五月天| 色婷婷激情久久| 国内精品久久久久影院薰衣草| 亚洲欧洲日韩在线| 欧美一区二区三区在线电影| 丁香六月综合激情| 奇米777欧美一区二区| 亚洲另类色综合网站| 国产精品久久久久久久第一福利| 成人午夜免费电影| 一区二区三区欧美| 欧美大片免费久久精品三p | 亚洲超碰97人人做人人爱| 亚洲午夜在线观看视频在线| 欧美日韩精品一区二区天天拍小说| 一区二区在线观看免费| 久久久99精品免费观看| 91年精品国产| 一本大道久久a久久综合| 成人免费一区二区三区在线观看| 7777精品伊人久久久大香线蕉经典版下载 | 一区二区高清免费观看影视大全| 亚洲最大成人网4388xx| 国产美女av一区二区三区| 亚洲国产精品一区二区久久| 国产网红主播福利一区二区| 91麻豆视频网站| 在线日韩一区二区| 欧美一区二区三区日韩| 26uuu色噜噜精品一区二区| 激情欧美一区二区三区在线观看| 日韩你懂的在线观看| 亚洲在线视频免费观看| 日韩一级在线观看| 韩国欧美一区二区| 国产午夜亚洲精品理论片色戒| 日本免费新一区视频| 欧美xxxx在线观看| 一本一道波多野结衣一区二区 | 首页国产丝袜综合| 美国精品在线观看| av不卡一区二区三区| 制服丝袜成人动漫| 欧美激情自拍偷拍| 日韩av一级片| 欧美日韩亚州综合| 亚洲自拍偷拍图区| 国产成人精品aa毛片| 色哟哟在线观看一区二区三区| 日韩欧美一区二区不卡| 2023国产一二三区日本精品2022| 99国产精品久久久久久久久久 | 91视频精品在这里| 国产成人免费视频网站高清观看视频| 91在线视频在线| 国产精品福利一区二区三区| 美女视频黄免费的久久| 欧美一区二区在线视频| 国产精品一区二区在线播放| 亚洲成av人片在线| 亚洲综合色丁香婷婷六月图片| 国产精品美女久久久久久久| 91精品国产色综合久久| 精品日韩欧美在线| xnxx国产精品| 久久亚区不卡日本| 91福利视频久久久久| 亚洲男人天堂av| 91美女福利视频| 香蕉乱码成人久久天堂爱免费| 91在线你懂得| 天天色天天爱天天射综合| 欧美一区二区三区在| 国产福利一区二区三区视频| 亚洲色图欧美在线| 欧美一级二级三级乱码| 一区二区三区四区视频精品免费| 色婷婷精品大在线视频| 亚洲乱码国产乱码精品精的特点| 日韩一区二区在线观看| 国产乱对白刺激视频不卡| 午夜欧美一区二区三区在线播放| 欧美一区二区三区系列电影| 日韩中文字幕1| 777亚洲妇女| 国产九色sp调教91| 午夜久久久久久久久| 国产欧美日韩激情| 一本到不卡精品视频在线观看| 婷婷开心激情综合| 26uuu欧美日本| 成人的网站免费观看| 日本亚洲天堂网| 亚洲激情成人在线| 久久久久久久久久久久电影| 91小视频在线观看| 国产一区二区三区四区在线观看| 亚洲视频免费在线观看| 91精品国产一区二区三区香蕉 | 在线播放中文字幕一区| 成人一区二区视频| 久久爱另类一区二区小说| 中文字幕亚洲精品在线观看| 欧美精品一二三| 色狠狠一区二区三区香蕉| 亚洲综合一区二区三区| 日本一区二区免费在线观看视频 | 香蕉成人啪国产精品视频综合网 | 九一九一国产精品| 日韩av在线发布| 日本女人一区二区三区| 日韩成人午夜电影| 青青青伊人色综合久久| 亚洲第一会所有码转帖| 亚洲国产日产av| 日本亚洲天堂网| 国产一区二区在线免费观看| 国产一区二区不卡老阿姨| 国产乱妇无码大片在线观看| 不卡一区二区中文字幕| 不卡的看片网站| 欧美日本视频在线| 在线观看91av| 国产人成一区二区三区影院| 亚洲视频免费观看| 午夜亚洲国产au精品一区二区| 欧美a级理论片| 成人aaaa免费全部观看| 欧洲另类一二三四区| 日韩女优视频免费观看| 中文字幕不卡的av| 亚洲成人手机在线| 国产精一品亚洲二区在线视频| 国产精品一区二区黑丝| 99视频精品全部免费在线| 欧美中文字幕一区| 国产性色一区二区| 丝袜美腿高跟呻吟高潮一区| 国产精品自拍毛片| 欧美一区二区三区系列电影| 亚洲欧洲精品一区二区三区不卡 | 日韩美女视频一区二区 | 久久久777精品电影网影网 | 亚洲一区二区综合| 成年人网站91| 国产欧美日韩精品在线| 久久97超碰国产精品超碰| 欧美午夜电影在线播放| 国产精品久久毛片av大全日韩| 日日夜夜精品视频免费| 欧美影院一区二区| 亚洲欧美韩国综合色| 91在线观看免费视频| 成人欧美一区二区三区小说| 91视频.com| 亚洲一区二区五区| 欧美巨大另类极品videosbest| 一区二区在线电影| 欧美日韩精品专区| 婷婷夜色潮精品综合在线| 91精品国产乱码| 国产成人免费视频精品含羞草妖精| 欧美成人精品3d动漫h| 久久精品国产**网站演员| 精品毛片乱码1区2区3区| 高清在线观看日韩| 亚洲一区二区在线免费观看视频| 88在线观看91蜜桃国自产| 国产麻豆精品theporn| 一区二区三区中文免费| 欧美一级精品在线| 国产98色在线|日韩| 亚洲高清不卡在线| 久久久综合视频| 7799精品视频| 日本韩国一区二区| 成人一区在线看| 婷婷六月综合亚洲| 亚洲欧洲av在线| 欧美一区二区在线不卡| 91麻豆视频网站| 成人深夜福利app| 老司机免费视频一区二区三区| 最新日韩在线视频| 国产农村妇女毛片精品久久麻豆| 欧美日韩高清影院| 99麻豆久久久国产精品免费优播| 美女视频网站久久|