|
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.WhiteboardShapePolyLine
public class WhiteboardShapePolyLine
A WhiteboardShapeLine, in XML :
| Field Summary |
|---|
| Fields inherited from interface net.java.sip.communicator.service.protocol.whiteboardobjects.WhiteboardObjectPolyLine |
|---|
NAME |
| Constructor Summary | |
|---|---|
WhiteboardShapePolyLine(String id,
int thickness,
Color color,
List<WhiteboardPoint> points,
boolean fill)
WhiteboardShapePolyLine constructor. |
|
WhiteboardShapePolyLine(String id,
int thickness,
Color color,
List<WhiteboardPoint> m_points,
boolean fill,
AffineTransform at)
WhiteboardShapePolyLine constructor. |
|
| Method Summary | |
|---|---|
boolean |
contains(Point2D p)
Tests if the shape contains a point. |
List<WhiteboardPoint> |
getPoints()
Returns a list of all the WhiteboardPoint instances that this WhiteboardObject is composed of. |
WhiteboardPoint |
getSelectionPoint(Point2D p)
Tests if a point p is over a selection point. |
List<WhiteboardPoint> |
getSelectionPoints()
Returns the list of selected WhiteboardPoints |
boolean |
isFill()
Returns the fill state of the WhiteboardObject. |
void |
paintShape(Graphics2D g,
AffineTransform t)
Code to paint the WhiteboardShapePolyLine. |
void |
setFill(boolean fill)
Sets the fill state of the WhiteboardObject. |
void |
setPoints(List<WhiteboardPoint> points)
Sets the list of WhiteboardPoint instances that this WhiteboardObject is composed of. |
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 WhiteboardShapePolyLine(String id,
int thickness,
Color color,
List<WhiteboardPoint> points,
boolean fill)
id - String that uniquely identifies this WhiteboardObjectthickness - number of pixels that this object (or its border)
should be thickcolor - WhiteboardShapePolyLine's color (or rather it's border)points - list of WhiteboardPointfill - True is filled, false is unfilled
public WhiteboardShapePolyLine(String id,
int thickness,
Color color,
List<WhiteboardPoint> m_points,
boolean fill,
AffineTransform at)
id - String that uniquely identifies this WhiteboardObjectthickness - number of pixels that this object (or its border)
should be thickcolor - WhiteboardShapePolyLine's color (or rather it's border)m_points - list of WhiteboardPointfill - True is filled, false is unfilledat - 2D affine transformation| Method Detail |
|---|
public boolean isFill()
public void setFill(boolean fill)
fill - The new fill state.
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 List<WhiteboardPoint> getPoints()
getPoints in interface WhiteboardObjectPolyLinepublic void setPoints(List<WhiteboardPoint> points)
setPoints in interface WhiteboardObjectPolyLinepoints - the list of WhiteboardPoint instances that this
WhiteboardObject is composed of.
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
|
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 | |||||||||