javax.swing.text.BoxView.setSize()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(2.2k)|赞(0)|评价(0)|浏览(95)

本文整理了Java中javax.swing.text.BoxView.setSize()方法的一些代码示例,展示了BoxView.setSize()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。BoxView.setSize()方法的具体详情如下:
包路径:javax.swing.text.BoxView
类名称:BoxView
方法名:setSize

BoxView.setSize介绍

暂无

代码示例

代码示例来源:origin: bobbylight/RSyntaxTextArea

/**
 * Sets the size of the view.  This should cause layout of the view along
 * the given axis, if it has any layout duties.
 *
 * @param width the width >= 0
 * @param height the height >= 0
 */
@Override
public void setSize(float width, float height) {
  updateMetrics();
  if ((int) width != getWidth()) {
    // invalidate the view itself since the childrens
    // desired widths will be based upon this views width.
    preferenceChanged(null, true, true);
    widthChanging = true;
  }
  super.setSize(width, height);
  widthChanging = false;
}

代码示例来源:origin: com.fifesoft/rsyntaxtextarea

/**
 * Sets the size of the view.  This should cause layout of the view along
 * the given axis, if it has any layout duties.
 *
 * @param width the width >= 0
 * @param height the height >= 0
 */
@Override
public void setSize(float width, float height) {
  updateMetrics();
  if ((int) width != getWidth()) {
    // invalidate the view itself since the childrens
    // desired widths will be based upon this views width.
    preferenceChanged(null, true, true);
    widthChanging = true;
  }
  super.setSize(width, height);
  widthChanging = false;
}

代码示例来源:origin: org.codehaus.jtstand/jtstand-editor

/**
 * Sets the size of the view.  This should cause layout of the view along
 * the given axis, if it has any layout duties.
 *
 * @param width the width >= 0
 * @param height the height >= 0
 */
public void setSize(float width, float height) {
  updateMetrics();
  if ((int) width != getWidth()) {
    // invalidate the view itself since the childrens
    // desired widths will be based upon this views width.
    preferenceChanged(null, true, true);
    widthChanging = true;
  }
  super.setSize(width, height);
  widthChanging = false;
}

代码示例来源:origin: org.nuiton.thirdparty/rsyntaxtextarea

/**
 * Sets the size of the view.  This should cause layout of the view along
 * the given axis, if it has any layout duties.
 *
 * @param width the width >= 0
 * @param height the height >= 0
 */
public void setSize(float width, float height) {
  updateMetrics();
  if ((int) width != getWidth()) {
    // invalidate the view itself since the childrens
    // desired widths will be based upon this views width.
    preferenceChanged(null, true, true);
    widthChanging = true;
  }
  super.setSize(width, height);
  widthChanging = false;
}

相关文章

微信公众号

最新文章

更多