|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.text.TabSet
public class TabSet
A set of tab stops. Instances of this class are immutable.
| Constructor Summary | |
|---|---|
TabSet(TabStop[] t)
Creates a new TabSet containing the specified tab stops. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
Tests this TabSet for equality with an arbitrary object. |
TabStop |
getTab(int i)
Returns the tab stop with the specified index. |
TabStop |
getTabAfter(float location)
Returns the tab following the specified location. |
int |
getTabCount()
Returns the number of tab stops in this tab set. |
int |
getTabIndex(TabStop tab)
Returns the index of the specified tab, or -1 if the tab is not found. |
int |
getTabIndexAfter(float location)
Returns the index of the tab at or after the specified location. |
int |
hashCode()
Returns a hash code for this TabSet. |
String |
toString()
Returns a string representation of this TabSet. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TabSet(TabStop[] t)
TabSet containing the specified tab stops.
t - the tab stops (null permitted).| Method Detail |
|---|
public TabStop getTab(int i)
i - the index.
IllegalArgumentException - if i is not in the range
0 to getTabCount() - 1.public TabStop getTabAfter(float location)
location - the location.
null).public int getTabCount()
public int getTabIndex(TabStop tab)
tab - the tab (null permitted).
public int getTabIndexAfter(float location)
location - the tab location.
public boolean equals(Object obj)
TabSet for equality with an arbitrary object.
equals in class Objectobj - the object (null permitted).
true if this TabSet is equal to
obj, and false otherwise.Object.hashCode()public int hashCode()
TabSet.
hashCode in class ObjectObject.equals(Object),
System.identityHashCode(Object)public String toString()
TabSet.
toString in class ObjectTabSet.Object.getClass(),
Object.hashCode(),
Class.getName(),
Integer.toHexString(int)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||