/** * Returns the bullet of the line at the given index. * * @param index the index of the line * * @return the line bullet * * @exception SWTException <ul> * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> * @exception IllegalArgumentException <ul> * <li>ERROR_INVALID_ARGUMENT when the index is invalid</li> * </ul> * * @since 3.2 */ public Bullet getLineBullet(int index) { checkWidget(); if (index < 0 || index > content.getLineCount()) { SWT.error(SWT.ERROR_INVALID_ARGUMENT); } return isListening(ST.LineGetStyle) ? null : renderer.getLineBullet(index, null); } /**
/** * Returns the bullet of the line at the given index. * * @param index the index of the line * * @return the line bullet * * @exception SWTException <ul> * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> * @exception IllegalArgumentException <ul> * <li>ERROR_INVALID_ARGUMENT when the index is invalid</li> * </ul> * * @since 3.2 */ public Bullet getLineBullet(int index) { checkWidget(); if (index < 0 || index > content.getLineCount()) { SWT.error(SWT.ERROR_INVALID_ARGUMENT); } return isListening(ST.LineGetStyle) ? null : renderer.getLineBullet(index, null); } /**
/** * Returns the bullet of the line at the given index. * * @param index the index of the line * * @return the line bullet * * @exception SWTException <ul> * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> * @exception IllegalArgumentException <ul> * <li>ERROR_INVALID_ARGUMENT when the index is invalid</li> * </ul> * * @since 3.2 */ public Bullet getLineBullet(int index) { checkWidget(); if (index < 0 || index > content.getLineCount()) { SWT.error(SWT.ERROR_INVALID_ARGUMENT); } return isListening(ST.LineGetStyle) ? null : renderer.getLineBullet(index, null); } /**
/** * Returns the bullet of the line at the given index. * * @param index the index of the line * * @return the line bullet * * @exception SWTException <ul> * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> * @exception IllegalArgumentException <ul> * <li>ERROR_INVALID_ARGUMENT when the index is invalid</li> * </ul> * * @since 3.2 */ public Bullet getLineBullet(int index) { checkWidget(); if (index < 0 || index > content.getLineCount()) { SWT.error(SWT.ERROR_INVALID_ARGUMENT); } return isListening(ST.LineGetStyle) ? null : renderer.getLineBullet(index, null); } /**
/** * Returns the bullet of the line at the given index. * * @param index the index of the line * * @return the line bullet * * @exception SWTException <ul> * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> * @exception IllegalArgumentException <ul> * <li>ERROR_INVALID_ARGUMENT when the index is invalid</li> * </ul> * * @since 3.2 */ public Bullet getLineBullet(int index) { checkWidget(); if (index < 0 || index > content.getLineCount()) { SWT.error(SWT.ERROR_INVALID_ARGUMENT); } return isListening(ST.LineGetStyle) ? null : renderer.getLineBullet(index, null); } /**
void redrawLinesBullet (int[] redrawLines) { if (redrawLines == null) return; int topIndex = getPartialTopIndex(); int bottomIndex = getPartialBottomIndex(); for (int i = 0; i < redrawLines.length; i++) { int lineIndex = redrawLines[i]; if (!(topIndex <= lineIndex && lineIndex <= bottomIndex)) continue; int width = -1; Bullet bullet = renderer.getLineBullet(lineIndex, null); if (bullet != null) { StyleRange style = bullet.style; GlyphMetrics metrics = style.metrics; width = metrics.width; } if (width == -1) width = getClientArea().width; int height = renderer.getLineHeight(lineIndex); int y = getLinePixel(lineIndex); super.redraw(0, y, width, height, false); } } void redrawMargins(int oldHeight, int oldWidth) {
void redrawLinesBullet (int[] redrawLines) { if (redrawLines == null) return; int topIndex = getPartialTopIndex(); int bottomIndex = getPartialBottomIndex(); for (int i = 0; i < redrawLines.length; i++) { int lineIndex = redrawLines[i]; if (!(topIndex <= lineIndex && lineIndex <= bottomIndex)) continue; int width = -1; Bullet bullet = renderer.getLineBullet(lineIndex, null); if (bullet != null) { StyleRange style = bullet.style; GlyphMetrics metrics = style.metrics; width = metrics.width; } if (width == -1) width = getClientArea().width; int height = renderer.getLineHeight(lineIndex); int y = getLinePixel(lineIndex); super.redraw(0, y, width, height, false); } } void redrawMargins(int oldHeight, int oldWidth) {
void redrawLinesBullet (int[] redrawLines) { if (redrawLines == null) return; int topIndex = getPartialTopIndex(); int bottomIndex = getPartialBottomIndex(); for (int i = 0; i < redrawLines.length; i++) { int lineIndex = redrawLines[i]; if (!(topIndex <= lineIndex && lineIndex <= bottomIndex)) continue; int width = -1; Bullet bullet = renderer.getLineBullet(lineIndex, null); if (bullet != null) { StyleRange style = bullet.style; GlyphMetrics metrics = style.metrics; width = metrics.width; } if (width == -1) width = getClientArea().width; int height = renderer.getLineHeight(lineIndex); int y = getLinePixel(lineIndex); super.redraw(0, y, width, height, false); } } void redrawMargins(int oldHeight, int oldWidth) {
void redrawLinesBullet (int[] redrawLines) { if (redrawLines == null) return; int topIndex = getPartialTopIndex(); int bottomIndex = getPartialBottomIndex(); for (int i = 0; i < redrawLines.length; i++) { int lineIndex = redrawLines[i]; if (!(topIndex <= lineIndex && lineIndex <= bottomIndex)) continue; int width = -1; Bullet bullet = renderer.getLineBullet(lineIndex, null); if (bullet != null) { StyleRange style = bullet.style; GlyphMetrics metrics = style.metrics; width = metrics.width; } if (width == -1) width = getClientArea().width; int height = renderer.getLineHeight(lineIndex); int y = getLinePixel(lineIndex); super.redraw(0, y, width, height, false); } } void redrawMargins(int oldHeight, int oldWidth) {
void redrawLinesBullet (int[] redrawLines) { if (redrawLines == null) return; int topIndex = getPartialTopIndex(); int bottomIndex = getPartialBottomIndex(); for (int i = 0; i < redrawLines.length; i++) { int lineIndex = redrawLines[i]; if (!(topIndex <= lineIndex && lineIndex <= bottomIndex)) continue; int width = -1; Bullet bullet = renderer.getLineBullet(lineIndex, null); if (bullet != null) { StyleRange style = bullet.style; GlyphMetrics metrics = style.metrics; width = metrics.width; } if (width == -1) width = getClientArea().width; int height = renderer.getLineHeight(lineIndex); int y = getLinePixel(lineIndex); super.redraw(0, y, width, height, false); } } void redrawMargins(int oldHeight, int oldWidth) {