/** * Returns the width of the representation of a text range in the * visible region of the viewer's document as drawn in this viewer's * widget. * * @param offset the offset of the text range in the visible region * @param length the length of the text range in the visible region * @return the width of the presentation of the specified text range * @since 2.0 */ final protected int getWidthInPixels(int offset, int length) { return getExtent(offset, offset + length).getLength(); }
/** * Returns the width of the representation of a text range in the * visible region of the viewer's document as drawn in this viewer's * widget. * * @param offset the offset of the text range in the visible region * @param length the length of the text range in the visible region * @return the width of the presentation of the specified text range * @since 2.0 */ final protected int getWidthInPixels(int offset, int length) { return getExtent(offset, offset + length).getLength(); }