本文整理了Java中javax.swing.text.BoxView.setSize()
方法的一些代码示例,展示了BoxView.setSize()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。BoxView.setSize()
方法的具体详情如下:
包路径:javax.swing.text.BoxView
类名称: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;
}
内容来源于网络,如有侵权,请联系作者删除!