- 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 booleanequals(Object o)intgetBaseline(int width, int height)ObjectgetComponent()intgetComponentType(boolean disregardScrollPane)intgetContentBias()intgetHeight()intgetHorizontalScreenDPI()intgetLayoutHashCode()StringgetLinkId()intgetMaximumHeight(int sz)intgetMaximumWidth(int sz)intgetMinimumHeight(int sz)intgetMinimumWidth(int sz)ContainerWrappergetParent()floatgetPixelUnitFactor(boolean isHor)intgetPreferredHeight(int sz)intgetPreferredWidth(int sz)intgetScreenHeight()intgetScreenLocationX()intgetScreenLocationY()intgetScreenWidth()intgetVerticalScreenDPI()int[]getVisualPadding()intgetWidth()intgetX()intgetY()booleanhasBaseline()inthashCode()static booleanisMaxSizeSetOn1_4()Deprecated.Java 1.4 is not supported anymorebooleanisVisible()static booleanisVisualPaddingEnabled()voidpaintDebugOutline(boolean showVisualPadding)voidsetBounds(int x, int y, int width, int height)static voidsetMaxSizeSetOn1_4(boolean b)Deprecated.Java 1.4 is not supported anymorestatic voidsetVisualPaddingEnabled(boolean b)
-
-
-
Constructor Detail
-
SwingComponentWrapper
public SwingComponentWrapper(Component c)
-
-
Method Detail
-
getBaseline
public final int getBaseline(int width, int height)- Specified by:
getBaselinein interfaceComponentWrapper
-
getComponent
public final Object getComponent()
- Specified by:
getComponentin interfaceComponentWrapper
-
getPixelUnitFactor
public final float getPixelUnitFactor(boolean isHor)
- Specified by:
getPixelUnitFactorin interfaceComponentWrapper
-
getX
public final int getX()
- Specified by:
getXin interfaceComponentWrapper
-
getY
public final int getY()
- Specified by:
getYin interfaceComponentWrapper
-
getHeight
public final int getHeight()
- Specified by:
getHeightin interfaceComponentWrapper
-
getWidth
public final int getWidth()
- Specified by:
getWidthin interfaceComponentWrapper
-
getScreenLocationX
public final int getScreenLocationX()
- Specified by:
getScreenLocationXin interfaceComponentWrapper
-
getScreenLocationY
public final int getScreenLocationY()
- Specified by:
getScreenLocationYin interfaceComponentWrapper
-
getMinimumHeight
public final int getMinimumHeight(int sz)
- Specified by:
getMinimumHeightin interfaceComponentWrapper
-
getMinimumWidth
public final int getMinimumWidth(int sz)
- Specified by:
getMinimumWidthin interfaceComponentWrapper
-
getPreferredHeight
public final int getPreferredHeight(int sz)
- Specified by:
getPreferredHeightin interfaceComponentWrapper
-
getPreferredWidth
public final int getPreferredWidth(int sz)
- Specified by:
getPreferredWidthin interfaceComponentWrapper
-
getMaximumHeight
public final int getMaximumHeight(int sz)
- Specified by:
getMaximumHeightin interfaceComponentWrapper
-
getMaximumWidth
public final int getMaximumWidth(int sz)
- Specified by:
getMaximumWidthin interfaceComponentWrapper
-
getParent
public final ContainerWrapper getParent()
- Specified by:
getParentin interfaceComponentWrapper
-
getHorizontalScreenDPI
public final int getHorizontalScreenDPI()
- Specified by:
getHorizontalScreenDPIin interfaceComponentWrapper
-
getVerticalScreenDPI
public final int getVerticalScreenDPI()
- Specified by:
getVerticalScreenDPIin interfaceComponentWrapper
-
getScreenWidth
public final int getScreenWidth()
- Specified by:
getScreenWidthin interfaceComponentWrapper
-
getScreenHeight
public final int getScreenHeight()
- Specified by:
getScreenHeightin interfaceComponentWrapper
-
hasBaseline
public final boolean hasBaseline()
- Specified by:
hasBaselinein interfaceComponentWrapper
-
getLinkId
public final String getLinkId()
- Specified by:
getLinkIdin interfaceComponentWrapper
-
setBounds
public final void setBounds(int x, int y, int width, int height)- Specified by:
setBoundsin interfaceComponentWrapper
-
isVisible
public boolean isVisible()
- Specified by:
isVisiblein interfaceComponentWrapper
-
getVisualPadding
public final int[] getVisualPadding()
- Specified by:
getVisualPaddingin 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:
paintDebugOutlinein interfaceComponentWrapper
-
getComponentType
public int getComponentType(boolean disregardScrollPane)
- Specified by:
getComponentTypein interfaceComponentWrapper
-
getLayoutHashCode
public int getLayoutHashCode()
- Specified by:
getLayoutHashCodein interfaceComponentWrapper
-
getContentBias
public int getContentBias()
- Specified by:
getContentBiasin interfaceComponentWrapper
-
-