com.jfimagine.jfdraw.draw
Class AlignShapes

java.lang.Object
  |
  +--com.jfimagine.jfdraw.draw.AlignShapes

public class AlignShapes
extends java.lang.Object

AlignShapes class is used to align shapes in a selection.

Version:
$Revision: 1.1 $
Author:
CookieMaker

Field Summary
static int ALIGNMENTTYPE_BOTTOM
          align bottom.
static int ALIGNMENTTYPE_CENTER
          align center.
static int ALIGNMENTTYPE_JUSTIFY_HORIZONTAL
          align justify horizontal.
static int ALIGNMENTTYPE_JUSTIFY_VERTICAL
          align justify vertical.
static int ALIGNMENTTYPE_LEFT
          align left.
static int ALIGNMENTTYPE_RIGHT
          align right.
static int ALIGNMENTTYPE_TOP
          align top.
 
Constructor Summary
AlignShapes(JFOperationManager operationManager)
          Constructor for ObjectList
 
Method Summary
 void alignToBottom()
          Align all shapes in list at a same bottom position
 void alignToCenter()
          Align all shapes in list at a same center position
 void alignToHorizontalJustify()
          Align all shapes in list at a same horizontal justify position
 void alignToLeft()
          Align all shapes in list at a same left position
 void alignToRight()
          Align all shapes in list at a same right position
 void alignToTop()
          Align all shapes in list at a same top position
 void alignToVerticalJustify()
          Align all shapes in list at a same vertical justify position
 Rect getBounds()
          Get the bounds of this object list.
 ObjectList getList()
          Get an objectList that encapsulates shape Objects
 void setList(ObjectList list)
          Set an objectList that encapsulates shape Objects
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ALIGNMENTTYPE_LEFT

public static final int ALIGNMENTTYPE_LEFT
align left.

See Also:
Constant Field Values

ALIGNMENTTYPE_RIGHT

public static final int ALIGNMENTTYPE_RIGHT
align right.

See Also:
Constant Field Values

ALIGNMENTTYPE_TOP

public static final int ALIGNMENTTYPE_TOP
align top.

See Also:
Constant Field Values

ALIGNMENTTYPE_BOTTOM

public static final int ALIGNMENTTYPE_BOTTOM
align bottom.

See Also:
Constant Field Values

ALIGNMENTTYPE_CENTER

public static final int ALIGNMENTTYPE_CENTER
align center.

See Also:
Constant Field Values

ALIGNMENTTYPE_JUSTIFY_HORIZONTAL

public static final int ALIGNMENTTYPE_JUSTIFY_HORIZONTAL
align justify horizontal.

See Also:
Constant Field Values

ALIGNMENTTYPE_JUSTIFY_VERTICAL

public static final int ALIGNMENTTYPE_JUSTIFY_VERTICAL
align justify vertical.

See Also:
Constant Field Values
Constructor Detail

AlignShapes

public AlignShapes(JFOperationManager operationManager)
Constructor for ObjectList

Method Detail

getList

public ObjectList getList()
Get an objectList that encapsulates shape Objects

Returns:
An object list.

setList

public void setList(ObjectList list)
Set an objectList that encapsulates shape Objects

Parameters:
list - An object list.

getBounds

public Rect getBounds()
Get the bounds of this object list.

Returns:
The bounds rectangle of current list.

alignToTop

public void alignToTop()
Align all shapes in list at a same top position


alignToBottom

public void alignToBottom()
Align all shapes in list at a same bottom position


alignToLeft

public void alignToLeft()
Align all shapes in list at a same left position


alignToRight

public void alignToRight()
Align all shapes in list at a same right position


alignToCenter

public void alignToCenter()
Align all shapes in list at a same center position


alignToHorizontalJustify

public void alignToHorizontalJustify()
Align all shapes in list at a same horizontal justify position


alignToVerticalJustify

public void alignToVerticalJustify()
Align all shapes in list at a same vertical justify position



Copyright 2004 ~ 2005 JingFei International Cooperation LTD. All Rights Reserved.