Class Shape
- java.lang.Object
-
- com.avaya.clientservices.collaboration.drawing.AbstractShape
-
- com.avaya.clientservices.collaboration.drawing.Shape
-
public class Shape extends AbstractShape
Shape objects represent free shape that can be added to whiteboard surface.
This object is built with points which can be connected or not. Client doesn't need to use this class explicitly unless a custom whiteboard is developed.
- See Also:
WhiteboardSurface
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.avaya.clientservices.collaboration.drawing.AbstractShape
AbstractShape.ShapeStatus
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
finishDrawing()
Finishes drawing shape.java.util.List<Point>
getShapePoints()
Returns list containingPoint
shape points from which it is created.java.util.List<Point>
getShapeTranslatedPoints()
Returns list containingPoint
shape points where each point is moved respectively to current shape translation.boolean
isFilled()
Indicates whether shape is filled.boolean
isFinished()
Indicates whether shape is finished.void
updatePoints(java.util.List<Point> points)
Updates shape with an array of new points.-
Methods inherited from class com.avaya.clientservices.collaboration.drawing.AbstractShape
equals, getColor, getId, getOwnerDisplayName, getStatus, getTranslation, getWidth, hashCode, isMine, setTranslation
-
-
-
-
Method Detail
-
updatePoints
public void updatePoints(java.util.List<Point> points)
Updates shape with an array of new points.- Parameters:
points
- list containing Point objects (from which it is created) to update.
-
finishDrawing
public void finishDrawing()
Finishes drawing shape.
-
getShapePoints
public java.util.List<Point> getShapePoints()
Returns list containingPoint
shape points from which it is created.- Returns:
- list of points.
-
getShapeTranslatedPoints
public java.util.List<Point> getShapeTranslatedPoints()
Returns list containingPoint
shape points where each point is moved respectively to current shape translation.- Returns:
- list of translated points.
-
isFinished
public boolean isFinished()
Indicates whether shape is finished.- Returns:
- true if shape is finished, otherwise false.
-
isFilled
public boolean isFilled()
Indicates whether shape is filled.- Returns:
- true if shape is filled, otherwise false.
-
-