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

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

?? spring.java

?? gcc的組建
?? JAVA
字號:
/* Spring.java --    Copyright (C) 2004 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;/** * Calculates the space between component edges, that are layed out by * {@link SpringLayout}. * <p> * A Spring defines a minimum, preferred and maximum distance for each edge * (north, east, south, west) of a component. * </p> * However, springs are not static, their actual values are computed at * runtime. That means, if a Spring C is defined as the sum of Spring A and * Spring B, then the values (min, pref and max) are not calculated at * creation of Spring C, but instead always when {@link #getValue} is * called. So, when Spring A or Spring B changes, this is reflected in * Spring C. * * @author Roman Kennke (roman@ontographics.com) */public abstract class Spring{  /** Indicates a not-set value. **/  public static final int UNSET = -2147483648;  /**   * Creates a new Spring object. This constructor is used by the static   * methods which create Springs.   */  protected Spring()  {    // Nothing to do here.  }  /**   * Creates a Spring which min, pref and max values are all the same.   * These kind of Springs are 'struts'.   *   * @param val the constant for min, pref and max values.   * @return a Spring object with constant values for min, pref and max.   */  public static Spring constant(int val)  {    return new SimpleSpring(val, val, val);  }  /** Creates a Spring which min, pref and max values are constants.   * @param min the constant for the minimum value.   * @param pref the constant for the preferred value.   * @param max the constant for the maximum value.   * @return a Spring object with constant values for min, pref and max.   */  public static Spring constant(int min, int pref, int max)  {    return new SimpleSpring(min, pref, max);  }  /**   * Returns the maximum value of the Spring.   *   * @return the maximum value.   */  public abstract int getMaximumValue();  /**   * Returns the minimum value of this Spring.   *   * @return the minimum value.   */  public abstract int getMinimumValue();  /**   * Return the preferred value of this Spring.   *   * @return the preferred value.   */  public abstract int getPreferredValue();  /**   * Return the actual value of this Spring.   *   * @return the actual value of this Spring.   */  public abstract int getValue();  /**   * Creates and returns a Spring, which always has the maximum values   * min = max(min_s1, min_s2), pref = max(pref_s1, pref_s2), max =   * max(max_s1, max_s2).   *   * @param s1 the first summand of the max Spring.   * @param s2 the second summand of the max Spring.   * @return a Spring which is max(s1, s2).   */  public static Spring max(Spring s1, Spring s2)  {    return new MaxSpring(s1, s2);  }  /**   * Creates and returns a Spring, which is always the negation of s.   * min = -min_s, pref = -pref_s, max = -max_pref.   *   * @param s the Spring to be negated.   * @return the negative of <code>s</code>.   */  public static Spring minus(Spring s)  {    return new MinusSpring(s);  }  /**   * Sets the actual value. If <code>value</code> is out of the (min, max)   * bounds, then the value is adjusted, so that is inside these bounds.   *   * @param value the value to be set.   */  public abstract void setValue(int value);  /**   * Creates and returns a Spring, which is always the sum of s1 and s2.   * min_sum = min_s1 + min_s2, pref_sum = pref_s1 + pref_s2, max_sum =   * max_s1 + max_s2.   *   * @param s1 the 1st summand of the sum Spring.   * @param s2 the 2nd summand of the sum Spring.   * @return a sum which is <code>s1 + s2</code>.   */  public static Spring sum(Spring s1, Spring s2)  {    return new AddSpring(s1, s2);  }  /**   * A simple Spring, that holds constant values for min, pref and max.   *   * @author Roman Kennke (roman@ontographics.com)   */  private static final class SimpleSpring extends Spring  {    /** The constant value for min. */    private final int min;    /** The constant value for pref. */    private final int pref;    /** The constant value for max. */    private final int max;    /** The actual value of the spring. */    private int value;    /**     * Creates a new SimpleSpring object.     *     * @param newMin the constant minimum value.     * @param newPref the constant preferred value.     * @param newMax the constant maximum value.     */    public SimpleSpring(int newMin, int newPref, int newMax)    {      min = newMin;      pref = newPref;      max = newMax;      value = Spring.UNSET;    }    /**     * Returns the maximum value of this Spring.     *     * @return the maximum value.     */    public int getMaximumValue()    {      return max;    }    /**     * Returns the minimum value of this Spring.     *     * @return the minimum value.     */    public int getMinimumValue()    {      return min;    }    /**     * Returns the preferred value of this Spring.     *     * @return the preferred value.     */    public int getPreferredValue()    {      return pref;    }    /**     * Return the actual current value of this Spring.     *     * @return the current value.     */    public int getValue()    {      if (value == Spring.UNSET)        {          value = pref;        }	          return value;    }	    /**     * Sets the current value.     *     * @param val the value to be set.     */    public void setValue(int val)    {      if (val > max)        {          value = max;	}      else if (val < min)        {          value = min;	}      else        {          value = val;        }    }  }  /**   * A Spring, that is the sum of two other Springs.   *   * @author Roman Kennke (roman@ontographics.com)   */  private static final class AddSpring extends Spring  {    /** The springs, that are the 'operands' of this Spring. */    private final Spring s1;    private final Spring s2;    /** The current value for this Spring. */    private int value;    /**     * Creates a new AddSpring object.     *     * @param s1 the first operand.     * @param s2 the second operand.     */    protected AddSpring(Spring s1, Spring s2)    {      super();      this.s1 = s1;      this.s2 = s2;      value = Spring.UNSET;    }    /**     * Returns the maximum value of this Spring.     *     * @return the maximum value.     */    public int getMaximumValue()    {      int max1 = s1.getMaximumValue();      int max2 = s2.getMaximumValue();      return max1 + max2;    }    /**     * Return the minimum value of this Spring.     *     * @return the minimum value.     */    public int getMinimumValue()    {      int min1 = s1.getMinimumValue();      int min2 = s2.getMinimumValue();      return min1 + min2;    }    /**     * Returns the preferred value of this Spring.     *     * @return the preferred value.     */    public int getPreferredValue()    {      int pref1 = s1.getPreferredValue();      int pref2 = s2.getPreferredValue();      return pref1 + pref2;    }    /**     * Returns the actual current value of this Spring.     *     * @return the current value of this Spring.     */    public int getValue()    {      if (value == Spring.UNSET)        {          int val1 = s1.getValue();          int val2 = s2.getValue();          value = val1 + val2;        }      return value;    }    /**     * Sets the current value.     *     * @param val the value to be set.     */    public void setValue(int val)    {      if (val > getMaximumValue())        {          value = getMaximumValue();        }      else if (val < getMinimumValue())        {          value = getMinimumValue();        }      else        {          value = val;        }    }	  }  /**   * A Spring that is calculated as the negation of another Spring.   *   * @author Roman Kennke (roman@ontographics.com)   */  private static final class MinusSpring extends Spring  {    /** The Spring from which to calculate the negation. */    private final Spring s;    /** The current value of this Spring. */    private int value;    /**     * Creates a new MinusSpring object.     * @param s the Spring from which to calculate the negation.     */    protected MinusSpring(Spring s)    {      super();      this.s = s;      value = Spring.UNSET;    }    /** Returns the maximum value of this Spring.     *     * @return the maximum value.     */    public int getMaximumValue()    {      return -s.getMinimumValue();    }    /**     * Returns the minimum value of this Spring.     *     * @return the minimum value.     */    public int getMinimumValue()    {      return -s.getMaximumValue();    }    /**     * Returns the preferred value of this Spring.     *     * @return the preferred value.     */    public int getPreferredValue()    {      return -s.getPreferredValue();    }    /**     * Returns the current value of this Spring.     *     * @return the current value.     */    public int getValue()    {      if (value == Spring.UNSET)        {	  value = -s.getValue();	}      return value;    }    /**     * Sets the current value.     *     * @param val the value to be set.     */    public void setValue(int val)    {          if (val > getMaximumValue())        {          value = getMaximumValue();	}      else if (val < getMinimumValue())	{          value = getMinimumValue();        }      else	{	  value = val;        }    }  }  /**   * A Spring, that is calculated as the maximum of two Springs.   *   * @author Roman Kennke (roman@ontographics.com)   */  private static final class MaxSpring extends Spring  {    /** The two other Springs from which to calculate the maximum. */    private final Spring s1;    private final Spring s2;    /** The current value of this Spring. */    private int value;    /**     * Creates a new MaxSpring object.     *     * @param s1 the 1st operand.     * @param s2 the 2nd operand.     */    protected MaxSpring(Spring s1, Spring s2)    {      super();      this.s1 = s1;      this.s2 = s2;      value = Spring.UNSET;    }    /**     * Returns the maximum value of this Spring.     *     * @return the maximum value.     */    public int getMaximumValue()    {      int max1 = s1.getMaximumValue();      int max2 = s2.getMaximumValue();      return Math.max(max1, max2);    }    /**     * Returns the minimum value of this Spring.     *     * @return the minimum value.     */    public int getMinimumValue()    {      int min1 = s1.getMinimumValue();      int min2 = s2.getMinimumValue();      return Math.max(min1, min2);    }    /**     * Returns the preferred value of this Spring.     *     * @return the preferred value.     */    public int getPreferredValue()    {      int pref1 = s1.getPreferredValue();      int pref2 = s2.getPreferredValue();      return Math.max(pref1, pref2);    }    /**     * Returns the actual value of this Spring.     *     * @return the current value.     */    public int getValue()    {      if (value == Spring.UNSET)        {          int val1 = s1.getValue();          int val2 = s2.getValue();          value = Math.max(val1, val2);      }      return value;    }    /**     * Sets the current value.     *     * @param val the value to be set.     */    public void setValue(int val)    {      if (val > getMaximumValue())        {          value = getMaximumValue();	}      else if (val < getMinimumValue())        {          value = getMinimumValue();        }      else        {          value = val;        }    }  }}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩视频免费观看高清完整版在线观看 | 日韩精品一二三四| 99久久国产免费看| 亚洲情趣在线观看| 欧美系列亚洲系列| 日韩国产欧美三级| 日韩精品中午字幕| 国产成人在线免费观看| 亚洲国产精品高清| 日本电影亚洲天堂一区| 首页国产欧美日韩丝袜| 26uuu国产一区二区三区| 粉嫩蜜臀av国产精品网站| 亚洲青青青在线视频| 欧美高清视频一二三区 | 91黄视频在线| 日韩福利视频网| 欧美高清在线视频| 在线亚洲免费视频| 日韩一区二区在线看片| 欧美精品一区二区三区久久久| 国内精品久久久久影院一蜜桃| 久久精品人人做人人爽97| 91老师片黄在线观看| 91年精品国产| 午夜国产不卡在线观看视频| 久久这里只有精品首页| 99久久99久久综合| 久热成人在线视频| 中文字幕亚洲一区二区va在线| 欧美日韩一区二区三区四区 | 99久久精品久久久久久清纯| 亚洲高清免费观看 | av在线不卡网| 日韩国产一区二| 日韩久久一区二区| 欧美videos大乳护士334| 91论坛在线播放| 在线播放日韩导航| 日本一区二区视频在线观看| 色综合久久综合网欧美综合网| 亚洲图片一区二区| 日本一区二区三区四区| 欧美日韩一区二区电影| 成人av在线影院| 精品一区二区三区在线播放 | 日本高清无吗v一区| 精品一区二区成人精品| 亚洲午夜视频在线观看| 日本一区二区三区国色天香| 制服.丝袜.亚洲.中文.综合| 色综合视频一区二区三区高清| 国产在线一区二区综合免费视频| 亚洲地区一二三色| 中文字幕一区二区三区四区不卡| 久久久天堂av| 日韩精品综合一本久道在线视频| 欧美三级欧美一级| 欧美在线观看视频一区二区 | 91国在线观看| 风间由美一区二区av101| 免费观看日韩av| 日韩综合小视频| 国产69精品久久99不卡| 久久激五月天综合精品| 性做久久久久久免费观看| 一区二区三区.www| 日韩一区在线看| 国产精品第13页| 国产精品黄色在线观看| 国产女人18毛片水真多成人如厕| 久久综合久久综合亚洲| 精品国产免费人成在线观看| 欧美xxxxx牲另类人与| 日韩一区二区在线看| 日韩无一区二区| 日韩一二三四区| 精品免费视频一区二区| 精品国产凹凸成av人导航| 欧美成人性福生活免费看| 久久这里只有精品视频网| 久久久精品黄色| 国产精品久久久久毛片软件| 自拍偷自拍亚洲精品播放| 亚洲精品亚洲人成人网在线播放| 亚洲欧美电影一区二区| 亚洲一区二区视频在线| 午夜精品视频一区| 久久av中文字幕片| 国产成人免费高清| 91网站黄www| 欧美性大战久久| 欧美一区二区三区性视频| ww久久中文字幕| 国产精品每日更新| 亚洲自拍偷拍av| 蜜桃一区二区三区在线| 国产剧情一区二区| 99精品视频在线免费观看| 色视频成人在线观看免| 欧美一区二区三区在线| 久久精品视频在线免费观看| 捆绑调教美女网站视频一区| 久久久国产精品麻豆| 国产精品午夜在线| 亚洲免费观看高清完整版在线 | 波多野结衣中文字幕一区| 色老综合老女人久久久| 欧美一级二级三级蜜桃| 国产校园另类小说区| 一区二区三区日韩欧美精品| 免费看黄色91| av亚洲精华国产精华| 欧美日本一区二区三区四区 | 日韩专区中文字幕一区二区| 国产美女精品一区二区三区| 成人中文字幕在线| 欧美日本韩国一区二区三区视频 | 91亚洲国产成人精品一区二三| 欧美日韩免费一区二区三区 | 成人a免费在线看| 538prom精品视频线放| 日本一区二区三区dvd视频在线| 亚洲精品国产品国语在线app| 蜜桃91丨九色丨蝌蚪91桃色| 99精品桃花视频在线观看| 欧美不卡一区二区三区四区| 亚洲色图另类专区| 国产一区二区三区免费看| 欧美日韩一区二区三区视频| 国产女同互慰高潮91漫画| 无吗不卡中文字幕| 91老师国产黑色丝袜在线| 久久免费午夜影院| 日本不卡视频在线观看| 一本一本大道香蕉久在线精品| 久久影视一区二区| 日韩成人一级大片| 欧洲精品视频在线观看| 中文字幕二三区不卡| 极品少妇xxxx精品少妇| 欧美另类高清zo欧美| 亚洲美女免费在线| 成人国产视频在线观看| 久久久久久9999| 久久精品国产久精国产| 欧美日韩国产精品成人| 亚洲精选在线视频| 91小视频免费观看| 国产精品青草综合久久久久99| 国产在线精品一区二区不卡了| 欧美日本一区二区三区四区 | 国产精品国模大尺度视频| 国产成人精品影视| 亚洲精品一区二区三区福利| 蜜臀av一区二区| 欧美一区二区高清| 日韩精品欧美精品| 欧美一区二区三区在| 中文字幕日韩av资源站| 大陆成人av片| 国产色91在线| 国产成人欧美日韩在线电影| 久久亚洲影视婷婷| 激情综合色播五月| 精品国产成人系列| 久久激情综合网| 精品国产乱码久久久久久老虎| 九九久久精品视频| 6080日韩午夜伦伦午夜伦| 91香蕉视频mp4| 亚洲欧洲精品成人久久奇米网| 99综合影院在线| 一区在线观看视频| 在线观看中文字幕不卡| 亚洲午夜久久久久| 4438x成人网最大色成网站| 奇米亚洲午夜久久精品| 2020国产成人综合网| 国产成人精品一区二区三区四区 | av在线不卡观看免费观看| 最好看的中文字幕久久| 在线观看一区二区视频| 肉丝袜脚交视频一区二区| 日韩欧美综合一区| 国产mv日韩mv欧美| 亚洲欧美国产毛片在线| 欧美三日本三级三级在线播放| 五月天视频一区| 久久亚洲精品小早川怜子| 成人性色生活片| 亚洲一级二级三级在线免费观看| 欧洲一区在线观看| 日韩av不卡在线观看| 国产日韩欧美不卡在线| 色综合久久综合网97色综合| 日本欧美一区二区在线观看| 久久蜜臀精品av| 在线视频你懂得一区| 精品一区二区三区免费播放 |