com.vlsolutions.swing.docking

Class AnchorConstraints


public class AnchorConstraints
extends java.lang.Object

A constraint used to specify how a dockable is tied (anchored) to its containing parent .
Since:
2.1

Field Summary

static int
ANCHOR_BOTTOM
Field describing a dockable anchored to the BOTTOM border of its ancestor container
static int
ANCHOR_LEFT
Field describing a dockable anchored to the LEFT border of its ancestor container
static int
ANCHOR_RIGHT
Field describing a dockable anchored to the RIGHT border of its ancestor container
static int
ANCHOR_TOP
Field describing a dockable anchored to the TOP border of its ancestor container

Constructor Summary

AnchorConstraints(int anchor)
Constructor for an immutable contraints

Method Summary

int
getAnchor()
Returns the anchor value of this contraints object.

Field Details

ANCHOR_BOTTOM

public static final int ANCHOR_BOTTOM
Field describing a dockable anchored to the BOTTOM border of its ancestor container
Field Value:
4

ANCHOR_LEFT

public static final int ANCHOR_LEFT
Field describing a dockable anchored to the LEFT border of its ancestor container
Field Value:
2

ANCHOR_RIGHT

public static final int ANCHOR_RIGHT
Field describing a dockable anchored to the RIGHT border of its ancestor container
Field Value:
8

ANCHOR_TOP

public static final int ANCHOR_TOP
Field describing a dockable anchored to the TOP border of its ancestor container
Field Value:
1

Constructor Details

AnchorConstraints

public AnchorConstraints(int anchor)
Constructor for an immutable contraints
Parameters:
anchor - value expressed as a bitwise OR between ANCHOR_ fields (for example ANCHOR_TOP|ANCHOR_LEFT)

Method Details

getAnchor

public int getAnchor()
Returns the anchor value of this contraints object.

Anchor is expressed as a bitwise OR between ANCHOR_ fields (for example ANCHOR_TOP|ANCHOR_LEFT)


© Copyright 2004-2006 VLSolutions. All Rights Reserved.
www.vlsolutions.com : Java Components - Smart Client Applications