本文整理汇总了Java中javax.swing.text.View.getMinimumSpan方法的典型用法代码示例。如果您正苦于以下问题:Java View.getMinimumSpan方法的具体用法?Java View.getMinimumSpan怎么用?Java View.getMinimumSpan使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类javax.swing.text.View
的用法示例。
在下文中一共展示了View.getMinimumSpan方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: minorAxisUpdateLayout
import javax.swing.text.View; //导入方法依赖的package包/类
protected boolean minorAxisUpdateLayout(int minorAxis) {
View view = getView();
boolean minorAxisPreferenceChanged = false;
float val;
val = view.getMaximumSpan(minorAxis);
if (val != getLayoutMinorAxisMaximumSpan()) {
setLayoutMinorAxisMaximumSpan(val);
minorAxisPreferenceChanged = true;
}
val = view.getMinimumSpan(minorAxis);
if (val != getLayoutMinorAxisMinimumSpan()) {
setLayoutMinorAxisMinimumSpan(val);
minorAxisPreferenceChanged = true;
}
return minorAxisPreferenceChanged;
}
示例2: getMinimumSize
import javax.swing.text.View; //导入方法依赖的package包/类
/**
* @return getPreferredSize(c)
*/
public Dimension getMinimumSize(JComponent c) {
Dimension d = getPreferredSize(c);
View v = (View) c.getClientProperty(BasicHTML.propertyKey);
if (v != null) {
d.width -= v.getPreferredSpan(View.X_AXIS) - v.getMinimumSpan(View.X_AXIS);
}
return d;
}
示例3: getMinimumSize
import javax.swing.text.View; //导入方法依赖的package包/类
public Dimension getMinimumSize(JComponent c) {
Dimension d = null;
View v = (View) c.getClientProperty(BasicHTML.propertyKey);
if (v != null) {
d = getPreferredSize(c);
d.width -= v.getPreferredSpan(View.X_AXIS) - v.getMinimumSpan(View.X_AXIS);
}
return d;
}
示例4: getMinimumSize
import javax.swing.text.View; //导入方法依赖的package包/类
public Dimension getMinimumSize(JComponent c) {
Dimension d = getPreferredSize(c);
View v = (View) c.getClientProperty(BasicHTML.propertyKey);
if (v != null) {
d.width -= v.getPreferredSpan(View.X_AXIS) - v.getMinimumSpan(View.X_AXIS);
}
return d;
}
示例5: getMinimumSize
import javax.swing.text.View; //导入方法依赖的package包/类
public Dimension getMinimumSize(final JComponent c) {
final Dimension d = getPreferredSize(c);
final View v = (View)c.getClientProperty(BasicHTML.propertyKey);
if (v != null) {
d.width -= v.getPreferredSpan(View.X_AXIS) - v.getMinimumSpan(View.X_AXIS);
}
return d;
}