|
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
public abstract class WhiteboardShape
Abstract WhiteboardShape (Shape for the WhitheboardFrame)
| Field Summary |
|---|
| Fields inherited from interface net.java.sip.communicator.service.protocol.whiteboardobjects.WhiteboardObject |
|---|
NAME |
| Constructor Summary | |
|---|---|
WhiteboardShape(String id)
WhiteboardShape constructor |
|
| Method Summary | |
|---|---|
abstract boolean |
contains(Point2D p)
method to test if the shape contains a point |
void |
drawSelectedPoint(Graphics g,
AffineTransform t,
WhiteboardPoint point,
Color color)
Draw a point on the shape |
boolean |
equals(Object obj)
Indicates whether some other WhiteboardShape is "equal to" this one. |
int |
getColor()
Returns an integer representing the color of this object. |
String |
getID()
Returns a String uniquely identifying this WhiteboardShape. |
WhiteboardPoint |
getModifyPoint()
The last selected for modification point. |
float |
getOpacity()
Returns WhiteboardShape's opacity |
abstract WhiteboardPoint |
getSelectionPoint(Point2D p)
Returns a selection point contained in this WhiteboardShape, which corresponds to the given point (i.e. |
abstract List<WhiteboardPoint> |
getSelectionPoints()
Returns the list of selected points |
int |
getThickness()
Returns an integer indicating the thickness (represented as number of pixels) of this whiteboard shape (or its border). |
boolean |
isSelected()
Returns true if the Shape is selected |
void |
paint(Graphics g,
AffineTransform t)
Code when shape is preselected |
abstract void |
paintShape(Graphics2D g,
AffineTransform t)
Code to paint the specific shape |
void |
preselect(Graphics g,
AffineTransform t)
Draws selection points when a shape is preselected. |
void |
select(Graphics g,
AffineTransform t)
Code when shape is selected |
void |
setColor(Color color)
Sets color of the WhiteboardShape (or rather it's border) |
void |
setColor(int color)
Sets the color of this whiteboard shape (or rather it's border). |
void |
setID(String id)
Sets a new identification for this WhiteboardShape |
void |
setModifyPoint(WhiteboardPoint point)
Sets the point from which a modification could start. |
void |
setOpacity(float opacity)
Sets WhiteboardShape's opacity |
void |
setSelected(boolean selected)
Sets selected the shape |
void |
setThickness(int thickness)
Sets the thickness (in pixels) of this whiteboard shape. |
abstract void |
translate(double deltaX,
double deltaY)
Translates the shape |
abstract void |
translateSelectedPoint(double deltaX,
double deltaY)
Translates the shape point at p |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WhiteboardShape(String id)
id - String that uniquely identifies this WhiteboardObject.| Method Detail |
|---|
public void paint(Graphics g,
AffineTransform t)
g - graphics contextt - 2D affine transform
public abstract void paintShape(Graphics2D g,
AffineTransform t)
g - graphics contextt - 2D affine transformpublic abstract boolean contains(Point2D p)
p - coord point
public void setColor(Color color)
color - color shapepublic float getOpacity()
public void setOpacity(float opacity)
opacity - opacity of the shapepublic boolean isSelected()
public void setSelected(boolean selected)
selected - true for select the shapepublic void setModifyPoint(WhiteboardPoint point)
point - the point from which a modification could start.public WhiteboardPoint getModifyPoint()
public void select(Graphics g,
AffineTransform t)
g - graphics contextt - 2D affine transform
public void preselect(Graphics g,
AffineTransform t)
g - graphics contextt - 2D affine transform
public void drawSelectedPoint(Graphics g,
AffineTransform t,
WhiteboardPoint point,
Color color)
g - graphics contextt - 2D affine transformpoint - point coord for the 2D affine transformcolor - color for the pointpublic abstract List<WhiteboardPoint> getSelectionPoints()
public abstract void translate(double deltaX,
double deltaY)
deltaX - x coorddeltaY - y coord
public abstract void translateSelectedPoint(double deltaX,
double deltaY)
deltaX - x coorddeltaY - y coordpublic String getID()
getID in interface WhiteboardObjectpublic void setID(String id)
id - a String that uniquely identifies this WhiteboardShape.public int getThickness()
getThickness in interface WhiteboardObjectpublic void setThickness(int thickness)
setThickness in interface WhiteboardObjectthickness - the number of pixels that this object (or its border)
should be thick.public int getColor()
getColor in interface WhiteboardObjectpublic void setColor(int color)
setColor in interface WhiteboardObjectcolor - the color that we'd like to set on this object (using
standard RGB encoding).public boolean equals(Object obj)
equals in class Objectobj - the reference object with which to compare.
true if this object is the same as the obj
argument; false otherwise.public abstract WhiteboardPoint getSelectionPoint(Point2D p)
p - point to check
|
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 | |||||||||