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_segmentState
public void setSegmentState(GXTextSegmentState segmentState)
m_segmentState
public void addSegmentText(Point point, String text)
point
- text
- public Map getSegmentText()
m_segmentText
public Map getSegmentCoords()
m_segmentFromTo
public GXTextSegment bidiMatcher()
public int getFirstRow()
m_segmentText
public int getLastRow()
m_segmentText
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
java.io.Externalizable#readExternal(ObjectInput)
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
java.io.Externalizable#writeExternal(ObjectOutput)
Copyright 2021 Software AG. All rights reserved. Use is subject to license terms.