public class TabStop extends Object implements Serializable
警告:序列化该类的对象与以后的Swing版本不兼容。当前的序列化支持适用于短期贮藏或RMI运行相同Swing版本的应用程序之间。为1.4,为所有JavaBeans™长期存储的支持已被添加到java.beans包。请看XMLEncoder。
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGN_BAR |
static int |
ALIGN_CENTER
以下是文字标签的位置,下面的字符到下一个标签/换行符是围绕标签位置。
|
static int |
ALIGN_DECIMAL
下表是字对齐,小数/标签/换行符下在制表符的位置,以right_tab非常相似,只是包括小数作为附加字符查找。
|
static int |
ALIGN_LEFT
字符以下标签定位在位置。
|
static int |
ALIGN_RIGHT
以下是文字标签的位置,下面的字符到下一个标签/换行符结束的位置。
|
static int |
LEAD_DOTS |
static int |
LEAD_EQUALS |
static int |
LEAD_HYPHENS |
static int |
LEAD_NONE |
static int |
LEAD_THICKLINE |
static int |
LEAD_UNDERLINE |
| Constructor and Description |
|---|
TabStop(float pos)
创建一个标签的位置
pos用默认的对齐和默认的领导者。
|
TabStop(float pos, int align, int leader)
创建一个标签上指定的位置
pos,对准
align和领导
leader。
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other)
如果标签是相等的,则返回真。
|
int |
getAlignment()
返回标签的对齐方式,作为一个整数。
|
int |
getLeader()
返回标签的领导者。
|
float |
getPosition()
返回标签的位置,作为一个浮动。
|
int |
hashCode()
返回该对象的hashCode。
|
String |
toString()
返回对象的字符串表示形式。
|
public static final int ALIGN_LEFT
public static final int ALIGN_RIGHT
public static final int ALIGN_CENTER
public static final int ALIGN_DECIMAL
public static final int ALIGN_BAR
public static final int LEAD_NONE
public static final int LEAD_DOTS
public static final int LEAD_HYPHENS
public static final int LEAD_UNDERLINE
public static final int LEAD_THICKLINE
public static final int LEAD_EQUALS
public TabStop(float pos)
pos用默认的对齐和默认的领导者。
public TabStop(float pos,
int align,
int leader)
pos,对准
align和领导
leader。
public float getPosition()
public int getAlignment()
public int getLeader()
public boolean equals(Object other)
equals 方法重写,继承类
Object
other -参考对象的比较。
Object.hashCode(),
HashMap
public int hashCode()
hashCode 方法重写,继承类
Object
Object.equals(java.lang.Object),
System.identityHashCode(java.lang.Object)
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.