本文整理匯總了Java中javax.swing.text.View.getMaximumSpan方法的典型用法代碼示例。如果您正苦於以下問題:Java View.getMaximumSpan方法的具體用法?Java View.getMaximumSpan怎麽用?Java View.getMaximumSpan使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類javax.swing.text.View
的用法示例。
在下文中一共展示了View.getMaximumSpan方法的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: getMaximumSize
import javax.swing.text.View; //導入方法依賴的package包/類
/**
* @return getPreferredSize(c)
*/
public Dimension getMaximumSize(JComponent c) {
Dimension d = getPreferredSize(c);
View v = (View) c.getClientProperty(BasicHTML.propertyKey);
if (v != null) {
d.width += v.getMaximumSpan(View.X_AXIS) - v.getPreferredSpan(View.X_AXIS);
}
return d;
}
示例3: getMaximumSize
import javax.swing.text.View; //導入方法依賴的package包/類
public Dimension getMaximumSize(JComponent c) {
Dimension d = null;
View v = (View) c.getClientProperty(BasicHTML.propertyKey);
if (v != null) {
d = getPreferredSize(c);
d.width += v.getMaximumSpan(View.X_AXIS) - v.getPreferredSpan(View.X_AXIS);
}
return d;
}
示例4: getMaximumSize
import javax.swing.text.View; //導入方法依賴的package包/類
public Dimension getMaximumSize(JComponent c) {
Dimension d = getPreferredSize(c);
View v = (View) c.getClientProperty(BasicHTML.propertyKey);
if (v != null) {
d.width += v.getMaximumSpan(View.X_AXIS) - v.getPreferredSpan(View.X_AXIS);
}
return d;
}
示例5: getMaximumSize
import javax.swing.text.View; //導入方法依賴的package包/類
public Dimension getMaximumSize(final JComponent c) {
final Dimension d = getPreferredSize(c);
final View v = (View)c.getClientProperty(BasicHTML.propertyKey);
if (v != null) {
d.width += v.getMaximumSpan(View.X_AXIS) - v.getPreferredSpan(View.X_AXIS);
}
return d;
}