Serializable
public class TabStop extends Object implements Serializable
Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans has been added to the java.beans
package. Please see XMLEncoder
.
Modifier and Type | Field | Description |
---|---|---|
static final int |
ALIGN_BAR |
Align bar |
static final int |
ALIGN_CENTER |
Characters following tab are positioned such that all following characters up to next tab/newline are centered around the tabs location. |
static final int |
ALIGN_DECIMAL |
Characters following tab are aligned such that next decimal/tab/newline is at the tab location, very similar to RIGHT_TAB, just includes decimal as additional character to look for. |
static final int |
ALIGN_LEFT |
Character following tab is positioned at location. |
static final int |
ALIGN_RIGHT |
Characters following tab are positioned such that all following characters up to next tab/newline end at location. |
static final int |
LEAD_DOTS |
Lead dots |
static final int |
LEAD_EQUALS |
Lead equals |
static final int |
LEAD_HYPHENS |
Lead hyphens |
static final int |
LEAD_NONE |
Lead none |
static final int |
LEAD_THICKLINE |
Lead thickline |
static final int |
LEAD_UNDERLINE |
Lead underline |
Constructor | Description |
---|---|
TabStop |
Creates a tab at position pos with a default alignment and default leader. |
TabStop |
Creates a tab with the specified position pos , alignment align and leader leader . |
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals |
Returns true if the tabs are equal. |
int |
getAlignment() |
Returns the alignment, as an integer, of the tab. |
int |
getLeader() |
Returns the leader of the tab. |
float |
getPosition() |
Returns the position, as a float, of the tab. |
int |
hashCode() |
Returns the hashCode for the object. |
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
with a default alignment and default leader.pos
- position of the tabpublic TabStop(float pos, int align, int leader)
pos
, alignment align
and leader leader
.pos
- position of the tabalign
- alignment of the tableader
- leader of the tabpublic float getPosition()
public int getAlignment()
public int getLeader()
public boolean equals(Object other)
public int hashCode()
© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/java.desktop/javax/swing/text/TabStop.html