|
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.WhiteboardShapeText
public class WhiteboardShapeText
A WhiteboardShapeRect, in XML :
| Field Summary | |
|---|---|
static int |
DEFAULT_FONT_SIZE
A type string constant indicating the default font size of the text in this object. |
| Fields inherited from interface net.java.sip.communicator.service.protocol.whiteboardobjects.WhiteboardObjectText |
|---|
NAME |
| Constructor Summary | |
|---|---|
WhiteboardShapeText(String id,
Color color,
WhiteboardPoint point,
int size,
String text)
WhiteboardShapeText constructor. |
|
WhiteboardShapeText(String id,
Color color,
WhiteboardPoint point,
int size,
String text,
AffineTransform v2w)
WhiteboardShapeText constructor. |
|
| Method Summary | |
|---|---|
boolean |
contains(Point2D p)
Tests if the shape contains a point. |
String |
getFontName()
Returns the WhiteboardObjectText's font name. |
int |
getFontSize()
Returns the WhiteboardObjectText's font size. |
WhiteboardPoint |
getSelectionPoint(Point2D p)
Tests if a point p is over a selection point. |
List<WhiteboardPoint> |
getSelectionPoints()
Gets the list of selected points. |
String |
getText()
Returns the WhiteboardObjectText's text. |
WhiteboardPoint |
getWhiteboardPoint()
Returns the coordinates of this whiteboard object. |
void |
paintShape(Graphics2D g,
AffineTransform t)
Code to paint the WhiteboardShapeText. |
void |
setFontName(String fontName)
Sets the WhiteboardObjectText's font name. |
void |
setFontSize(int fontSize)
Sets the WhiteboardObjectText's font size. |
void |
setText(String text)
Sets the WhiteboardObjectText's text. |
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 |
| Field Detail |
|---|
public static int DEFAULT_FONT_SIZE
| Constructor Detail |
|---|
public WhiteboardShapeText(String id,
Color color,
WhiteboardPoint point,
int size,
String text)
id - String that uniquely identifies this WhiteboardObjectcolor - font's colorpoint - coordinates of this objectsize - font sizetext - WhiteboardObjectText's text
public WhiteboardShapeText(String id,
Color color,
WhiteboardPoint point,
int size,
String text,
AffineTransform v2w)
id - String that uniquely identifies this WhiteboardObjectcolor - font's colorpoint - coordinates of this object.size - font sizetext - WhiteboardObjectText's textv2w - 2D affine transformation| 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 String getText()
getText in interface WhiteboardObjectTextpublic void setText(String text)
setText in interface WhiteboardObjectTexttext - the new WhiteboardObjectText's text.public boolean contains(Point2D p)
contains in class WhiteboardShapep - coord point
public void translate(double deltaX,
double deltaY)
translate in class WhiteboardShapedeltaX - x coordinatedeltaY - y coordinate
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 WhiteboardObjectTextpublic void setWhiteboardPoint(WhiteboardPoint whiteboardPoint)
setWhiteboardPoint in interface WhiteboardObjectTextwhiteboardPoint - the coordinates of this object.public int getFontSize()
getFontSize in interface WhiteboardObjectTextpublic void setFontSize(int fontSize)
setFontSize in interface WhiteboardObjectTextfontSize - the new WhiteboardObjectText's font size.public String getFontName()
getFontName in interface WhiteboardObjectTextpublic void setFontName(String fontName)
setFontName in interface WhiteboardObjectTextfontName - the new WhiteboardObjectText's font name.
|
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 | |||||||||