public class Restriction extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Restriction.Restrict |
| Constructor and Description |
|---|
Restriction() |
Restriction(Restriction.Restrict restriction,
boolean endOnly,
double top,
double left,
double bottom,
double right) |
| Modifier and Type | Method and Description |
|---|---|
double |
getBottom() |
double |
getLeft() |
Restriction.Restrict |
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(Restriction.Restrict 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(Restriction.Restrict restriction, boolean endOnly, double top, double left, double bottom, double right)
public Restriction.Restrict getRestriction()
public void setRestriction(Restriction.Restrict restriction)
public boolean isEndOnly()
public void setEndOnly(boolean endOnly)
endOnly - public double getTop()
public void setTop(double top)
top - public double getRight()
public void setRight(double right)
right - public double getBottom()
public void setBottom(double bottom)
bottom - public double getLeft()
public void setLeft(double left)
left - Copyright © 2016. All rights reserved.