Class AbstractShape
- java.lang.Object
-
- com.avaya.clientservices.collaboration.drawing.AbstractShape
-
public abstract class AbstractShape extends java.lang.ObjectBase class for shapes that can be drawn on
WhiteboardSurfacewhiteboard 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 classAbstractShape.ShapeStatusEnum indicating selection status ofAbstractShapeon 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 booleanequals(java.lang.Object o)ColorgetColor()Colorof shape in ARGB format.java.lang.StringgetId()The shape ID associated with the particular shape object.java.lang.StringgetOwnerDisplayName()Display name of user who created shape.AbstractShape.ShapeStatusgetStatus()The status which is sent to server.PointgetTranslation()Translation point of shape.intgetWidth()The line width of shape.inthashCode()booleanisMine()Returns true whether shape is created by local user, otherwise false and it means that the shape is created by a remote user.voidsetTranslation(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()
Colorof 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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-