net.miginfocom.swt

Class SwtComponentWrapper

public class SwtComponentWrapper extends Object implements ComponentWrapper

Constructor Summary
SwtComponentWrapper(Control c)
Method Summary
booleanequals(Object o)
intgetBaseline(int width, int height)
ObjectgetComponent()
intgetComponetType(boolean disregardScrollPane)
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 booleanisMinimumSizeZero()
Sets if minimum size for SWT components should be preferred size (default, false) or 0.
static booleanisUseVisualPadding()
booleanisVisible()
voidpaintDebugOutline()
voidsetBounds(int x, int y, int width, int height)
static voidsetMinimumSizeZero(boolean b)
Sets if minimum size for SWT components should be preferred size (default, false) or 0.
static voidsetUseVisualPadding(boolean b)

Constructor Detail

SwtComponentWrapper

public SwtComponentWrapper(Control c)

Method Detail

equals

public final boolean equals(Object o)

getBaseline

public final int getBaseline(int width, int height)

getComponent

public final Object getComponent()

getComponetType

public int getComponetType(boolean disregardScrollPane)

getHeight

public final int getHeight()

getHorizontalScreenDPI

public int getHorizontalScreenDPI()

getLayoutHashCode

public int getLayoutHashCode()

getLinkId

public final String getLinkId()

getMaximumHeight

public final int getMaximumHeight(int sz)

getMaximumWidth

public final int getMaximumWidth(int sz)

getMinimumHeight

public final int getMinimumHeight(int sz)

getMinimumWidth

public final int getMinimumWidth(int sz)

getParent

public final ContainerWrapper getParent()

getPixelUnitFactor

public final float getPixelUnitFactor(boolean isHor)

getPreferredHeight

public final int getPreferredHeight(int sz)

getPreferredWidth

public final int getPreferredWidth(int sz)

getScreenHeight

public final int getScreenHeight()

getScreenLocationX

public final int getScreenLocationX()

getScreenLocationY

public final int getScreenLocationY()

getScreenWidth

public final int getScreenWidth()

getVerticalScreenDPI

public int getVerticalScreenDPI()

getVisualPadding

public final int[] getVisualPadding()

getWidth

public final int getWidth()

getX

public final int getX()

getY

public final int getY()

hasBaseline

public final boolean hasBaseline()

hashCode

public final int hashCode()

isMinimumSizeZero

public static boolean isMinimumSizeZero()
Sets if minimum size for SWT components should be preferred size (default, false) or 0.

Returns: true means minimum size is 0.

isUseVisualPadding

public static boolean isUseVisualPadding()

isVisible

public boolean isVisible()

paintDebugOutline

public final void paintDebugOutline()

setBounds

public final void setBounds(int x, int y, int width, int height)

setMinimumSizeZero

public static void setMinimumSizeZero(boolean b)
Sets if minimum size for SWT components should be preferred size (default, false) or 0.

Parameters: b true means minimum size is 0.

setUseVisualPadding

public static void setUseVisualPadding(boolean b)