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

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

?? view.java

?? linux下編程用 編譯軟件
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
   * @param shape the shape of the view   * @param vf the ViewFactory for creating child views   */  public void removeUpdate(DocumentEvent ev, Shape shape, ViewFactory vf)  {    Element el = getElement();    DocumentEvent.ElementChange ec = ev.getChange(el);    if (ec != null)        updateChildren(ec, ev, vf);    forwardUpdate(ec, ev, shape, vf);    updateLayout(ec, ev, shape);  }  /**   * Receive notification about a change update to the text model.   *   * The default implementation of this method does the following:   * <ul>   * <li>Call {@link #updateChildren} if the element that this view is   * responsible for has changed. This makes sure that the children can   * correctly represent the model.<li>   * <li>Call {@link #forwardUpdate}. This forwards the DocumentEvent to   * the child views.<li>   * <li>Call {@link #updateLayout}. Gives the view a chance to either   * repair its layout, reschedule layout or do nothing at all.</li>   * </ul>   *   * @param ev the DocumentEvent that describes the change   * @param shape the shape of the view   * @param vf the ViewFactory for creating child views   */  public void changedUpdate(DocumentEvent ev, Shape shape, ViewFactory vf)  {    Element el = getElement();    DocumentEvent.ElementChange ec = ev.getChange(el);    if (ec != null)      updateChildren(ec, ev, vf);    forwardUpdate(ec, ev, shape, vf);    updateLayout(ec, ev, shape);  }  /**   * Updates the list of children that is returned by {@link #getView}   * and {@link #getViewCount}.   *   * Element that are specified as beeing added in the ElementChange record are   * assigned a view for using the ViewFactory. Views of Elements that   * are specified as beeing removed are removed from the list.   *   * @param ec the ElementChange record that describes the change of the   *           element   * @param ev the DocumentEvent describing the change of the document model   * @param vf the ViewFactory to use for creating new views   *   * @return whether or not the child views represent the child elements of   *         the element that this view is responsible for. Some views may   *         create views that are responsible only for parts of the element   *         that they are responsible for and should then return false.   *   * @since 1.3   */  protected boolean updateChildren(DocumentEvent.ElementChange ec,                                   DocumentEvent ev,                                   ViewFactory vf)  {    Element[] added = ec.getChildrenAdded();    Element[] removed = ec.getChildrenRemoved();    int index = ec.getIndex();    View[] newChildren = new View[added.length];    for (int i = 0; i < added.length; ++i)      newChildren[i] = vf.create(added[i]);    replace(index, removed.length, newChildren);    return true;  }  /**   * Forwards the DocumentEvent to child views that need to get notified   * of the change to the model. This calles {@link #forwardUpdateToView}   * for each View that must be forwarded to.   *   * @param ec the ElementChange describing the element changes (may be   *           <code>null</code> if there were no changes)   * @param ev the DocumentEvent describing the changes to the model   * @param shape the current allocation of the view   * @param vf the ViewFactory used to create new Views   *   * @since 1.3   */  protected void forwardUpdate(DocumentEvent.ElementChange ec,                               DocumentEvent ev, Shape shape, ViewFactory vf)  {    int count = getViewCount();    for (int i = 0; i < count; i++)      {        View child = getView(i);        forwardUpdateToView(child, ev, shape, vf);      }  }  /**   * Forwards an update event to the given child view. This calls   * {@link #insertUpdate}, {@link #removeUpdate} or {@link #changedUpdate},   * depending on the type of document event.   *   * @param view the View to forward the event to   * @param ev the DocumentEvent to forward   * @param shape the current allocation of the View   * @param vf the ViewFactory used to create new Views   *   * @since 1.3   */  protected void forwardUpdateToView(View view, DocumentEvent ev, Shape shape,                                     ViewFactory vf)  {    DocumentEvent.EventType type = ev.getType();    if (type == DocumentEvent.EventType.INSERT)      view.insertUpdate(ev, shape, vf);    else if (type == DocumentEvent.EventType.REMOVE)      view.removeUpdate(ev, shape, vf);    else if (type == DocumentEvent.EventType.CHANGE)      view.changedUpdate(ev, shape, vf);  }  /**   * Updates the layout.   *   * @param ec the ElementChange that describes the changes to the element   * @param ev the DocumentEvent that describes the changes to the model   * @param shape the current allocation for this view   *   * @since 1.3   */  protected void updateLayout(DocumentEvent.ElementChange ec,                              DocumentEvent ev, Shape shape)  {    Rectangle b = shape.getBounds();    if (ec != null)      preferenceChanged(this, true, true);  }  /**   * Maps a position in the document into the coordinate space of the View.   * The output rectangle usually reflects the font height but has a width   * of zero.   *   * @param pos the position of the character in the model   * @param a the area that is occupied by the view   * @param b either {@link Position.Bias#Forward} or   *        {@link Position.Bias#Backward} depending on the preferred   *        direction bias. If <code>null</code> this defaults to   *        <code>Position.Bias.Forward</code>   *   * @return a rectangle that gives the location of the document position   *         inside the view coordinate space   *   * @throws BadLocationException if <code>pos</code> is invalid   * @throws IllegalArgumentException if b is not one of the above listed   *         valid values   */  public abstract Shape modelToView(int pos, Shape a, Position.Bias b)    throws BadLocationException;  /**   * Maps a region in the document into the coordinate space of the View.   *   * @param p1 the beginning position inside the document   * @param b1 the direction bias for the beginning position   * @param p2 the end position inside the document   * @param b2 the direction bias for the end position   * @param a the area that is occupied by the view   *   * @return a rectangle that gives the span of the document region   *         inside the view coordinate space   *   * @throws BadLocationException if <code>p1</code> or <code>p2</code> are   *         invalid   * @throws IllegalArgumentException if b1 or b2 is not one of the above   *         listed valid values   */  public Shape modelToView(int p1, Position.Bias b1,			   int p2, Position.Bias b2, Shape a)    throws BadLocationException  {    if (b1 != Position.Bias.Forward && b1 != Position.Bias.Backward)      throw new IllegalArgumentException	("b1 must be either Position.Bias.Forward or Position.Bias.Backward");    if (b2 != Position.Bias.Forward && b2 != Position.Bias.Backward)      throw new IllegalArgumentException	("b2 must be either Position.Bias.Forward or Position.Bias.Backward");    Shape s1 = modelToView(p1, a, b1);    Shape s2 = modelToView(p2, a, b2);    return s1.getBounds().union(s2.getBounds());  }  /**   * Maps a position in the document into the coordinate space of the View.   * The output rectangle usually reflects the font height but has a width   * of zero.   *   * This method is deprecated and calls   * {@link #modelToView(int, Position.Bias, int, Position.Bias, Shape)} with   * a bias of {@link Position.Bias#Forward}.   *   * @param pos the position of the character in the model   * @param a the area that is occupied by the view   *   * @return a rectangle that gives the location of the document position   *         inside the view coordinate space   *   * @throws BadLocationException if <code>pos</code> is invalid   *   * @deprecated Use {@link #modelToView(int, Shape, Position.Bias)} instead.   */  public Shape modelToView(int pos, Shape a) throws BadLocationException  {    return modelToView(pos, a, Position.Bias.Forward);  }  /**   * Maps coordinates from the <code>View</code>'s space into a position   * in the document model.   *   * @param x the x coordinate in the view space   * @param y the y coordinate in the view space   * @param a the allocation of this <code>View</code>   * @param b the bias to use   *   * @return the position in the document that corresponds to the screen   *         coordinates <code>x, y</code>   */  public abstract int viewToModel(float x, float y, Shape a, Position.Bias[] b);  /**   * Maps coordinates from the <code>View</code>'s space into a position   * in the document model. This method is deprecated and only there for   * compatibility.   *   * @param x the x coordinate in the view space   * @param y the y coordinate in the view space   * @param a the allocation of this <code>View</code>   *   * @return the position in the document that corresponds to the screen   *         coordinates <code>x, y</code>   *   * @deprecated Use {@link #viewToModel(float, float, Shape, Position.Bias[])}   *             instead.   */  public int viewToModel(float x, float y, Shape a)  {    return viewToModel(x, y, a, new Position.Bias[0]);  }  /**   * Dumps the complete View hierarchy. This method can be used for debugging   * purposes.   */  void dump()  {    // Climb up the hierarchy to the parent.    View parent = getParent();    if (parent != null)      parent.dump();    else      dump(0);  }  /**   * Dumps the view hierarchy below this View with the specified indentation   * level.   *   * @param indent the indentation level to be used for this view   */  void dump(int indent)  {    for (int i = 0; i < indent; ++i)      System.out.print('.');    System.out.println(this);    int count = getViewCount();    for (int i = 0; i < count; ++i)      getView(i).dump(indent + 1);  }  /**   * Returns the document position that is (visually) nearest to the given   * document position <code>pos</code> in the given direction <code>d</code>.   *   * @param c the text component   * @param pos the document position   * @param b the bias for <code>pos</code>   * @param d the direction, must be either {@link SwingConstants#NORTH},   *        {@link SwingConstants#SOUTH}, {@link SwingConstants#WEST} or   *        {@link SwingConstants#EAST}   * @param biasRet an array of {@link Position.Bias} that can hold at least   *        one element, which is filled with the bias of the return position   *        on method exit   *   * @return the document position that is (visually) nearest to the given   *         document position <code>pos</code> in the given direction   *         <code>d</code>   *   * @throws BadLocationException if <code>pos</code> is not a valid offset in   *         the document model   */  public abstract int getNextVisualPositionFrom(JTextComponent c, int pos,                                                Position.Bias b, int d,                                                Position.Bias[] biasRet)    throws BadLocationException;}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美午夜精品久久久久久孕妇 | 色综合久久六月婷婷中文字幕| 欧美视频一区在线| 国产欧美日韩在线视频| 午夜成人免费电影| 色哟哟精品一区| 亚洲裸体xxx| 韩国欧美一区二区| 欧美性色综合网| 中文字幕日本不卡| 国产一区二区三区免费| 欧美肥胖老妇做爰| 亚洲免费在线电影| 福利视频网站一区二区三区| 日韩色在线观看| 午夜欧美2019年伦理| 91麻豆国产在线观看| 国产精品九色蝌蚪自拍| 国产成人午夜高潮毛片| 日韩免费看网站| 免费成人av资源网| 日韩欧美另类在线| 午夜成人在线视频| 欧美一级艳片视频免费观看| 亚洲图片欧美综合| 欧美在线观看18| 欧美精品色综合| 欧美私模裸体表演在线观看| 国产精品女上位| 国产福利一区在线| 久久精品人人做人人爽97| 久久精品噜噜噜成人88aⅴ| 欧美精品xxxxbbbb| 三级成人在线视频| 91精品婷婷国产综合久久竹菊| 午夜精品123| 884aa四虎影成人精品一区| 亚洲自拍偷拍综合| 欧美日韩精品一区二区天天拍小说 | 亚洲成av人片一区二区| 欧美三级三级三级爽爽爽| 婷婷久久综合九色综合伊人色| 欧美日韩国产区一| 美女诱惑一区二区| 久久众筹精品私拍模特| 国产日韩欧美亚洲| 久久亚洲春色中文字幕久久久| 美日韩一区二区三区| 日韩精品专区在线影院重磅| 精品一二线国产| 国产婷婷一区二区| 色88888久久久久久影院野外| 亚洲成人综合网站| 精品国精品自拍自在线| 国产 日韩 欧美大片| 亚洲精品国产无天堂网2021| 56国语精品自产拍在线观看| 国产精品一区专区| 亚洲免费大片在线观看| 日韩亚洲欧美成人一区| 国产精品一区一区三区| 有码一区二区三区| 精品少妇一区二区三区视频免付费 | 国产亚洲精品福利| 欧美在线你懂的| 91在线一区二区| 亚洲色图.com| 欧美日韩大陆在线| 国产一区二区不卡老阿姨| 亚洲欧洲日韩综合一区二区| 精品视频在线免费观看| 国内精品自线一区二区三区视频| 国产精品免费视频网站| 欧美精品xxxxbbbb| 成人国产免费视频| 日韩高清国产一区在线| 亚洲国产精品国自产拍av| 91精品一区二区三区在线观看| 成人三级在线视频| 免费精品99久久国产综合精品| 亚洲色图视频网站| 久久综合狠狠综合久久激情| 欧美熟乱第一页| 成人午夜电影小说| 99免费精品视频| 在线免费精品视频| 久久成人18免费观看| 亚洲欧美偷拍卡通变态| 久久久久国产一区二区三区四区 | 日韩欧美一级二级三级| 91偷拍与自偷拍精品| 国产乱码精品一区二区三区五月婷 | 中文字幕精品一区二区精品绿巨人| 欧美精品一卡两卡| 91美女在线观看| 成人h动漫精品一区二区| 国产精品一区二区在线观看网站| 丝袜亚洲精品中文字幕一区| 一区二区三区视频在线看| 欧美国产精品中文字幕| 久久久久国产一区二区三区四区| 日韩精品一区二区在线观看| 555www色欧美视频| 欧美日韩在线播放三区四区| 亚洲va欧美va人人爽午夜| 亚洲欧美日韩在线播放| 精品入口麻豆88视频| 欧美日韩国产中文| 在线这里只有精品| 色94色欧美sute亚洲线路一ni | 国产精品理伦片| 久久久久久久免费视频了| 亚洲精品在线观看网站| 欧美成人r级一区二区三区| 7777精品伊人久久久大香线蕉的 | 久久伊人蜜桃av一区二区| 欧美mv和日韩mv的网站| 欧美mv日韩mv国产网站| 久久综合久久99| 中文在线免费一区三区高中清不卡| 久久综合av免费| 国产精品女上位| 亚洲三级小视频| 亚洲一区二区在线免费观看视频| 一区二区三区四区蜜桃| 亚洲成人免费av| 奇米影视在线99精品| 国产精品一区专区| 色综合天天在线| 欧美日韩激情在线| 欧美mv日韩mv| 国产精品麻豆一区二区| 一区二区三区在线高清| 性做久久久久久| 狠狠色综合播放一区二区| 国产九色精品成人porny| 成人av网在线| 欧美日韩美女一区二区| 久久中文字幕电影| 亚洲色图视频网站| 免费在线看一区| 91麻豆精品国产自产在线| 欧美一区二区三区小说| 欧美成人在线直播| 国产欧美一区二区三区网站| 国产精品不卡视频| 三级精品在线观看| 国产精品77777| 欧美色电影在线| 久久久亚洲午夜电影| 亚洲综合色成人| 国产一区二区三区香蕉| 欧美在线三级电影| 久久亚洲综合av| 亚洲一区二区三区精品在线| 国产一区欧美一区| 欧美伊人久久久久久午夜久久久久| 日韩午夜av电影| 亚洲精品少妇30p| 国产最新精品精品你懂的| 欧美亚洲高清一区| 国产婷婷精品av在线| 偷偷要91色婷婷| av一区二区久久| 精品久久久久久久久久久久包黑料| 亚洲欧美日韩国产另类专区 | 国产一区二区在线免费观看| 91美女在线看| 国产欧美一区二区三区鸳鸯浴| 日韩精品乱码av一区二区| 成人黄色在线看| 亚洲精品一卡二卡| 久久91精品国产91久久小草| 欧美在线三级电影| 综合久久久久综合| 国产精品538一区二区在线| 欧美一区在线视频| 亚洲午夜精品网| av电影天堂一区二区在线| 久久久www成人免费无遮挡大片| 婷婷开心久久网| 欧美日韩国产经典色站一区二区三区| 国产精品卡一卡二| 国产精品69毛片高清亚洲| 精品国产青草久久久久福利| 亚洲v中文字幕| 欧美性猛交xxxxxx富婆| 亚洲三级电影全部在线观看高清| 国产福利一区二区| 精品国产百合女同互慰| 麻豆精品蜜桃视频网站| 3751色影院一区二区三区| 性做久久久久久免费观看欧美| 在线一区二区三区四区五区| 国产精品理论片在线观看| 99国产欧美久久久精品| 欧美激情综合网| 丰满亚洲少妇av| 中文字幕一区二区5566日韩| av网站免费线看精品|