s@rdalya

 

Constraint

Page history last edited by vozcelik 3 yrs 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.