|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecteu.webtoolkit.jwt.WObject
eu.webtoolkit.jwt.WAbstractArea
eu.webtoolkit.jwt.WRectArea
public class WRectArea
A interactive area in a widget, specified by a rectangle.
The area may be added to a WImage or WPaintedWidget to
provide interactivity on a rectangular area of the image. The rectangle is
specified in pixel coordinates.
WImage.addArea(WAbstractArea area),
WPaintedWidget.addArea(WAbstractArea area),
WCircleArea,
WPolygonArea| Constructor Summary | |
|---|---|
WRectArea()
Default constructor. |
|
WRectArea(double x,
double y,
double width,
double height)
Creates a rectangular area with given geometry. |
|
WRectArea(int x,
int y,
int width,
int height)
Creates a rectangular area with given geometry. |
|
WRectArea(WRectF rect)
Creates a rectangular area with given geometry. |
|
| Method Summary | |
|---|---|
int |
getHeight()
Returns the height. |
int |
getWidth()
Returns the width. |
int |
getX()
Returns the top-left X coordinate. |
int |
getY()
Returns the top-left Y coordinate. |
void |
setHeight(int height)
Sets the height. |
void |
setWidth(int width)
Sets the width. |
void |
setX(int x)
Sets the top-left X coordinate. |
void |
setY(int y)
Sets the top-left Y coordinate. |
| Methods inherited from class eu.webtoolkit.jwt.WAbstractArea |
|---|
addStyleClass, clicked, doubleClicked, enterPressed, escapePressed, getAlternateText, getCursor, getLink, getRef, getResource, getStyleClass, getTarget, getToolTip, isHole, keyPressed, keyWentDown, keyWentUp, mouseDragged, mouseMoved, mouseWentDown, mouseWentOut, mouseWentOver, mouseWentUp, mouseWheel, removeStyleClass, setAlternateText, setCursor, setHole, setLink, setRef, setResource, setStyleClass, setTarget, setToolTip |
| Methods inherited from class eu.webtoolkit.jwt.WObject |
|---|
addChild, getId, getObjectName, remove, setObjectName, tr |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WRectArea()
The default constructor creates a rectangular area spans the whole widget.
public WRectArea(int x,
int y,
int width,
int height)
The arguments are in pixel units.
public WRectArea(double x,
double y,
double width,
double height)
The arguments are in pixel units.
public WRectArea(WRectF rect)
The rect argument is in pixel units.
| Method Detail |
|---|
public void setX(int x)
public int getX()
public void setY(int y)
public int getY()
public void setWidth(int width)
public int getWidth()
public void setHeight(int height)
public int getHeight()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||