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 ComponentWrapper
public final Object getComponent()
getComponent
in interface ComponentWrapper
public final float getPixelUnitFactor(boolean isHor)
getPixelUnitFactor
in interface ComponentWrapper
public final int getX()
getX
in interface ComponentWrapper
public final int getY()
getY
in interface ComponentWrapper
public final int getHeight()
getHeight
in interface ComponentWrapper
public final int getWidth()
getWidth
in interface ComponentWrapper
public final int getScreenLocationX()
getScreenLocationX
in interface ComponentWrapper
public final int getScreenLocationY()
getScreenLocationY
in interface ComponentWrapper
public final int getMinimumHeight(int sz)
getMinimumHeight
in interface ComponentWrapper
public final int getMinimumWidth(int sz)
getMinimumWidth
in interface ComponentWrapper
public final int getPreferredHeight(int sz)
getPreferredHeight
in interface ComponentWrapper
public final int getPreferredWidth(int sz)
getPreferredWidth
in interface ComponentWrapper
public final int getMaximumHeight(int sz)
getMaximumHeight
in interface ComponentWrapper
public final int getMaximumWidth(int sz)
getMaximumWidth
in interface ComponentWrapper
public final ContainerWrapper getParent()
getParent
in interface ComponentWrapper
public final int getHorizontalScreenDPI()
getHorizontalScreenDPI
in interface ComponentWrapper
public final int getVerticalScreenDPI()
getVerticalScreenDPI
in interface ComponentWrapper
public final int getScreenWidth()
getScreenWidth
in interface ComponentWrapper
public final int getScreenHeight()
getScreenHeight
in interface ComponentWrapper
public final boolean hasBaseline()
hasBaseline
in interface ComponentWrapper
public final String getLinkId()
getLinkId
in interface ComponentWrapper
public final void setBounds(int x, int y, int width, int height)
setBounds
in interface ComponentWrapper
public boolean isVisible()
isVisible
in interface ComponentWrapper
public final int[] getVisualPadding()
getVisualPadding
in interface ComponentWrapper
public 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 ComponentWrapper
public int getComponentType(boolean disregardScrollPane)
getComponentType
in interface ComponentWrapper
public int getLayoutHashCode()
getLayoutHashCode
in interface ComponentWrapper
public int getContentBias()
getContentBias
in interface ComponentWrapper
Copyright © 2007–2018. All rights reserved.