/** * Enables line wrapping support for plain text. By default this support is disabled to mimic default of the JLabel. * Value of this property has no effect on HTML text. * * @param b the new value */ public void setLineWrap(boolean b) { boolean old = isLineWrap(); this.multiLine = b; if (isLineWrap() != old) { firePropertyChange("lineWrap", old, isLineWrap()); if (getForegroundPainter() != null) { // XXX There is a bug here. In order to make painter work with this, caching has to be disabled ((AbstractPainter) getForegroundPainter()).setCacheable(!b); } //repaint(); } }
/** * Enables line wrapping support for plain text. By default this support is disabled to mimic default of the JLabel. * Value of this property has no effect on HTML text. * * @param b the new value */ public void setLineWrap(boolean b) { boolean old = isLineWrap(); this.multiLine = b; if (isLineWrap() != old) { firePropertyChange("lineWrap", old, isLineWrap()); if (getForegroundPainter() != null) { // XXX There is a bug here. In order to make painter work with this, caching has to be disabled ((AbstractPainter) getForegroundPainter()).setCacheable(!b); } //repaint(); } }
/** * Enables line wrapping support for plain text. By default this support is disabled to mimic default of the JLabel. * Value of this property has no effect on HTML text. * * @param b the new value */ public void setLineWrap(boolean b) { boolean old = isLineWrap(); this.multiLine = b; if (isLineWrap() != old) { firePropertyChange("lineWrap", old, isLineWrap()); if (getForegroundPainter() != null) { // XXX There is a bug here. In order to make painter work with this, caching has to be disabled ((AbstractPainter) getForegroundPainter()).setCacheable(!b); } //repaint(); } }
/** * Enables line wrapping support for plain text. By default this support is disabled to mimic default of the JLabel. * Value of this property has no effect on HTML text. * * @param b the new value */ public void setLineWrap(boolean b) { boolean old = isLineWrap(); this.multiLine = b; if (isLineWrap() != old) { firePropertyChange("lineWrap", old, isLineWrap()); if (getForegroundPainter() != null) { // XXX There is a bug here. In order to make painter work with this, caching has to be disabled ((AbstractPainter) getForegroundPainter()).setCacheable(!b); } //repaint(); } }
/** * Enables line wrapping support for plain text. By default this support is disabled to mimic default of the JLabel. * Value of this property has no effect on HTML text. * * @param b the new value */ public void setLineWrap(boolean b) { boolean old = isLineWrap(); this.multiLine = b; if (isLineWrap() != old) { firePropertyChange("lineWrap", old, isLineWrap()); if (getForegroundPainter() != null) { // XXX There is a bug here. In order to make painter work with this, caching has to be disabled ((AbstractPainter) getForegroundPainter()).setCacheable(!b); } //repaint(); } }
src.dontIgnoreRepaint = true; if (src.isLineWrap()) { if ("font".equals(name) || "foreground".equals(name) || "maxLineSpan".equals(name) || "textAlignment".equals(name) || "icon".equals(name) || "iconTextGap".equals(name)) { if (evt.getOldValue() != null && !isHTML(src.getText())) {
src.dontIgnoreRepaint = true; if (src.isLineWrap()) { if ("font".equals(name) || "foreground".equals(name) || "maxLineSpan".equals(name) || "textAlignment".equals(name) || "icon".equals(name) || "iconTextGap".equals(name)) { if (evt.getOldValue() != null && !isHTML(src.getText())) {
src.dontIgnoreRepaint = true; if (src.isLineWrap()) { if ("font".equals(name) || "foreground".equals(name) || "maxLineSpan".equals(name) || "textAlignment".equals(name) || "icon".equals(name) || "iconTextGap".equals(name)) { if (evt.getOldValue() != null && !isHTML(src.getText())) {
src.dontIgnoreRepaint = true; if (src.isLineWrap()) { if ("font".equals(name) || "foreground".equals(name) || "maxLineSpan".equals(name) || "textAlignment".equals(name) || "icon".equals(name) || "iconTextGap".equals(name)) { if (evt.getOldValue() != null && !isHTML(src.getText())) {
src.dontIgnoreRepaint = true; if (src.isLineWrap()) { if ("font".equals(name) || "foreground".equals(name) || "maxLineSpan".equals(name) || "textAlignment".equals(name) || "icon".equals(name) || "iconTextGap".equals(name)) { if (evt.getOldValue() != null && !isHTML(src.getText())) {
@Override @SuppressWarnings("deprecation") public void reshape(int x, int y, int w, int h) { int oldH = getHeight(); super.reshape(x, y, w, h); if (!isLineWrap()) { return; } if (oldH == 0) { return; } if (w > getVisibleRect().width) { w = getVisibleRect().width; } View view = (View) getClientProperty(BasicHTML.propertyKey); if (view != null && view instanceof Renderer) { view.setSize(w - occupiedWidth, h); } }
@Override public void reshape(int x, int y, int w, int h) { int oldH = getHeight(); super.reshape(x, y, w, h); if (!isLineWrap()) { return; } if (oldH == 0) { return; } if (w > getVisibleRect().width) { w = getVisibleRect().width; } View view = (View) getClientProperty(BasicHTML.propertyKey); if (view != null && view instanceof Renderer) { view.setSize(w - occupiedWidth, h); } }
@Override @SuppressWarnings("deprecation") public void reshape(int x, int y, int w, int h) { int oldH = getHeight(); super.reshape(x, y, w, h); if (!isLineWrap()) { return; } if (oldH == 0) { return; } if (w > getVisibleRect().width) { w = getVisibleRect().width; } View view = (View) getClientProperty(BasicHTML.propertyKey); if (view != null && view instanceof Renderer) { view.setSize(w - occupiedWidth, h); } }
@Override @SuppressWarnings("deprecation") public void reshape(int x, int y, int w, int h) { int oldH = getHeight(); super.reshape(x, y, w, h); if (!isLineWrap()) { return; } if (oldH == 0) { return; } if (w > getVisibleRect().width) { w = getVisibleRect().width; } View view = (View) getClientProperty(BasicHTML.propertyKey); if (view != null && view instanceof Renderer) { view.setSize(w - occupiedWidth, h); } }
@Override @SuppressWarnings("deprecation") public void reshape(int x, int y, int w, int h) { int oldH = getHeight(); super.reshape(x, y, w, h); if (!isLineWrap()) { return; } if (oldH == 0) { return; } if (w > getVisibleRect().width) { w = getVisibleRect().width; } View view = (View) getClientProperty(BasicHTML.propertyKey); if (view != null && view instanceof Renderer) { view.setSize(w - occupiedWidth, h); } }
if (isLineWrap() && !MultiLineSupport.isHTML(getText())) { getMultiLineSupport();
if (isLineWrap() && !MultiLineSupport.isHTML(getText())) { getMultiLineSupport();
if (isLineWrap() && !MultiLineSupport.isHTML(getText())) {
if (isLineWrap() && !MultiLineSupport.isHTML(getText())) { getMultiLineSupport();
if (isLineWrap() && !MultiLineSupport.isHTML(getText())) { getMultiLineSupport();