public class Restriction extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
Restriction.Restrict |
Constructor and Description |
---|
Restriction() |
Restriction(Object restriction,
boolean endOnly,
double top,
double left,
double bottom,
double right) |
Modifier and Type | Method and Description |
---|---|
double |
getBottom() |
double |
getLeft() |
Object |
getRestriction() |
double |
getRight() |
double |
getTop() |
boolean |
isEndOnly() |
void |
setBottom(double bottom)
Bottom restriction of the element being allowed to hang over the restriction edges.
|
void |
setEndOnly(boolean endOnly)
The endOnly option is used to restrict just before the end of a drag or resize.
|
void |
setLeft(double left)
Left restriction of the element being allowed to hang over the restriction edges.
|
void |
setRestriction(Object restriction)
This constant value specifies the area that the action will be confined to.
|
void |
setRight(double right)
Right restriction of the element being allowed to hang over the restriction edges.
|
void |
setTop(double top)
Top restriction of the element being allowed to hang over the restriction edges.
|
public Restriction()
public Restriction(Object restriction, boolean endOnly, double top, double left, double bottom, double right)
public Object getRestriction()
public void setRestriction(Object restriction)
public boolean isEndOnly()
public void setEndOnly(boolean endOnly)
public double getTop()
public void setTop(double top)
public double getRight()
public void setRight(double right)
public double getBottom()
public void setBottom(double bottom)
public double getLeft()
public void setLeft(double left)
Copyright © 2018. All rights reserved.