/** * Returns whether the given color is dark or light depending on the colors grey-scale level. * * @param rgb the color * @return <code>true</code> if the color is dark, <code>false</code> if it is light */ private static boolean isDark(RGB rgb) { return greyLevel(rgb) > 128; }
/** * Returns <code>true</code> if the ruler is showing change information, <code>false</code> * otherwise * * @return <code>true</code> if change information is shown, <code>false</code> otherwise * @since 3.3 */ public boolean isShowingChangeInformation() { return fDiffPainter.hasInformation(); }
@Override public void setDeletedColor(Color deletedColor) { fDiffPainter.setDeletedColor(deletedColor); }
/** * Returns the display character for the accessibility mode for a certain model line. * * @param line the document line of interest * @return the display character for <code>line</code> */ public String getDisplayCharacter(int line) { return getDisplayCharacter(getDiffInfo(line)); }
@Override public void setChangedColor(Color changedColor) { fDiffPainter.setChangedColor(changedColor); }
@Override public void setAddedColor(Color addedColor) { fDiffPainter.setAddedColor(addedColor); }
/** * Returns the color for deleted lines. * * @return the color to be used for the deletion indicator */ private Color getDeletionColor() { return fDeletedColor == null ? getBackground() : fDeletedColor; }
/** * Returns the display character for the accessibility mode for a certain model line. * * @param line the document line of interest * @return the display character for <code>line</code> */ public String getDisplayCharacter(int line) { return getDisplayCharacter(getDiffInfo(line)); }
@Override public void setDeletedColor(Color deletedColor) { fDiffPainter.setDeletedColor(deletedColor); }
@Override public void setChangedColor(Color changedColor) { fDiffPainter.setChangedColor(changedColor); }
@Override public void setAddedColor(Color addedColor) { fDiffPainter.setAddedColor(addedColor); }
/** * Returns whether the given color is dark or light depending on the colors grey-scale level. * * @param rgb the color * @return <code>true</code> if the color is dark, <code>false</code> if it is light */ private static boolean isDark(RGB rgb) { return greyLevel(rgb) > 128; }
/** * Returns <code>true</code> if the ruler is showing change information, <code>false</code> * otherwise * * @return <code>true</code> if change information is shown, <code>false</code> otherwise * @since 3.3 */ public boolean isShowingChangeInformation() { return fDiffPainter.hasInformation(); }
/** * Returns the color for deleted lines. * * @return the color to be used for the deletion indicator */ private Color getDeletionColor() { return fDeletedColor == null ? getBackground() : fDeletedColor; }
@Override public void setDeletedColor(Color deletedColor) { fDiffPainter.setDeletedColor(deletedColor); }
@Override public void setChangedColor(Color changedColor) { fDiffPainter.setChangedColor(changedColor); }
@Override public void setAddedColor(Color addedColor) { fDiffPainter.setAddedColor(addedColor); }
@Override public void setDeletedColor(Color deletedColor) { fDiffPainter.setDeletedColor(deletedColor); }
@Override public void setChangedColor(Color changedColor) { fDiffPainter.setChangedColor(changedColor); }
@Override public void setAddedColor(Color addedColor) { fDiffPainter.setAddedColor(addedColor); }