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(Point p) |
JTabbedPaneLocation(String tabName) |
Modifier and Type | Method and Description |
---|---|
protected String |
badFormat(String encoded) |
boolean |
equals(Object o)
Returns whether the given object is an equivalent
ComponentLocation . |
Rectangle |
getBounds(Component c)
Convert the abstract location into a concrete area, relative
to the given
Component . |
Point |
getPoint(Component c)
Convert the abstract location into a concrete one.
|
ComponentLocation |
parse(String encoded)
Convert the given encoding into the proper location.
|
String |
toString() |
encodeIndex, encodeValue, isIndex, isValue, parseIndex, parseValue
public JTabbedPaneLocation()
public JTabbedPaneLocation(String tabName)
public JTabbedPaneLocation(int index)
public JTabbedPaneLocation(Point p)
protected String badFormat(String encoded)
badFormat
in class ComponentLocation
public Point getPoint(Component c)
ComponentLocation
getPoint
in class ComponentLocation
JTabbedPaneLocation.TabNotVisibleException
- if the tab is not visiblepublic Rectangle getBounds(Component c)
ComponentLocation
Component
. 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 ComponentLocation
JTabbedPaneLocation.TabNotVisibleException
- if the tab is not visiblepublic boolean equals(Object o)
ComponentLocation
ComponentLocation
.equals
in class ComponentLocation
public String toString()
toString
in class ComponentLocation
public ComponentLocation parse(String encoded)
ComponentLocation
parse
in class ComponentLocation
Abbot is hosted on