|
||||||||||
| 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.WCircleArea
public class WCircleArea
A interactive area in a widget, specified by a circle.
The area may be added to a WImage or WPaintedWidget to
provide interactivity on a circular area of the image. The circle is
specified in pixel coordinates.
WImage.addArea(WAbstractArea area),
WPaintedWidget.addArea(WAbstractArea area),
WRectArea,
WPolygonArea| Constructor Summary | |
|---|---|
WCircleArea()
Default constructor. |
|
WCircleArea(int x,
int y,
int radius)
Creates a circular area with given geometry. |
|
| Method Summary | |
|---|---|
int |
getCenterX()
Returns the center X coordinate. |
int |
getCenterY()
Returns the center Y coordinate. |
int |
getRadius()
Returns the radius. |
void |
setCenter(int x,
int y)
Sets the center. |
void |
setCenter(WPoint point)
Sets the center. |
void |
setCenter(WPointF point)
Sets the center. |
void |
setRadius(int radius)
Sets the radius. |
| 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 WCircleArea()
Specifies a circular area with center (0, 0) and radius 0.
public WCircleArea(int x,
int y,
int radius)
The arguments are in pixel units.
| Method Detail |
|---|
public void setCenter(WPoint point)
public void setCenter(WPointF point)
public void setCenter(int x,
int y)
public int getCenterX()
public int getCenterY()
public void setRadius(int radius)
public int getRadius()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||