public class RoverText extends AbstractRoverPointShape<RoverText>
Includes the text, insertion point, alignment, and optionally a rotation and pixel offset.
Copyright 2009 Partner Software, Inc.
| Constructor and Description |
|---|
RoverText(int id,
int dataId,
int drawId,
boolean selectable,
XyPoint point,
java.lang.String text,
RoverAlignment alignment,
XyRotation rotation,
int offsetX,
int offsetY) |
| Modifier and Type | Method and Description |
|---|---|
static RoverText |
fromBytes(RoverBytes bytes) |
RoverAlignment |
getAlignment() |
java.lang.String |
getText() |
byte[] |
getTextBytes()
Returns the text as utf-8 coded bytes.
|
RoverText |
withDataId(int dataId)
Returns a copy of this shape with the given data ID.
|
RoverText |
withDrawId(int drawId)
Returns a copy of this shape with the given drawable ID.
|
RoverText |
withId(int id)
Returns a copy of this shape with the given ID.
|
RoverText |
withIds(int id,
int dataId,
int drawId)
Returns a copy of this shape with the given IDs set.
|
getBounds, getCentroid, getEndPoint, getOffsetX, getOffsetY, getPoint, getRotation, getStartPoint, isOffset, isRotatedgetDataId, getDrawId, getId, hasZ, isSelectable, toStringpublic RoverText(int id,
int dataId,
int drawId,
boolean selectable,
XyPoint point,
java.lang.String text,
RoverAlignment alignment,
XyRotation rotation,
int offsetX,
int offsetY)
public static RoverText fromBytes(RoverBytes bytes)
public RoverText withDataId(int dataId)
RoverShapepublic RoverText withDrawId(int drawId)
RoverShapepublic RoverText withId(int id)
RoverShapepublic RoverText withIds(int id, int dataId, int drawId)
RoverShapepublic java.lang.String getText()
public RoverAlignment getAlignment()
public byte[] getTextBytes()