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

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

?? spring.java

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

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美综合亚洲图片综合区| 丰满岳乱妇一区二区三区| 色婷婷久久99综合精品jk白丝| 欧美激情一区二区三区不卡 | 99精品欧美一区二区三区小说| 欧美激情中文字幕一区二区| 成人精品小蝌蚪| 亚洲与欧洲av电影| 91精品国产91综合久久蜜臀| 激情综合色综合久久综合| 国产欧美精品区一区二区三区 | 久久久久久久久久久久久久久99| 国产成人综合在线观看| 亚洲欧洲精品一区二区精品久久久 | 91美女片黄在线观看| 亚洲一卡二卡三卡四卡五卡| 欧美一级高清片| 丰满亚洲少妇av| 亚洲高清在线精品| 精品美女被调教视频大全网站| 国产jizzjizz一区二区| 亚洲一区影音先锋| 精品国产乱码久久久久久1区2区| 波多野结衣视频一区| 日韩影视精彩在线| 国产肉丝袜一区二区| 欧美日韩小视频| 国产成人精品一区二| 亚洲r级在线视频| 亚洲国产精品ⅴa在线观看| 欧美日韩午夜在线视频| 国产精品一区二区黑丝| 亚洲成a人片在线观看中文| 久久久久久久久久久黄色| 欧美日本一道本在线视频| 成人午夜精品在线| 美女精品一区二区| 一区二区在线观看免费视频播放| 2020日本不卡一区二区视频| 91国产福利在线| 国产成人无遮挡在线视频| 日韩中文字幕一区二区三区| 最新日韩av在线| 久久免费看少妇高潮| 欧美三级三级三级| 93久久精品日日躁夜夜躁欧美| 精品一区二区在线播放| 天堂一区二区在线免费观看| 中文字幕在线观看一区二区| 亚洲国产va精品久久久不卡综合| 一区二区高清免费观看影视大全| 欧美二区在线观看| 99久久婷婷国产综合精品| 久久机这里只有精品| 成人自拍视频在线| 奇米四色…亚洲| 亚洲国产一区二区在线播放| 国产精品系列在线| 国产色一区二区| 精品久久久久久久人人人人传媒| 欧美日韩aaaaa| 欧美午夜精品一区| 在线观看91视频| 在线观看亚洲一区| 色婷婷亚洲婷婷| 91福利区一区二区三区| 99热在这里有精品免费| 成人综合激情网| 成人性视频网站| 成人蜜臀av电影| 东方欧美亚洲色图在线| 国产成人av电影在线播放| 国产一区二区不卡在线| 国产精品一二三四区| 国产在线精品不卡| 国产一二精品视频| 国产99一区视频免费| 国产成a人亚洲| jlzzjlzz亚洲女人18| 成人午夜碰碰视频| 91蝌蚪国产九色| 在线观看亚洲a| 日本一区二区免费在线| 久久嫩草精品久久久精品一| 久久久久久久久久久久电影| 日本一区二区三区久久久久久久久不| 久久精品夜色噜噜亚洲a∨| 国产亚洲1区2区3区| 中文字幕精品三区| 18欧美乱大交hd1984| 一区二区三区四区不卡视频| 亚洲综合视频在线| 亚洲一区二区欧美日韩| 无码av免费一区二区三区试看| 三级成人在线视频| 国产一区二区三区视频在线播放| 国产激情一区二区三区| 不卡视频一二三四| 欧美色综合久久| 日韩欧美国产午夜精品| 国产视频在线观看一区二区三区| 国产精品看片你懂得| 亚洲一线二线三线视频| 捆绑变态av一区二区三区| 国产ts人妖一区二区| 日本韩国一区二区| 91精品在线免费观看| 国产三级欧美三级| 亚洲精品久久嫩草网站秘色| 蜜臀精品久久久久久蜜臀| 成人妖精视频yjsp地址| 欧美日韩精品高清| 国产日本欧洲亚洲| 亚洲午夜久久久久久久久电影院 | 99国产精品国产精品毛片| 91官网在线观看| 精品国产一区二区三区久久久蜜月 | 欧美成人免费网站| 亚洲视频在线一区二区| 91日韩一区二区三区| 欧美一区二区网站| 国产精品久久久久久福利一牛影视| 亚洲一区二区在线视频| 国产在线日韩欧美| 欧美中文字幕一区二区三区| 久久综合成人精品亚洲另类欧美| 亚洲精品视频在线| 国产精品亚洲成人| 777久久久精品| 亚洲精品日韩一| 国产成人午夜片在线观看高清观看| 欧美日韩小视频| 国产精品传媒在线| 国产专区综合网| 欧美精品一卡二卡| 亚洲男帅同性gay1069| 国产精品一区二区三区四区 | 国产美女精品一区二区三区| 欧美探花视频资源| 最新久久zyz资源站| 国产综合久久久久久鬼色 | 欧美一区二区精品在线| 亚洲欧洲av在线| 国产精品乡下勾搭老头1| 7777精品伊人久久久大香线蕉超级流畅| 国产精品美女久久久久久久久 | 国产日本一区二区| 精品一区二区三区久久久| 欧美视频三区在线播放| 一区在线播放视频| av电影在线观看一区| 久久先锋资源网| 九九九精品视频| 日韩欧美一级二级三级久久久| 亚洲成va人在线观看| 欧亚洲嫩模精品一区三区| 亚洲视频中文字幕| 91小宝寻花一区二区三区| 国产精品狼人久久影院观看方式| 国产呦精品一区二区三区网站| 日韩欧美亚洲国产精品字幕久久久| 亚洲成人在线观看视频| 欧美日韩一卡二卡| 午夜精品爽啪视频| 欧美精品久久久久久久多人混战| 亚洲一区在线播放| 欧美日韩一区二区在线视频| 亚洲国产欧美另类丝袜| 精品视频1区2区3区| 天天影视网天天综合色在线播放| 欧美日本在线一区| 日韩高清在线电影| 欧美电视剧在线看免费| 国产一区免费电影| 亚洲国产精品国自产拍av| 懂色av中文字幕一区二区三区 | 99国产欧美另类久久久精品| 国产精品高清亚洲| 91麻豆国产自产在线观看| 一区二区三区欧美日韩| 欧美精品久久久久久久多人混战| 日韩电影在线看| www久久精品| 不卡一区二区三区四区| 伊人开心综合网| 欧美高清视频不卡网| 久久国内精品自在自线400部| 久久午夜羞羞影院免费观看| 成人久久18免费网站麻豆| 丝袜脚交一区二区| 久久先锋影音av| 91在线免费看| 日韩国产精品大片| 久久尤物电影视频在线观看| 成人av在线观| 亚洲国产色一区| 日韩美女视频一区二区在线观看| 高清国产午夜精品久久久久久| 亚洲欧洲制服丝袜| 制服丝袜中文字幕一区|