|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PositionFunction
A functional interface that can be used for positioning elements in the DOM.
| Nested Class Summary | |
|---|---|
static class |
PositionFunction.AbsolutePosition
A position function using "left: x" and "top: y" to position elements in the DOM. |
static class |
PositionFunction.Translate3DPosition
A position function using "transform: translate3d(x,y,z)" to position elements in the DOM. |
static class |
PositionFunction.TranslatePosition
A position function using "transform: translate(x,y)" to position elements in the DOM. |
static class |
PositionFunction.WebkitTranslate3DPosition
A position function using "-webkit-transform: translate3d(x,y,z)" to position elements in the DOM. |
| Method Summary | |
|---|---|
void |
reset(Element e)
Resets any previously applied positioning, clearing the used style attributes. |
void |
set(Element e,
double x,
double y)
Position an element in an (x,y) coordinate system in the DOM. |
| Method Detail |
|---|
void set(Element e,
double x,
double y)
e - the element to position. Never null.x - the x coordinate, in pixelsy - the y coordinate, in pixelsvoid reset(Element e)
e - the element for which to reset the positioning
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||