public class GlimpseLayoutDelegate extends Object implements net.miginfocom.layout.ComponentWrapper, net.miginfocom.layout.ContainerWrapper
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT |
static int |
DEFAULT_HEIGHT |
static int |
DEFAULT_WIDTH |
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
Constructor and Description |
---|
GlimpseLayoutDelegate(GlimpseLayout layout) |
public static final int DEFAULT
public static final int DEFAULT_WIDTH
public static final int DEFAULT_HEIGHT
public GlimpseLayoutDelegate(GlimpseLayout layout)
public void paintTo(GlimpseContext context)
public void layoutTo(GlimpseContext context, GlimpseBounds bounds)
public void layoutTo(GlimpseTargetStack stack, GlimpseBounds bounds)
public void setLookAndFeel(LookAndFeel laf)
public void invalidateLayout()
public void removeLayout(GlimpseLayout layout)
public void removeAll()
public void addLayout(GlimpseLayout layout)
public void addLayout(GlimpseLayout layout, GlimpsePainterCallback callback, int zOrder)
public void addPainter(GlimpsePainter painter)
public void addPainter(GlimpsePainter painter, GlimpsePainterCallback callback, int zOrder)
public void removePainter(GlimpsePainter painter)
public void setZOrder(GlimpsePainter painter, int zOrder)
public void updateMemeberList()
public GlimpseBounds getCachedBounds(GlimpseContext context)
public void cacheBounds(GlimpseContext context, GlimpseBounds bounds)
public void cacheBounds(GlimpseTargetStack stack, GlimpseBounds bounds)
public GlimpseBounds getBounds()
public Object getLayoutData()
public void setLayoutManager(GlimpseLayoutManager manager)
public GlimpseLayoutManager getLayoutManager()
public void setLayoutData(Object layoutData)
public void setParent(GlimpseLayoutDelegate parent)
public void dispose(GlimpseContext context)
public boolean isDisposed()
public void setBounds(GlimpseBounds bounds)
public void setBounds(int x, int y, int width, int height)
setBounds
in interface net.miginfocom.layout.ComponentWrapper
public GlimpseLayoutDelegate getComponent()
getComponent
in interface net.miginfocom.layout.ComponentWrapper
public int getX()
getX
in interface net.miginfocom.layout.ComponentWrapper
public int getY()
getY
in interface net.miginfocom.layout.ComponentWrapper
public int getWidth()
getWidth
in interface net.miginfocom.layout.ComponentWrapper
public int getHeight()
getHeight
in interface net.miginfocom.layout.ComponentWrapper
public int getMinimumWidth(int hHint)
getMinimumWidth
in interface net.miginfocom.layout.ComponentWrapper
public int getMinimumHeight(int wHint)
getMinimumHeight
in interface net.miginfocom.layout.ComponentWrapper
public int getPreferredWidth(int hHint)
getPreferredWidth
in interface net.miginfocom.layout.ComponentWrapper
public int getPreferredHeight(int wHint)
getPreferredHeight
in interface net.miginfocom.layout.ComponentWrapper
public int getMaximumWidth(int hHint)
getMaximumWidth
in interface net.miginfocom.layout.ComponentWrapper
public int getMaximumHeight(int wHint)
getMaximumHeight
in interface net.miginfocom.layout.ComponentWrapper
public boolean isVisible()
isVisible
in interface net.miginfocom.layout.ComponentWrapper
public int getBaseline(int width, int height)
getBaseline
in interface net.miginfocom.layout.ComponentWrapper
public boolean hasBaseline()
hasBaseline
in interface net.miginfocom.layout.ComponentWrapper
public GlimpseLayoutDelegate getParent()
getParent
in interface net.miginfocom.layout.ComponentWrapper
public String getLinkId()
getLinkId
in interface net.miginfocom.layout.ComponentWrapper
public int getLayoutHashCode()
getLayoutHashCode
in interface net.miginfocom.layout.ComponentWrapper
public boolean isPadded()
public void setPadding(boolean v)
public int[] getVisualPadding()
getVisualPadding
in interface net.miginfocom.layout.ComponentWrapper
public int getComponetType(boolean disregardScrollPane)
getComponetType
in interface net.miginfocom.layout.ComponentWrapper
public void paintDebugOutline()
paintDebugOutline
in interface net.miginfocom.layout.ComponentWrapper
public float getPixelUnitFactor(boolean isHor)
getPixelUnitFactor
in interface net.miginfocom.layout.ComponentWrapper
public int getHorizontalScreenDPI()
getHorizontalScreenDPI
in interface net.miginfocom.layout.ComponentWrapper
public int getVerticalScreenDPI()
getVerticalScreenDPI
in interface net.miginfocom.layout.ComponentWrapper
public int getScreenWidth()
getScreenWidth
in interface net.miginfocom.layout.ComponentWrapper
public int getScreenHeight()
getScreenHeight
in interface net.miginfocom.layout.ComponentWrapper
public int getScreenLocationX()
getScreenLocationX
in interface net.miginfocom.layout.ComponentWrapper
public int getScreenLocationY()
getScreenLocationY
in interface net.miginfocom.layout.ComponentWrapper
public net.miginfocom.layout.ComponentWrapper[] getComponents()
getComponents
in interface net.miginfocom.layout.ContainerWrapper
public int getComponentCount()
getComponentCount
in interface net.miginfocom.layout.ContainerWrapper
public GlimpseLayoutManager getLayout()
getLayout
in interface net.miginfocom.layout.ContainerWrapper
public boolean isLeftToRight()
isLeftToRight
in interface net.miginfocom.layout.ContainerWrapper
public void paintDebugCell(int x, int y, int width, int height)
paintDebugCell
in interface net.miginfocom.layout.ContainerWrapper
Copyright © 2013 Metron, Inc.. All rights reserved.