Rectangle p0 = mapper.modelToView(c, offs0); Rectangle p1 = mapper.modelToView(c, offs1); Paint paint = getPaint(); if (paint==null) { g2d.setColor(c.getSelectionColor());
Paint paint = getPaint(); if (paint==null) { g2d.setColor(c.getSelectionColor());
/** * Returns the color used in "mark all." * * @return The color. * @see #setMarkAllHighlightColor(Color) */ public Color getMarkAllHighlightColor() { return (Color)markAllHighlightPainter.getPaint(); }
/** * Returns the color used in "mark all." * * @return The color. * @see #setMarkAllHighlightColor(Color) */ public Color getMarkAllHighlightColor() { return (Color)markAllHighlightPainter.getPaint(); }
/** * Sets the color used for "mark all." This fires a property change of * type {@link #MARK_ALL_COLOR_PROPERTY}. * * @param color The color to use for "mark all." * @see #getMarkAllHighlightColor() */ public void setMarkAllHighlightColor(Color color) { Color old = (Color)markAllHighlightPainter.getPaint(); if (old!=null && !old.equals(color)) { markAllHighlightPainter.setPaint(color); if (markedWord!=null) repaint(); // Repaint if words are highlighted. firePropertyChange(MARK_ALL_COLOR_PROPERTY, old, color); } }
/** * Sets the color used for "mark all." This fires a property change of * type {@link #MARK_ALL_COLOR_PROPERTY}. * * @param color The color to use for "mark all." * @see #getMarkAllHighlightColor() */ public void setMarkAllHighlightColor(Color color) { Color old = (Color)markAllHighlightPainter.getPaint(); if (old!=null && !old.equals(color)) { markAllHighlightPainter.setPaint(color); if (markedWord!=null) repaint(); // Repaint if words are highlighted. firePropertyChange(MARK_ALL_COLOR_PROPERTY, old, color); } }
Rectangle p0 = mapper.modelToView(c, offs0); Rectangle p1 = mapper.modelToView(c, offs1); Paint paint = getPaint(); if (paint==null) { g2d.setColor(c.getSelectionColor());
Rectangle p0 = mapper.modelToView(c, offs0); Rectangle p1 = mapper.modelToView(c, offs1); Paint paint = getPaint(); if (paint==null) g2d.setColor(c.getSelectionColor());
Rectangle p0 = mapper.modelToView(c, offs0); Rectangle p1 = mapper.modelToView(c, offs1); Paint paint = getPaint(); if (paint==null) g2d.setColor(c.getSelectionColor());
Paint paint = getPaint(); if (paint==null) g2d.setColor(c.getSelectionColor());
Paint paint = getPaint(); if (paint==null) g2d.setColor(c.getSelectionColor());
Paint paint = getPaint(); if (paint==null) { g2d.setColor(c.getSelectionColor());