| 
  • If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • You already know Dokkio is an AI-powered assistant to organize & manage your digital files & messages. Very soon, Dokkio will support Outlook as well as One Drive. Check it out today!

View
 

Constraint

Page history last edited by PBworks 17 years, 11 months ago


 

Constraint

(extends Object)


Object Summary

 

A helper object. Composed of two Dimension objects internally.

The object is generally used to describe boundary conditions (such as a fraction of a line in a plane, a rectangle whose upper and lower corners are given etc.).

The object is used as a helper in DraggableLayer.


Constructor

 

Constraint(intMinLower,intMinUpper,intMaxLower,intMaxUpper)

 

parameters

intMinLower - The lower minimum limit.

intMinUpper - The upper minimum limit.

intMaxLower - The lower maximum limit.

intMaxUpper - The upper maximum limit.

 

comments

Creates a new Constraint object.


Methods

 

Constraint.getUpperBound()

 

returns

The upper bound as a Dimension.

 

comments

Returns the upper bound.


Constraint.getLowerBound()

 

returns

The lower bound as a Dimension.

 

comments

Returns the lower bound.


See Also

 

DraggableLayer


Usage Examples

 

Comments (0)

You don't have permission to comment on this page.