public class TabSet extends Object implements Serializable
Constructor and Description |
---|
TabSet(TabStop[] t)
Creates a new
TabSet containing the specified tab stops. |
Modifier and Type | Method and Description |
---|---|
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 . |
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 Object
obj
- the object (null
permitted).true
if this TabSet
is equal to
obj
, and false
otherwise.Object.hashCode()
public int hashCode()
TabSet
.hashCode
in class Object
Object.equals(Object)
,
System.identityHashCode(Object)
public String toString()
TabSet
.toString
in class Object
TabSet
.Object.getClass()
,
Object.hashCode()
,
Class.getName()
,
Integer.toHexString(int)