- java.lang.Object
-
- net.miginfocom.swing.SwingComponentWrapper
-
- All Implemented Interfaces:
ComponentWrapper
- Direct Known Subclasses:
SwingContainerWrapper
public class SwingComponentWrapper extends Object implements ComponentWrapper
-
-
Field Summary
-
Fields inherited from interface net.miginfocom.layout.ComponentWrapper
TYPE_BUTTON, TYPE_CHECK_BOX, TYPE_COMBO_BOX, TYPE_CONTAINER, TYPE_IMAGE, TYPE_LABEL, TYPE_LIST, TYPE_PANEL, TYPE_PROGRESS_BAR, TYPE_SCROLL_BAR, TYPE_SCROLL_PANE, TYPE_SEPARATOR, TYPE_SLIDER, TYPE_SPINNER, TYPE_TABBED_PANE, TYPE_TABLE, TYPE_TEXT_AREA, TYPE_TEXT_FIELD, TYPE_TREE, TYPE_UNKNOWN, TYPE_UNSET
-
-
Constructor Summary
Constructors Constructor Description SwingComponentWrapper(Component c)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
equals(Object o)
int
getBaseline(int width, int height)
Object
getComponent()
int
getComponentType(boolean disregardScrollPane)
int
getContentBias()
int
getHeight()
int
getHorizontalScreenDPI()
int
getLayoutHashCode()
String
getLinkId()
int
getMaximumHeight(int sz)
int
getMaximumWidth(int sz)
int
getMinimumHeight(int sz)
int
getMinimumWidth(int sz)
ContainerWrapper
getParent()
float
getPixelUnitFactor(boolean isHor)
int
getPreferredHeight(int sz)
int
getPreferredWidth(int sz)
int
getScreenHeight()
int
getScreenLocationX()
int
getScreenLocationY()
int
getScreenWidth()
int
getVerticalScreenDPI()
int[]
getVisualPadding()
int
getWidth()
int
getX()
int
getY()
boolean
hasBaseline()
int
hashCode()
static boolean
isMaxSizeSetOn1_4()
Deprecated.Java 1.4 is not supported anymoreboolean
isVisible()
static boolean
isVisualPaddingEnabled()
void
paintDebugOutline(boolean showVisualPadding)
void
setBounds(int x, int y, int width, int height)
static void
setMaxSizeSetOn1_4(boolean b)
Deprecated.Java 1.4 is not supported anymorestatic void
setVisualPaddingEnabled(boolean b)
-
-
-
Constructor Detail
-
SwingComponentWrapper
public SwingComponentWrapper(Component c)
-
-
Method Detail
-
getBaseline
public final int getBaseline(int width, int height)
- Specified by:
getBaseline
in interfaceComponentWrapper
-
getComponent
public final Object getComponent()
- Specified by:
getComponent
in interfaceComponentWrapper
-
getPixelUnitFactor
public final float getPixelUnitFactor(boolean isHor)
- Specified by:
getPixelUnitFactor
in interfaceComponentWrapper
-
getX
public final int getX()
- Specified by:
getX
in interfaceComponentWrapper
-
getY
public final int getY()
- Specified by:
getY
in interfaceComponentWrapper
-
getHeight
public final int getHeight()
- Specified by:
getHeight
in interfaceComponentWrapper
-
getWidth
public final int getWidth()
- Specified by:
getWidth
in interfaceComponentWrapper
-
getScreenLocationX
public final int getScreenLocationX()
- Specified by:
getScreenLocationX
in interfaceComponentWrapper
-
getScreenLocationY
public final int getScreenLocationY()
- Specified by:
getScreenLocationY
in interfaceComponentWrapper
-
getMinimumHeight
public final int getMinimumHeight(int sz)
- Specified by:
getMinimumHeight
in interfaceComponentWrapper
-
getMinimumWidth
public final int getMinimumWidth(int sz)
- Specified by:
getMinimumWidth
in interfaceComponentWrapper
-
getPreferredHeight
public final int getPreferredHeight(int sz)
- Specified by:
getPreferredHeight
in interfaceComponentWrapper
-
getPreferredWidth
public final int getPreferredWidth(int sz)
- Specified by:
getPreferredWidth
in interfaceComponentWrapper
-
getMaximumHeight
public final int getMaximumHeight(int sz)
- Specified by:
getMaximumHeight
in interfaceComponentWrapper
-
getMaximumWidth
public final int getMaximumWidth(int sz)
- Specified by:
getMaximumWidth
in interfaceComponentWrapper
-
getParent
public final ContainerWrapper getParent()
- Specified by:
getParent
in interfaceComponentWrapper
-
getHorizontalScreenDPI
public final int getHorizontalScreenDPI()
- Specified by:
getHorizontalScreenDPI
in interfaceComponentWrapper
-
getVerticalScreenDPI
public final int getVerticalScreenDPI()
- Specified by:
getVerticalScreenDPI
in interfaceComponentWrapper
-
getScreenWidth
public final int getScreenWidth()
- Specified by:
getScreenWidth
in interfaceComponentWrapper
-
getScreenHeight
public final int getScreenHeight()
- Specified by:
getScreenHeight
in interfaceComponentWrapper
-
hasBaseline
public final boolean hasBaseline()
- Specified by:
hasBaseline
in interfaceComponentWrapper
-
getLinkId
public final String getLinkId()
- Specified by:
getLinkId
in interfaceComponentWrapper
-
setBounds
public final void setBounds(int x, int y, int width, int height)
- Specified by:
setBounds
in interfaceComponentWrapper
-
isVisible
public boolean isVisible()
- Specified by:
isVisible
in interfaceComponentWrapper
-
getVisualPadding
public final int[] getVisualPadding()
- Specified by:
getVisualPadding
in interfaceComponentWrapper
-
isMaxSizeSetOn1_4
public static boolean isMaxSizeSetOn1_4()
Deprecated.Java 1.4 is not supported anymore
-
setMaxSizeSetOn1_4
public static void setMaxSizeSetOn1_4(boolean b)
Deprecated.Java 1.4 is not supported anymore
-
isVisualPaddingEnabled
public static boolean isVisualPaddingEnabled()
-
setVisualPaddingEnabled
public static void setVisualPaddingEnabled(boolean b)
-
paintDebugOutline
public final void paintDebugOutline(boolean showVisualPadding)
- Specified by:
paintDebugOutline
in interfaceComponentWrapper
-
getComponentType
public int getComponentType(boolean disregardScrollPane)
- Specified by:
getComponentType
in interfaceComponentWrapper
-
getLayoutHashCode
public int getLayoutHashCode()
- Specified by:
getLayoutHashCode
in interfaceComponentWrapper
-
getContentBias
public int getContentBias()
- Specified by:
getContentBias
in interfaceComponentWrapper
-
-