eu.webtoolkit.jwt
Class WCircleArea

java.lang.Object
  extended by eu.webtoolkit.jwt.WObject
      extended by eu.webtoolkit.jwt.WAbstractArea
          extended by 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 WImage or WPaintedWidget to provide interactivity on a circular area of the image. The circle is specified in pixel coordinates.

See Also:
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

WCircleArea

public WCircleArea()
Default constructor.

Specifies a circular area with center (0, 0) and radius 0.


WCircleArea

public WCircleArea(int x,
                   int y,
                   int radius)
Creates a circular area with given geometry.

The arguments are in pixel units.

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.