com.metsci.glimpse.layout
Class GlimpseLayoutDelegate

java.lang.Object
  extended by com.metsci.glimpse.layout.GlimpseLayoutDelegate
All Implemented Interfaces:
net.miginfocom.layout.ComponentWrapper, net.miginfocom.layout.ContainerWrapper

public class GlimpseLayoutDelegate
extends java.lang.Object
implements net.miginfocom.layout.ComponentWrapper, net.miginfocom.layout.ContainerWrapper


Field Summary
static int DEFAULT
           
static int DEFAULT_HEIGHT
           
static int DEFAULT_WIDTH
           
 
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
 
Constructor Summary
GlimpseLayoutDelegate(GlimpseLayout layout)
           
 
Method Summary
 void addLayout(GlimpseLayout layout)
           
 void addLayout(GlimpseLayout layout, GlimpsePainterCallback callback)
           
 void addPainter(GlimpsePainter painter)
           
 void addPainter(GlimpsePainter painter, GlimpsePainterCallback callback)
           
 void cacheBounds(GlimpseContext context, GlimpseBounds bounds)
           
 void cacheBounds(GlimpseTargetStack stack, GlimpseBounds bounds)
           
 void dispose(GlimpseContext context)
           
 int getBaseline(int width, int height)
           
 GlimpseBounds getBounds()
           
 GlimpseBounds getCachedBounds(GlimpseContext context)
           
 GlimpseLayoutDelegate getComponent()
           
 int getComponentCount()
           
 net.miginfocom.layout.ComponentWrapper[] getComponents()
           
 int getComponetType(boolean disregardScrollPane)
           
 int getHeight()
           
 int getHorizontalScreenDPI()
           
 GlimpseLayoutManager getLayout()
           
 java.lang.Object getLayoutData()
           
 int getLayoutHashCode()
           
 GlimpseLayoutManager getLayoutManager()
           
 java.lang.String getLinkId()
           
 int getMaximumHeight(int wHint)
           
 int getMaximumWidth(int hHint)
           
 int getMinimumHeight(int wHint)
           
 int getMinimumWidth(int hHint)
           
 GlimpseLayoutDelegate getParent()
           
 float getPixelUnitFactor(boolean isHor)
           
 int getPreferredHeight(int wHint)
           
 int getPreferredWidth(int hHint)
           
 int getScreenHeight()
           
 int getScreenLocationX()
           
 int getScreenLocationY()
           
 int getScreenWidth()
           
 int getVerticalScreenDPI()
           
 int[] getVisualPadding()
           
 int getWidth()
           
 int getX()
           
 int getY()
           
 boolean hasBaseline()
           
 void invalidateLayout()
           
 boolean isDisposed()
           
 boolean isLeftToRight()
           
 boolean isPadded()
           
 boolean isVisible()
           
 void layoutTo(GlimpseContext context, GlimpseBounds bounds)
           
 void layoutTo(GlimpseTargetStack stack, GlimpseBounds bounds)
           
 void paintDebugCell(int x, int y, int width, int height)
           
 void paintDebugOutline()
           
 void paintTo(GlimpseContext context)
           
 void removeLayout(GlimpseLayout layout)
           
 void removePainter(GlimpsePainter painter)
           
 void setBounds(GlimpseBounds bounds)
           
 void setBounds(int x, int y, int width, int height)
           
 void setLayoutData(java.lang.Object layoutData)
           
 void setLayoutManager(GlimpseLayoutManager manager)
           
 void setLookAndFeel(LookAndFeel laf)
           
 void setPadding(boolean v)
           
 void setParent(GlimpseLayoutDelegate parent)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT

public static final int DEFAULT
See Also:
Constant Field Values

DEFAULT_WIDTH

public static final int DEFAULT_WIDTH
See Also:
Constant Field Values

DEFAULT_HEIGHT

public static final int DEFAULT_HEIGHT
See Also:
Constant Field Values
Constructor Detail

GlimpseLayoutDelegate

public GlimpseLayoutDelegate(GlimpseLayout layout)
Method Detail

paintTo

public void paintTo(GlimpseContext context)

layoutTo

public void layoutTo(GlimpseContext context,
                     GlimpseBounds bounds)

layoutTo

public void layoutTo(GlimpseTargetStack stack,
                     GlimpseBounds bounds)

setLookAndFeel

public void setLookAndFeel(LookAndFeel laf)

invalidateLayout

public void invalidateLayout()

removeLayout

public void removeLayout(GlimpseLayout layout)

addLayout

public void addLayout(GlimpseLayout layout)

addLayout

public void addLayout(GlimpseLayout layout,
                      GlimpsePainterCallback callback)

addPainter

public void addPainter(GlimpsePainter painter)

addPainter

public void addPainter(GlimpsePainter painter,
                       GlimpsePainterCallback callback)

removePainter

public void removePainter(GlimpsePainter painter)

getCachedBounds

public GlimpseBounds getCachedBounds(GlimpseContext context)

cacheBounds

public void cacheBounds(GlimpseContext context,
                        GlimpseBounds bounds)

cacheBounds

public void cacheBounds(GlimpseTargetStack stack,
                        GlimpseBounds bounds)

getBounds

public GlimpseBounds getBounds()

getLayoutData

public java.lang.Object getLayoutData()

setLayoutManager

public void setLayoutManager(GlimpseLayoutManager manager)

