org.vectomatic.svg.edit.client.gxt
Class AbsoluteLayerLayoutData

java.lang.Object
  extended by com.extjs.gxt.ui.client.widget.layout.LayoutData
      extended by org.vectomatic.svg.edit.client.gxt.AbsoluteLayerLayoutData

public class AbsoluteLayerLayoutData
extends com.extjs.gxt.ui.client.widget.layout.LayoutData

Class to position layers in containers which use AbsoluteLayerLayout.

Author:
laaglu

Field Summary
static int HORIZONTAL_ATTACH_LEFT
           
static int HORIZONTAL_ATTACH_RIGHT
           
static int VERTICAL_ATTACH_BOTTOM
           
static int VERTICAL_ATTACH_TOP
           
 
Constructor Summary
AbsoluteLayerLayoutData(int attachmentFlags, int horizontalOffset, int verticalOffset, int width, int height, int zIndex)
          Constructor
 
Method Summary
 int getHeight()
           
 int getHorizontalOffset()
           
 int getVerticalOffset()
           
 int getWidth()
           
 int getZIndex()
           
 boolean isAttachedBottom()
           
 boolean isAttachedLeft()
           
 boolean isAttachedRight()
           
 boolean isAttachedTop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HORIZONTAL_ATTACH_LEFT

public static final int HORIZONTAL_ATTACH_LEFT
See Also:
Constant Field Values

HORIZONTAL_ATTACH_RIGHT

public static final int HORIZONTAL_ATTACH_RIGHT
See Also:
Constant Field Values

VERTICAL_ATTACH_TOP

public static final int VERTICAL_ATTACH_TOP
See Also:
Constant Field Values

VERTICAL_ATTACH_BOTTOM

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

AbsoluteLayerLayoutData

public AbsoluteLayerLayoutData(int attachmentFlags,
                               int horizontalOffset,
                               int verticalOffset,
                               int width,
                               int height,
                               int zIndex)
Constructor

Parameters:
attachmentFlags - A combination of an horizontal attachment flag and a vertical attachment flag
horizontalOffset - The distance to the horizontal attachment point
verticalOffset - The distance to the vertical attachment point
width - The width (if 0, it will adjust to the container width)
height - The height (if 0, it will adjust to the container height)
zIndex - The z index
Method Detail

isAttachedLeft

public boolean isAttachedLeft()

isAttachedRight

public boolean isAttachedRight()

isAttachedTop

public boolean isAttachedTop()

isAttachedBottom

public boolean isAttachedBottom()

getHeight

public int getHeight()

getWidth

public int getWidth()

getHorizontalOffset

public int getHorizontalOffset()

getVerticalOffset

public int getVerticalOffset()

getZIndex

public int getZIndex()


Copyright © 2010. All Rights Reserved.