public class GXTextSegment extends Object implements Externalizable
| Constructor and Description |
|---|
GXTextSegment()
Creates TextSegment object.
|
GXTextSegment(GXTextSegmentState segmentState,
Point point)
Creates TextSegment object by specified state and coordinate
|
| Modifier and Type | Method and Description |
|---|---|
void |
addSegmentText(Point point,
String text)
Adds text to segment with specified point
|
GXTextSegment |
bidiMatcher()
Bidi processing of the segment text
|
int |
getFirstRow()
Gets first row of the segment
m_segmentText |
int |
getLastRow()
Gets last row of the segment
m_segmentText |
Map |
getSegmentCoords()
Gets segment coordinates as map
where key - start text coordinate
value - end text coordinate
m_segmentFromTo |
GXTextSegmentState |
getSegmentState()
Gets color of the text
m_segmentState |
Map |
getSegmentText()
Gets text of segment as map
where: key - text's coordinate
value text, presented as StringBuffer
m_segmentText |
void |
readExternal(ObjectInput in) |
void |
setSegmentState(GXTextSegmentState segmentState)
Sets color of the text
m_segmentState |
void |
writeExternal(ObjectOutput out) |
public GXTextSegment()
public GXTextSegment(GXTextSegmentState segmentState, Point point)
segmentState - point - public GXTextSegmentState getSegmentState()
m_segmentStatepublic void setSegmentState(GXTextSegmentState segmentState)
m_segmentStatepublic void addSegmentText(Point point, String text)
point - text - public Map getSegmentText()
m_segmentTextpublic Map getSegmentCoords()
m_segmentFromTopublic GXTextSegment bidiMatcher()
public int getFirstRow()
m_segmentTextpublic int getLastRow()
m_segmentTextpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionjava.io.Externalizable#readExternal(ObjectInput)public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionjava.io.Externalizable#writeExternal(ObjectOutput)Copyright 2022 Software AG. All rights reserved. Use is subject to license terms.