|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.plugin.whiteboard.gui.whiteboardshapes.WhiteboardShape
net.java.sip.communicator.plugin.whiteboard.gui.whiteboardshapes.WhiteboardShapeCircle
public class WhiteboardShapeCircle
a WhiteboardShapeCircle, in XML :
| Field Summary |
|---|
| Fields inherited from interface net.java.sip.communicator.service.protocol.whiteboardobjects.WhiteboardObjectCircle |
|---|
NAME |
| Constructor Summary | |
|---|---|
WhiteboardShapeCircle(String id,
int t,
Color c,
WhiteboardPoint whiteboardPoint,
double radius,
boolean fill)
WhiteboardShapeCircle constructor |
|
WhiteboardShapeCircle(String id,
int thickness,
Color color,
WhiteboardPoint whiteboardPoint,
int radius,
boolean fill,
AffineTransform v2w)
WhiteboardShapeCircle constructor |
|
| Method Summary | |
|---|---|
boolean |
contains(Point2D p)
Tests if the shape contains a point |
int |
getBackgroundColor()
Returns an integer representing the background color of this object. |
double |
getRadius()
Returns the radius (in pixels) of this whiteboard circle. |
WhiteboardPoint |
getSelectionPoint(Point2D p)
Tests if a point p is on a selection point. |
List<WhiteboardPoint> |
getSelectionPoints()
Returns the list of selected points |
WhiteboardPoint |
getWhiteboardPoint()
Returns the coordinates of this whiteboard object. |
boolean |
isFill()
Returns the fill state of the WhiteboardObject. |
void |
paintShape(Graphics2D g,
AffineTransform t)
Code to paint this WhiteboardShapeCircle |
void |
setBackgroundColor(int backColor)
Specifies the background color for this object. |
void |
setFill(boolean fill)
Sets the fill state of the WhiteboardObject. |
void |
setRadius(double radius)
Sets the radius (in pixels) of this whiteboard circle. |
void |
setWhiteboardPoint(WhiteboardPoint whiteboardPoint)
Sets the coordinates of this whiteboard object. |
void |
translate(double deltaX,
double deltaY)
Translates the shape |
void |
translateSelectedPoint(double deltaX,
double deltaY)
Translates a point from the shape |
| Methods inherited from class net.java.sip.communicator.plugin.whiteboard.gui.whiteboardshapes.WhiteboardShape |
|---|
drawSelectedPoint, equals, getColor, getID, getModifyPoint, getOpacity, getThickness, isSelected, paint, preselect, select, setColor, setColor, setID, setModifyPoint, setOpacity, setSelected, setThickness |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.java.sip.communicator.service.protocol.whiteboardobjects.WhiteboardObject |
|---|
getColor, getID, getThickness, setColor, setThickness |
| Constructor Detail |
|---|
public WhiteboardShapeCircle(String id,
int t,
Color c,
WhiteboardPoint whiteboardPoint,
double radius,
boolean fill)
id - String that uniquely identifies this WhiteboardObject.t - number of pixels that this object (or its border)
should be thick.c - WhiteboardShape's color (or rather it's border).whiteboardPoint - coordinates of this object.radius - The number of pixels for the radius.fill - True is filled, false is unfilled.
public WhiteboardShapeCircle(String id,
int thickness,
Color color,
WhiteboardPoint whiteboardPoint,
int radius,
boolean fill,
AffineTransform v2w)
id - String that uniquely identifies this WhiteboardObject.thickness - number of pixels that this object (or its border)
should be thick.color - WhiteboardShape's color (or rather it's border)whiteboardPoint - coordinates of this object.radius - The number of pixels for the radius.fill - True is filled, false is unfilled.v2w - 2D affine transform| Method Detail |
|---|
public void paintShape(Graphics2D g,
AffineTransform t)
paintShape in class WhiteboardShapeg - graphics contextt - 2D affine transformpublic boolean contains(Point2D p)
contains in class WhiteboardShapep - coord point
public WhiteboardPoint getSelectionPoint(Point2D p)
getSelectionPoint in class WhiteboardShapep - point
public List<WhiteboardPoint> getSelectionPoints()
getSelectionPoints in class WhiteboardShape
public void translate(double deltaX,
double deltaY)
translate in class WhiteboardShapedeltaX - x coordinatesdeltaY - y coordinates
public void translateSelectedPoint(double deltaX,
double deltaY)
translateSelectedPoint in class WhiteboardShapedeltaX - x coordinatedeltaY - y coordinatepublic WhiteboardPoint getWhiteboardPoint()
getWhiteboardPoint in interface WhiteboardObjectCirclepublic void setWhiteboardPoint(WhiteboardPoint whiteboardPoint)
setWhiteboardPoint in interface WhiteboardObjectCirclewhiteboardPoint - the coordinates of this object.public double getRadius()
getRadius in interface WhiteboardObjectCirclepublic void setRadius(double radius)
setRadius in interface WhiteboardObjectCircleradius - the number of pixels for the radius.public boolean isFill()
isFill in interface WhiteboardObjectCirclepublic void setFill(boolean fill)
setFill in interface WhiteboardObjectCirclefill - The new fill state.public void setBackgroundColor(int backColor)
setBackgroundColor in interface WhiteboardObjectCirclebackColor - the color that we'd like to set for the background of this
WhiteboardObject (using standard RGB encoding).public int getBackgroundColor()
getBackgroundColor in interface WhiteboardObjectCircle
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||