Package eu.webtoolkit.jwt
Class WCircleArea
- java.lang.Object
-
- eu.webtoolkit.jwt.WObject
-
- eu.webtoolkit.jwt.WAbstractArea
-
- eu.webtoolkit.jwt.WCircleArea
-
public class WCircleArea extends WAbstractArea
A interactive area in a widget, specified by a circle.The area may be added to a
WImageorWPaintedWidgetto provide interactivity on a circular area of the image. The circle is specified in pixel coordinates.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class eu.webtoolkit.jwt.WObject
WObject.FormData
-
-
Constructor Summary
Constructors Constructor Description WCircleArea()Default constructor.WCircleArea(int x, int y, int radius)Creates a circular area with given geometry.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCenterX()Returns the center X coordinate.intgetCenterY()Returns the center Y coordinate.intgetRadius()Returns the radius.protected java.lang.StringgetUpdateAreaCoordsJS()voidsetCenter(int x, int y)Sets the center.voidsetCenter(WPoint point)Sets the center.voidsetCenter(WPointF point)Sets the center.voidsetRadius(int radius)Sets the radius.protected booleanupdateDom(DomElement element, boolean all)-
Methods inherited from class eu.webtoolkit.jwt.WAbstractArea
addStyleClass, addStyleClass, clicked, doubleClicked, enterPressed, escapePressed, getAlternateText, getCursor, getJsRef, getLink, getStyleClass, getToolTip, isHole, isTransformable, keyPressed, keyWentDown, keyWentUp, mouseDragged, mouseMoved, mouseWentDown, mouseWentOut, mouseWentOver, mouseWentUp, mouseWheel, removeStyleClass, removeStyleClass, setAlternateText, setCursor, setCursor, setCursor, setHole, setLink, setObjectName, setStyleClass, setToolTip, setTransformable
-
Methods inherited from class eu.webtoolkit.jwt.WObject
getId, getObjectName, remove, setFormData, tr
-
-
-
-
Method Detail
-
setCenter
public void setCenter(WPoint point)
Sets the center.
-
setCenter
public void setCenter(WPointF point)
Sets the center.
-
setCenter
public void setCenter(int x, int y)Sets the center.
-
getCenterX
public int getCenterX()
Returns the center X coordinate.
-
getCenterY
public int getCenterY()
Returns the center Y coordinate.
-
setRadius
public void setRadius(int radius)
Sets the radius.
-
getRadius
public int getRadius()
Returns the radius.
-
updateDom
protected boolean updateDom(DomElement element, boolean all)
- Overrides:
updateDomin classWAbstractArea
-
getUpdateAreaCoordsJS
protected java.lang.String getUpdateAreaCoordsJS()
- Specified by:
getUpdateAreaCoordsJSin classWAbstractArea
-
-