public class SwingComponentWrapper extends Object implements 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 and Description |
|---|
SwingComponentWrapper(Component c) |
| Modifier and Type | Method and 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 anymore
|
boolean |
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 anymore
|
static void |
setVisualPaddingEnabled(boolean b) |
public SwingComponentWrapper(Component c)
public final int getBaseline(int width,
int height)
getBaseline in interface ComponentWrapperpublic final Object getComponent()
getComponent in interface ComponentWrapperpublic final float getPixelUnitFactor(boolean isHor)
getPixelUnitFactor in interface ComponentWrapperpublic final int getX()
getX in interface ComponentWrapperpublic final int getY()
getY in interface ComponentWrapperpublic final int getHeight()
getHeight in interface ComponentWrapperpublic final int getWidth()
getWidth in interface ComponentWrapperpublic final int getScreenLocationX()
getScreenLocationX in interface ComponentWrapperpublic final int getScreenLocationY()
getScreenLocationY in interface ComponentWrapperpublic final int getMinimumHeight(int sz)
getMinimumHeight in interface ComponentWrapperpublic final int getMinimumWidth(int sz)
getMinimumWidth in interface ComponentWrapperpublic final int getPreferredHeight(int sz)
getPreferredHeight in interface ComponentWrapperpublic final int getPreferredWidth(int sz)
getPreferredWidth in interface ComponentWrapperpublic final int getMaximumHeight(int sz)
getMaximumHeight in interface ComponentWrapperpublic final int getMaximumWidth(int sz)
getMaximumWidth in interface ComponentWrapperpublic final ContainerWrapper getParent()
getParent in interface ComponentWrapperpublic final int getHorizontalScreenDPI()
getHorizontalScreenDPI in interface ComponentWrapperpublic final int getVerticalScreenDPI()
getVerticalScreenDPI in interface ComponentWrapperpublic final int getScreenWidth()
getScreenWidth in interface ComponentWrapperpublic final int getScreenHeight()
getScreenHeight in interface ComponentWrapperpublic final boolean hasBaseline()
hasBaseline in interface ComponentWrapperpublic final String getLinkId()
getLinkId in interface ComponentWrapperpublic final void setBounds(int x,
int y,
int width,
int height)
setBounds in interface ComponentWrapperpublic boolean isVisible()
isVisible in interface ComponentWrapperpublic final int[] getVisualPadding()
getVisualPadding in interface ComponentWrapperpublic static boolean isMaxSizeSetOn1_4()
public static void setMaxSizeSetOn1_4(boolean b)
public static boolean isVisualPaddingEnabled()
public static void setVisualPaddingEnabled(boolean b)
public final void paintDebugOutline(boolean showVisualPadding)
paintDebugOutline in interface ComponentWrapperpublic int getComponentType(boolean disregardScrollPane)
getComponentType in interface ComponentWrapperpublic int getLayoutHashCode()
getLayoutHashCode in interface ComponentWrapperpublic int getContentBias()
getContentBias in interface ComponentWrapperCopyright © 2007–2020. All rights reserved.