net.miginfocom.swing
Class SwingComponentWrapper
java.lang.Object
net.miginfocom.swing.SwingComponentWrapper
- All Implemented Interfaces:
- ComponentWrapper
- Direct Known Subclasses:
- SwingContainerWrapper
public class SwingComponentWrapper
- extends Object
- implements ComponentWrapper
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_TABLE, TYPE_TEXT_AREA, TYPE_TEXT_FIELD, TYPE_TREE, TYPE_UNKNOWN, TYPE_UNSET |
SwingComponentWrapper
public SwingComponentWrapper(Component c)
getBaseline
public final int getBaseline(int width,
int height)
- Specified by:
getBaseline
in interface ComponentWrapper
getComponent
public final Object getComponent()
- Specified by:
getComponent
in interface ComponentWrapper
getPixelUnitFactor
public final float getPixelUnitFactor(boolean isHor)
- Specified by:
getPixelUnitFactor
in interface ComponentWrapper
getX
public final int getX()
- Specified by:
getX
in interface ComponentWrapper
getY
public final int getY()
- Specified by:
getY
in interface ComponentWrapper
getHeight
public final int getHeight()
- Specified by:
getHeight
in interface ComponentWrapper
getWidth
public final int getWidth()
- Specified by:
getWidth
in interface ComponentWrapper
getScreenLocationX
public final int getScreenLocationX()
- Specified by:
getScreenLocationX
in interface ComponentWrapper
getScreenLocationY
public final int getScreenLocationY()
- Specified by:
getScreenLocationY
in interface ComponentWrapper
getMinimumHeight
public final int getMinimumHeight(int sz)
- Specified by:
getMinimumHeight
in interface ComponentWrapper
getMinimumWidth
public final int getMinimumWidth(int sz)
- Specified by:
getMinimumWidth
in interface ComponentWrapper
getPreferredHeight
public final int getPreferredHeight(int sz)
- Specified by:
getPreferredHeight
in interface ComponentWrapper
getPreferredWidth
public final int getPreferredWidth(int sz)
- Specified by:
getPreferredWidth
in interface ComponentWrapper
getMaximumHeight
public final int getMaximumHeight(int sz)
- Specified by:
getMaximumHeight
in interface ComponentWrapper
getMaximumWidth
public final int getMaximumWidth(int sz)
- Specified by:
getMaximumWidth
in interface ComponentWrapper
getParent
public final ContainerWrapper getParent()
- Specified by:
getParent
in interface ComponentWrapper
getHorizontalScreenDPI
public final int getHorizontalScreenDPI()
- Specified by:
getHorizontalScreenDPI
in interface ComponentWrapper
getVerticalScreenDPI
public final int getVerticalScreenDPI()
- Specified by:
getVerticalScreenDPI
in interface ComponentWrapper
getScreenWidth
public final int getScreenWidth()
- Specified by:
getScreenWidth
in interface ComponentWrapper
getScreenHeight
public final int getScreenHeight()
- Specified by:
getScreenHeight
in interface ComponentWrapper
hasBaseline
public final boolean hasBaseline()
- Specified by:
hasBaseline
in interface ComponentWrapper
getLinkId
public final String getLinkId()
- Specified by:
getLinkId
in interface ComponentWrapper
setBounds
public final void setBounds(int x,
int y,
int width,
int height)
- Specified by:
setBounds
in interface ComponentWrapper
isVisible
public boolean isVisible()
- Specified by:
isVisible
in interface ComponentWrapper
getVisualPadding
public final int[] getVisualPadding()
- Specified by:
getVisualPadding
in interface ComponentWrapper
isMaxSizeSetOn1_4
public static boolean isMaxSizeSetOn1_4()
setMaxSizeSetOn1_4
public static void setMaxSizeSetOn1_4(boolean b)
isVisualPaddingEnabled
public static boolean isVisualPaddingEnabled()
setVisualPaddingEnabled
public static void setVisualPaddingEnabled(boolean b)
paintDebugOutline
public final void paintDebugOutline()
- Specified by:
paintDebugOutline
in interface ComponentWrapper
getComponetType
public int getComponetType(boolean disregardScrollPane)
- Specified by:
getComponetType
in interface ComponentWrapper
getLayoutHashCode
public int getLayoutHashCode()
- Specified by:
getLayoutHashCode
in interface ComponentWrapper
hashCode
public final int hashCode()
- Overrides:
hashCode
in class Object
equals
public final boolean equals(Object o)
- Overrides:
equals
in class Object
Copyright © 2007-2012. All Rights Reserved.