|
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.WhiteboardShapeImage
public class WhiteboardShapeImage
a WhiteboardShapeCircle, in XML :
| Field Summary |
|---|
| Fields inherited from interface net.java.sip.communicator.service.protocol.whiteboardobjects.WhiteboardObjectImage |
|---|
NAME |
| Constructor Summary | |
|---|---|
WhiteboardShapeImage(String id,
WhiteboardPoint p,
double width,
double height,
byte[] bytes)
WhiteboardShapImage constructor |
|
| Method Summary | |
|---|---|
boolean |
contains(Point2D p)
Tests if the shape contains a point. |
byte[] |
getBackgroundImage()
Returns a binary array containing the image that should be displayed as the background of this WhiteboardObject. |
double |
getHeight()
Returns the height (in pixels) of the WhiteboardObject. |
WhiteboardPoint |
getSelectionPoint(Point2D p)
Tests if a point p is over a selection point. |
List<WhiteboardPoint> |
getSelectionPoints()
Returns the list of selected points. |
WhiteboardPoint |
getWhiteboardPoint()
Returns the coordinates of this whiteboard object. |
double |
getWidth()
Returns the width (in pixels) of the WhiteboardObject. |
void |
paintShape(Graphics2D g,
AffineTransform t)
Code to paint this specific shape. |
void |
setBackgroundImage(byte[] background)
Specifies an image that should be displayed as the background of this object. |
void |
setHeight(double height)
Sets the width (in pixels) of the WhiteboardObject. |
void |
setWhiteboardPoint(WhiteboardPoint whiteboardPoint)
Sets the coordinates of this whiteboard object. |
void |
setWidth(double width)
Sets the width (in pixels) of the WhiteboardObject. |
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 WhiteboardShapeImage(String id,
WhiteboardPoint p,
double width,
double height,
byte[] bytes)
id - String that uniquely identifies this WhiteboardObject.p - coordinates of this object.width - width value of this object (in pixel)height - height value of this object (in pixel)bytes - a binary array containing the image that should be
displayed as the object background.| Method Detail |
|---|
public void paintShape(Graphics2D g,
AffineTransform t)
paintShape in class WhiteboardShapeg - graphics contextt - 2D affine transformpublic List<WhiteboardPoint> getSelectionPoints()
getSelectionPoints in class WhiteboardShapepublic boolean contains(Point2D p)
contains in class WhiteboardShapep - coord point
public double getWidth()
getWidth in interface WhiteboardObjectImagepublic void setWidth(double width)
setWidth in interface WhiteboardObjectImagewidth - The new width.public double getHeight()
getHeight in interface WhiteboardObjectImagepublic void setHeight(double height)
setHeight in interface WhiteboardObjectImageheight - The new height.
public void translate(double deltaX,
double deltaY)
translate in class WhiteboardShapedeltaX - x coorddeltaY - y coord
public void translateSelectedPoint(double deltaX,
double deltaY)
translateSelectedPoint in class WhiteboardShapedeltaX - x coordinatedeltaY - y coordinatepublic WhiteboardPoint getSelectionPoint(Point2D p)
getSelectionPoint in class WhiteboardShapep - point
public WhiteboardPoint getWhiteboardPoint()
getWhiteboardPoint in interface WhiteboardObjectImagepublic void setWhiteboardPoint(WhiteboardPoint whiteboardPoint)
setWhiteboardPoint in interface WhiteboardObjectImagewhiteboardPoint - the coordinates of this object.public void setBackgroundImage(byte[] background)
setBackgroundImage in interface WhiteboardObjectImagebackground - a binary array containing the image that should be
displayed as the object background.public byte[] getBackgroundImage()
getBackgroundImage in interface WhiteboardObjectImage
|
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 | |||||||||