Class AbstractShape
- java.lang.Object
-
- com.avaya.clientservices.collaboration.drawing.AbstractShape
-
public abstract class AbstractShape extends java.lang.Object
Base class for shapes that can be drawn on
WhiteboardSurface
whiteboard surface.Client doesn't need to use this class explicitly unless a custom whiteboard is developed.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AbstractShape.ShapeStatus
Enum indicating selection status ofAbstractShape
on the server side, in other words, if our action is confirmed by server.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
Color
getColor()
Color
of shape in ARGB format.java.lang.String
getId()
The shape ID associated with the particular shape object.java.lang.String
getOwnerDisplayName()
Display name of user who created shape.AbstractShape.ShapeStatus
getStatus()
The status which is sent to server.Point
getTranslation()
Translation point of shape.int
getWidth()
The line width of shape.int
hashCode()
boolean
isMine()
Returns true whether shape is created by local user, otherwise false and it means that the shape is created by a remote user.void
setTranslation(Point point)
Sets translation of shape.
-
-
-
Method Detail
-
getId
public java.lang.String getId()
The shape ID associated with the particular shape object.- Returns:
- shape ID.
-
getStatus
public AbstractShape.ShapeStatus getStatus()
The status which is sent to server.- Returns:
- shape status.
-
getTranslation
public Point getTranslation()
Translation point of shape.- Returns:
- translation point.
- See Also:
setTranslation(Point)
-
setTranslation
public void setTranslation(Point point)
Sets translation of shape.- Parameters:
point
- translation.- See Also:
getTranslation()
-
getColor
public Color getColor()
Color
of shape in ARGB format. Alpha is stored in most significant bit.- Returns:
- ARGB representation of the color.
-
getWidth
public int getWidth()
The line width of shape.- Returns:
- line width.
-
getOwnerDisplayName
public java.lang.String getOwnerDisplayName()
Display name of user who created shape.- Returns:
- user name.
-
isMine
public boolean isMine()
Returns true whether shape is created by local user, otherwise false and it means that the shape is created by a remote user.- Returns:
- true if shape is created by local user, otherwise false.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-