public class JTabbedPaneLocation extends ComponentLocation
| Modifier and Type | Class and Description |
|---|---|
(package private) class |
JTabbedPaneLocation.TabNotVisibleException
This exception is thrown if a given tab is not currently visible.
|
CENTER| Constructor and Description |
|---|
JTabbedPaneLocation() |
JTabbedPaneLocation(int index) |
JTabbedPaneLocation(java.awt.Point p) |
JTabbedPaneLocation(java.lang.String tabName) |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
badFormat(java.lang.String encoded) |
boolean |
equals(java.lang.Object o)
Returns whether the given object is an equivalent
ComponentLocation. |
java.awt.Rectangle |
getBounds(java.awt.Component c)
Convert the abstract location into a concrete area, relative
to the given
Component. |
java.awt.Point |
getPoint(java.awt.Component c)
Convert the abstract location into a concrete one.
|
ComponentLocation |
parse(java.lang.String encoded)
Convert the given encoding into the proper location.
|
java.lang.String |
toString() |
encodeIndex, encodeValue, isIndex, isValue, parseIndex, parseValuepublic JTabbedPaneLocation()
public JTabbedPaneLocation(java.lang.String tabName)
public JTabbedPaneLocation(int index)
public JTabbedPaneLocation(java.awt.Point p)
protected java.lang.String badFormat(java.lang.String encoded)
badFormat in class ComponentLocationpublic java.awt.Point getPoint(java.awt.Component c)
ComponentLocationPoint relative to the given Component.getPoint in class ComponentLocationJTabbedPaneLocation.TabNotVisibleException - if the tab is not visiblepublic java.awt.Rectangle getBounds(java.awt.Component c)
ComponentLocationComponent. If a point has
been specified, returns a 1x1 rectangle, otherwise returns the
a rectangle at (0, 0) of the Component's size.getBounds in class ComponentLocationJTabbedPaneLocation.TabNotVisibleException - if the tab is not visiblepublic boolean equals(java.lang.Object o)
ComponentLocationComponentLocation.equals in class ComponentLocationpublic java.lang.String toString()
toString in class ComponentLocationpublic ComponentLocation parse(java.lang.String encoded)
ComponentLocationparse in class ComponentLocation
Abbot is hosted on