A TabSet is comprised of many TabStops. It offers methods for locating the closest TabStop to a given position and finding all the potential TabStops. It is also immutable.
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.
A TabSet is comprised of many TabStops. It offers methods for locating the closest TabStop to a given position and finding all the potential TabStops. It is also immutable. 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.
(->tab-set tabs)
Constructor.
Creates and returns an instance of TabSet. The array of Tabs passed in must be sorted in ascending order.
tabs - javax.swing.text.TabStop[]
Constructor. Creates and returns an instance of TabSet. The array of Tabs passed in must be sorted in ascending order. tabs - `javax.swing.text.TabStop[]`
(equals this o)
Indicates whether this TabSet is equal to another one.
o - the TabSet instance which this instance should be compared to. - java.lang.Object
returns: true if o is the instance of
TabSet, has the same number of TabStops
and they are all equal, false otherwise. - boolean
Indicates whether this TabSet is equal to another one. o - the TabSet instance which this instance should be compared to. - `java.lang.Object` returns: true if o is the instance of TabSet, has the same number of TabStops and they are all equal, false otherwise. - `boolean`
(get-tab this index)
Returns the TabStop at index index. This will throw an IllegalArgumentException if index is outside the range of tabs.
index - int
returns: javax.swing.text.TabStop
Returns the TabStop at index index. This will throw an IllegalArgumentException if index is outside the range of tabs. index - `int` returns: `javax.swing.text.TabStop`
(get-tab-after this location)
Returns the Tab instance after location. This will return null if there are no tabs after location.
location - float
returns: javax.swing.text.TabStop
Returns the Tab instance after location. This will return null if there are no tabs after location. location - `float` returns: `javax.swing.text.TabStop`
(get-tab-count this)
Returns the number of Tab instances the receiver contains.
returns: int
Returns the number of Tab instances the receiver contains. returns: `int`
(get-tab-index this tab)
tab - javax.swing.text.TabStop
returns: the index of the TabStop tab, or -1 if
tab is not contained in the receiver. - int
tab - `javax.swing.text.TabStop` returns: the index of the TabStop tab, or -1 if tab is not contained in the receiver. - `int`
(get-tab-index-after this location)
Returns the index of the Tab to be used after location. This will return -1 if there are no tabs after location.
location - float
returns: int
Returns the index of the Tab to be used after location. This will return -1 if there are no tabs after location. location - `float` returns: `int`
(hash-code this)
Returns a hashcode for this set of TabStops.
returns: a hashcode value for this set of TabStops. - int
Returns a hashcode for this set of TabStops. returns: a hashcode value for this set of TabStops. - `int`
(to-string this)
Returns the string representation of the set of tabs.
returns: a string representation of the object. - java.lang.String
Returns the string representation of the set of tabs. returns: a string representation of the object. - `java.lang.String`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close