Class TabStop
- All Implemented Interfaces:
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
.
Field Summary
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 Summary
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 . |
Method Summary
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. |
Field Details
ALIGN_LEFT
public static final int ALIGN_LEFT
- See Also:
ALIGN_RIGHT
public static final int ALIGN_RIGHT
- See Also:
ALIGN_CENTER
public static final int ALIGN_CENTER
- See Also:
ALIGN_DECIMAL
public static final int ALIGN_DECIMAL
- See Also:
ALIGN_BAR
public static final int ALIGN_BAR
- See Also:
LEAD_NONE
public static final int LEAD_NONE
- See Also:
LEAD_DOTS
public static final int LEAD_DOTS
- See Also:
LEAD_HYPHENS
public static final int LEAD_HYPHENS
- See Also:
LEAD_UNDERLINE
public static final int LEAD_UNDERLINE
- See Also:
LEAD_THICKLINE
public static final int LEAD_THICKLINE
- See Also:
LEAD_EQUALS
public static final int LEAD_EQUALS
- See Also:
Constructor Details
TabStop
public TabStop(float pos)
pos
with a default alignment and default leader.- Parameters:
-
pos
- position of the tab
TabStop
public TabStop(float pos, int align, int leader)
pos
, alignment align
and leader leader
.- Parameters:
-
pos
- position of the tab -
align
- alignment of the tab -
leader
- leader of the tab
Method Details
getPosition
public float getPosition()
- Returns:
- the position of the tab
getAlignment
public int getAlignment()
- Returns:
- the alignment of the tab
getLeader
public int getLeader()
- Returns:
- the leader of the tab
equals
public boolean equals(Object other)
hashCode
public int hashCode()
© 1993, 2021, 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/17/docs/api/java.desktop/javax/swing/text/TabStop.html