本文整理汇总了Java中java.awt.peer.TextAreaPeer.getMinimumSize方法的典型用法代码示例。如果您正苦于以下问题:Java TextAreaPeer.getMinimumSize方法的具体用法?Java TextAreaPeer.getMinimumSize怎么用?Java TextAreaPeer.getMinimumSize使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类java.awt.peer.TextAreaPeer
的用法示例。
在下文中一共展示了TextAreaPeer.getMinimumSize方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: minimumSize
import java.awt.peer.TextAreaPeer; //导入方法依赖的package包/类
/**
* @deprecated As of JDK version 1.1,
* replaced by <code>getMinimumSize(int, int)</code>.
*/
@Deprecated
public Dimension minimumSize(int rows, int columns) {
synchronized (getTreeLock()) {
TextAreaPeer peer = (TextAreaPeer)this.peer;
return (peer != null) ?
peer.getMinimumSize(rows, columns) :
super.minimumSize();
}
}
示例2: minimumSize
import java.awt.peer.TextAreaPeer; //导入方法依赖的package包/类
/**
* Determines the minimum size of the text area with the specified
* number of rows and columns.
*
* @param rows the number of rows
* @param columns the number of columns
* @return the minimum size for the text area
* @deprecated As of JDK version 1.1,
* replaced by {@code getMinimumSize(int, int)}.
*/
@Deprecated
public Dimension minimumSize(int rows, int columns) {
synchronized (getTreeLock()) {
TextAreaPeer peer = (TextAreaPeer)this.peer;
return (peer != null) ?
peer.getMinimumSize(rows, columns) :
super.minimumSize();
}
}
示例3: minimumSize
import java.awt.peer.TextAreaPeer; //导入方法依赖的package包/类
/**
* Retrieve the minimum size for this text area. If the minimum
* size has been set, then rows and columns are used in the calculation.
*
* @param rows The number of rows to use in the minimum size
* calculation.
* @param columns The number of columns to use in the minimum size
* calculation.
*
* @return The minimum size for this text area.
*
* @deprecated This method is deprecated in favor of
* <code>getMinimumSize (int, int)</code>.
*/
public Dimension minimumSize (int rows, int columns)
{
if (isMinimumSizeSet())
return new Dimension(minSize);
TextAreaPeer peer = (TextAreaPeer) getPeer ();
if (peer == null)
return new Dimension (getWidth(), getHeight());
return peer.getMinimumSize (rows, columns);
}
示例4: minimumSize
import java.awt.peer.TextAreaPeer; //导入方法依赖的package包/类
/**
* Retrieve the minimum size for this text area. If the minimum
* size has been set, then rows and columns are used in the calculation.
*
* @param rows The number of rows to use in the minimum size
* calculation.
* @param columns The number of columns to use in the minimum size
* calculation.
*
* @return The minimum size for this text area.
*
* @deprecated This method is deprecated in favor of
* <code>getMinimumSize (int, int)</code>.
*/
public Dimension minimumSize (int rows, int columns)
{
if (isMinimumSizeSet())
return new Dimension(minSize);
TextAreaPeer peer = (TextAreaPeer) getPeer ();
if (peer == null)
return new Dimension (getWidth(), getHeight());
return peer.getMinimumSize (rows, columns);
}