void dispose() { if (boldFont != null) boldFont.dispose(); if (italicFont != null) italicFont.dispose(); if (boldItalicFont != null) boldItalicFont.dispose(); boldFont = italicFont = boldItalicFont = null; reset(); content = null; device = null; styledText = null; } void disposeTextLayout (TextLayout layout) {
void dispose() { if (boldFont != null) boldFont.dispose(); if (italicFont != null) italicFont.dispose(); if (boldItalicFont != null) boldItalicFont.dispose(); boldFont = italicFont = boldItalicFont = null; reset(); content = null; device = null; styledText = null; } void disposeTextLayout (TextLayout layout) {
void dispose() { if (boldFont != null) boldFont.dispose(); if (italicFont != null) italicFont.dispose(); if (boldItalicFont != null) boldItalicFont.dispose(); boldFont = italicFont = boldItalicFont = null; reset(); content = null; device = null; styledText = null; } void disposeTextLayout (TextLayout layout) {
void dispose() { if (boldFont != null) boldFont.dispose(); if (italicFont != null) italicFont.dispose(); if (boldItalicFont != null) boldItalicFont.dispose(); boldFont = italicFont = boldItalicFont = null; reset(); content = null; device = null; styledText = null; } void disposeTextLayout (TextLayout layout) {
void dispose() { if (boldFont != null) boldFont.dispose(); if (italicFont != null) italicFont.dispose(); if (boldItalicFont != null) boldItalicFont.dispose(); boldFont = italicFont = boldItalicFont = null; reset(); content = null; device = null; styledText = null; } void disposeTextLayout (TextLayout layout) {
void resetCache(int firstLine, int count) { int maxLineIndex = renderer.maxWidthLineIndex; renderer.reset(firstLine, count); renderer.calculateClientArea(); if (0 <= maxLineIndex && maxLineIndex < content.getLineCount()) { renderer.calculate(maxLineIndex, 1); } setScrollBars(true); if (!isFixedLineHeight()) { if (topIndex > firstLine) { verticalScrollOffset = -1; } renderer.calculateIdle(); } } /**
void resetCache(int firstLine, int count) { int maxLineIndex = renderer.maxWidthLineIndex; renderer.reset(firstLine, count); renderer.calculateClientArea(); if (0 <= maxLineIndex && maxLineIndex < content.getLineCount()) { renderer.calculate(maxLineIndex, 1); } setScrollBars(true); if (!isFixedLineHeight()) { if (topIndex > firstLine) { verticalScrollOffset = -1; } renderer.calculateIdle(); } } /**
void resetCache(int firstLine, int count) { int maxLineIndex = renderer.maxWidthLineIndex; renderer.reset(firstLine, count); renderer.calculateClientArea(); if (0 <= maxLineIndex && maxLineIndex < content.getLineCount()) { renderer.calculate(maxLineIndex, 1); } setScrollBars(true); if (!isFixedLineHeight()) { if (topIndex > firstLine) { verticalScrollOffset = -1; } renderer.calculateIdle(); } } /**
void resetCache(int firstLine, int count) { int maxLineIndex = renderer.maxWidthLineIndex; renderer.reset(firstLine, count); renderer.calculateClientArea(); if (0 <= maxLineIndex && maxLineIndex < content.getLineCount()) { renderer.calculate(maxLineIndex, 1); } setScrollBars(true); if (!isFixedLineHeight()) { if (topIndex > firstLine) { verticalScrollOffset = -1; } renderer.calculateIdle(); } } /**
void resetCache(int firstLine, int count) { int maxLineIndex = renderer.maxWidthLineIndex; renderer.reset(firstLine, count); renderer.calculateClientArea(); if (0 <= maxLineIndex && maxLineIndex < content.getLineCount()) { renderer.calculate(maxLineIndex, 1); } setScrollBars(true); if (!isFixedLineHeight()) { if (topIndex > firstLine) { verticalScrollOffset = -1; } renderer.calculateIdle(); } } /**
/** * Causes the entire bounds of the receiver to be marked * as needing to be redrawn. The next time a paint request * is processed, the control will be completely painted. * <p> * Recalculates the content width for all lines in the bounds. * When a <code>LineStyleListener</code> is used a redraw call * is the only notification to the widget that styles have changed * and that the content width may have changed. * </p> * * @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> * * @see Control#update() */ public void redraw() { super.redraw(); int itemCount = getPartialBottomIndex() - topIndex + 1; renderer.reset(topIndex, itemCount); renderer.calculate(topIndex, itemCount); setScrollBars(false); doMouseLinkCursor(); } /**
/** * Causes the entire bounds of the receiver to be marked * as needing to be redrawn. The next time a paint request * is processed, the control will be completely painted. * <p> * Recalculates the content width for all lines in the bounds. * When a <code>LineStyleListener</code> is used a redraw call * is the only notification to the widget that styles have changed * and that the content width may have changed. * </p> * * @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> * * @see Control#update() */ @Override public void redraw() { super.redraw(); int itemCount = getPartialBottomIndex() - topIndex + 1; renderer.reset(topIndex, itemCount); renderer.calculate(topIndex, itemCount); setScrollBars(false); doMouseLinkCursor(); } /**
/** * Causes the entire bounds of the receiver to be marked * as needing to be redrawn. The next time a paint request * is processed, the control will be completely painted. * <p> * Recalculates the content width for all lines in the bounds. * When a <code>LineStyleListener</code> is used a redraw call * is the only notification to the widget that styles have changed * and that the content width may have changed. * </p> * * @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> * * @see Control#update() */ @Override public void redraw() { super.redraw(); int itemCount = getPartialBottomIndex() - topIndex + 1; renderer.reset(topIndex, itemCount); renderer.calculate(topIndex, itemCount); setScrollBars(false); doMouseLinkCursor(); } /**
/** * Causes the entire bounds of the receiver to be marked * as needing to be redrawn. The next time a paint request * is processed, the control will be completely painted. * <p> * Recalculates the content width for all lines in the bounds. * When a <code>LineStyleListener</code> is used a redraw call * is the only notification to the widget that styles have changed * and that the content width may have changed. * </p> * * @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> * * @see Control#update() */ @Override public void redraw() { super.redraw(); int itemCount = getPartialBottomIndex() - topIndex + 1; renderer.reset(topIndex, itemCount); renderer.calculate(topIndex, itemCount); setScrollBars(false); doMouseLinkCursor(); } /**
/** * Causes the entire bounds of the receiver to be marked * as needing to be redrawn. The next time a paint request * is processed, the control will be completely painted. * <p> * Recalculates the content width for all lines in the bounds. * When a <code>LineStyleListener</code> is used a redraw call * is the only notification to the widget that styles have changed * and that the content width may have changed. * </p> * * @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> * * @see Control#update() */ @Override public void redraw() { super.redraw(); int itemCount = getPartialBottomIndex() - topIndex + 1; renderer.reset(topIndex, itemCount); renderer.calculate(topIndex, itemCount); setScrollBars(false); doMouseLinkCursor(); } /**