}
for (int i = inlineText.getSelectionEnd(); i < inlineText.getSubstring().length(); i++) {
vector.setGlyphPosition(i, new Point2D.Float(-100000, -100000));
}
if(inlineText.getParent().getStyle().isTextJustify()) {
JustificationInfo info = inlineText.getParent().getLineBox().getJustificationInfo();
if(info!=null) {
String string = inlineText.getSubstring();
float adjust = 0.0f;
for (int i = inlineText.getSelectionStart(); i < inlineText.getSelectionEnd(); i++) {
char ch = string.charAt(i);
if (i != 0) {
Point2D point = vector.getGlyphPosition(i);
vector.setGlyphPosition(
i, new Point2D.Double(point.getX() + adjust, point.getY()));
}
if (ch == ' ' || ch == '\u00a0' || ch == '\u3000') {
adjust += info.getSpaceAdjust();
} else {
adjust += info.getNonSpaceAdjust();
}
}
}
}