getLayoutManager

public GlimpseLayoutManager getLayoutManager()

setLayoutData

public void setLayoutData(java.lang.Object layoutData)

setParent

public void setParent(GlimpseLayoutDelegate parent)

dispose

public void dispose(GlimpseContext context)

isDisposed

public boolean isDisposed()

setBounds

public void setBounds(GlimpseBounds bounds)

setBounds

public void setBounds(int x,
                      int y,
                      int width,
                      int height)
Specified by:
setBounds in interface net.miginfocom.layout.ComponentWrapper

getComponent

public GlimpseLayoutDelegate getComponent()
Specified by:
getComponent in interface net.miginfocom.layout.ComponentWrapper

getX

public int getX()
Specified by:
getX in interface net.miginfocom.layout.ComponentWrapper

getY

public int getY()
Specified by:
getY in interface net.miginfocom.layout.ComponentWrapper

getWidth

public int getWidth()
Specified by:
getWidth in interface net.miginfocom.layout.ComponentWrapper

getHeight

public int getHeight()
Specified by:
getHeight in interface net.miginfocom.layout.ComponentWrapper

getMinimumWidth

public int getMinimumWidth(int hHint)
Specified by:
getMinimumWidth in interface net.miginfocom.layout.ComponentWrapper

getMinimumHeight

public int getMinimumHeight(int wHint)
Specified by:
getMinimumHeight in interface net.miginfocom.layout.ComponentWrapper

getPreferredWidth

public int getPreferredWidth(int hHint)
Specified by:
getPreferredWidth in interface net.miginfocom.layout.ComponentWrapper

getPreferredHeight

public int getPreferredHeight(int wHint)
Specified by:
getPreferredHeight in interface net.miginfocom.layout.ComponentWrapper

getMaximumWidth

public int getMaximumWidth(int hHint)
Specified by:
getMaximumWidth in interface net.miginfocom.layout.ComponentWrapper

getMaximumHeight

public int getMaximumHeight(int wHint)
Specified by:
getMaximumHeight in interface net.miginfocom.layout.ComponentWrapper

isVisible

public boolean isVisible()
Specified by:
isVisible in interface net.miginfocom.layout.ComponentWrapper

getBaseline

public int getBaseline(int width,
                       int height)
Specified by:
getBaseline in interface net.miginfocom.layout.ComponentWrapper

hasBaseline

public boolean hasBaseline()
Specified by:
hasBaseline in interface net.miginfocom.layout.ComponentWrapper

getParent

public GlimpseLayoutDelegate getParent()
Specified by:
getParent in interface net.miginfocom.layout.ComponentWrapper

getLinkId

public java.lang.String getLinkId()
Specified by:
getLinkId in interface net.miginfocom.layout.ComponentWrapper

getLayoutHashCode

public int getLayoutHashCode()
Specified by:
getLayoutHashCode in interface net.miginfocom.layout.ComponentWrapper

isPadded

public boolean isPadded()

setPadding

public void setPadding(boolean v)

getVisualPadding

public int[] getVisualPadding()
Specified by:
getVisualPadding in interface net.miginfocom.layout.ComponentWrapper

getComponetType

public int getComponetType(boolean disregardScrollPane)
Specified by:
getComponetType in interface net.miginfocom.layout.ComponentWrapper

paintDebugOutline

public void paintDebugOutline()
Specified by:
paintDebugOutline in interface net.miginfocom.layout.ComponentWrapper

getPixelUnitFactor

public float getPixelUnitFactor(boolean isHor)
Specified by:
getPixelUnitFactor in interface net.miginfocom.layout.ComponentWrapper

getHorizontalScreenDPI

public int getHorizontalScreenDPI()
Specified by:
getHorizontalScreenDPI in interface net.miginfocom.layout.ComponentWrapper

getVerticalScreenDPI

public int getVerticalScreenDPI()
Specified by:
getVerticalScreenDPI in interface net.miginfocom.layout.ComponentWrapper

getScreenWidth

public int getScreenWidth()
Specified by:
getScreenWidth in interface net.miginfocom.layout.ComponentWrapper

getScreenHeight

public int getScreenHeight()
Specified by:
getScreenHeight in interface net.miginfocom.layout.ComponentWrapper

getScreenLocationX

public int getScreenLocationX()
Specified by:
getScreenLocationX in interface net.miginfocom.layout.ComponentWrapper

getScreenLocationY

public int getScreenLocationY()
Specified by:
getScreenLocationY in interface net.miginfocom.layout.ComponentWrapper

getComponents

public net.miginfocom.layout.ComponentWrapper[] getComponents()
Specified by:
getComponents in interface net.miginfocom.layout.ContainerWrapper

getComponentCount

public int getComponentCount()
Specified by:
getComponentCount in interface net.miginfocom.layout.ContainerWrapper

getLayout

public GlimpseLayoutManager getLayout()
Specified by:
getLayout in interface net.miginfocom.layout.ContainerWrapper

isLeftToRight

public boolean isLeftToRight()
Specified by:
isLeftToRight in interface net.miginfocom.layout.ContainerWrapper

paintDebugCell

public void paintDebugCell(int x,
                           int y,
                           int width,
                           int height)
Specified by:
paintDebugCell in interface net.miginfocom.layout.ContainerWrapper


Copyright © 2012 Metron, Inc.. All Rights Reserved.