font, glyphVector, inlineText.getSelectionStart(), iB.getAbsX() + inlineText.getX(), iB.getAbsY() + iB.getBaseline()); Graphics2D graphics = getGraphics(); double scaleX = graphics.getTransform().getScaleX(); boolean allSelected = (text.length() == inlineText.getSelectionEnd()-inlineText.getSelectionStart()); int startX = (inlineText.getSelectionStart() == inlineText.getStart())?iB.getAbsX() + inlineText.getX():(int)Math.round(start.x/scaleX); int endX = (allSelected)?startX+inlineText.getWidth():(int)Math.round((end.x + end.width)/scaleX); _graphics.setColor(UIManager.getColor("TextArea.selectionBackground")); // FIXME
for (int i = 0; i < inlineText.getSelectionStart(); i++) { vector.setGlyphPosition(i, new Point2D.Float(-100000, -100000)); 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) {
font, glyphVector, inlineText.getSelectionStart(), iB.getAbsX() + inlineText.getX(), iB.getAbsY() + iB.getBaseline()); Graphics2D graphics = getGraphics(); double scaleX = graphics.getTransform().getScaleX(); boolean allSelected = (text.length() == inlineText.getSelectionEnd()-inlineText.getSelectionStart()); int startX = (inlineText.getSelectionStart() == inlineText.getStart())?iB.getAbsX() + inlineText.getX():(int)Math.round(start.x/scaleX); int endX = (allSelected)?startX+inlineText.getWidth():(int)Math.round((end.x + end.width)/scaleX); _graphics.setColor(UIManager.getColor("TextArea.selectionBackground")); // FIXME
for (int i = 0; i < inlineText.getSelectionStart(); i++) { vector.setGlyphPosition(i, new Point2D.Float(-100000, -100000)); 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) {