Mercurial > projects > dwt-addons
comparison dwtx/jface/internal/text/revisions/RevisionPainter.d @ 147:000f9136b8f7
final
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 24 Aug 2008 22:35:05 +0200 |
parents | 75302ef3f92f |
children | 5cf141e43417 |
comparison
equal
deleted
inserted
replaced
146:75302ef3f92f | 147:000f9136b8f7 |
---|---|
104 public final class RevisionPainter { | 104 public final class RevisionPainter { |
105 /** Tells whether this class is in debug mode. */ | 105 /** Tells whether this class is in debug mode. */ |
106 private static bool DEBUG= "true".equalsIgnoreCase(Platform.getDebugOption("dwtx.jface.text.source/debug/RevisionRulerColumn")); //$NON-NLS-1$//$NON-NLS-2$ | 106 private static bool DEBUG= "true".equalsIgnoreCase(Platform.getDebugOption("dwtx.jface.text.source/debug/RevisionRulerColumn")); //$NON-NLS-1$//$NON-NLS-2$ |
107 | 107 |
108 // RGBs provided by UI Designer | 108 // RGBs provided by UI Designer |
109 private static final RGB BY_DATE_START_COLOR= new RGB(199, 134, 57); | 109 private static const RGB BY_DATE_START_COLOR= new RGB(199, 134, 57); |
110 private static final RGB BY_DATE_END_COLOR= new RGB(241, 225, 206); | 110 private static const RGB BY_DATE_END_COLOR= new RGB(241, 225, 206); |
111 | 111 |
112 | 112 |
113 /** | 113 /** |
114 * The annotations created to show a revision in the overview ruler. | 114 * The annotations created to show a revision in the overview ruler. |
115 */ | 115 */ |
127 /** | 127 /** |
128 * The average perceived intensity of a base color. 0 means black, 1 means white. A base | 128 * The average perceived intensity of a base color. 0 means black, 1 means white. A base |
129 * revision color perceived as light such as yellow will be darkened, while colors perceived | 129 * revision color perceived as light such as yellow will be darkened, while colors perceived |
130 * as dark such as blue will be lightened up. | 130 * as dark such as blue will be lightened up. |
131 */ | 131 */ |
132 private static final float AVERAGE_INTENSITY= 0.5f; | 132 private static const float AVERAGE_INTENSITY= 0.5f; |
133 /** | 133 /** |
134 * The maximum shading in [0, 1] - this is the shade that the most recent revision will | 134 * The maximum shading in [0, 1] - this is the shade that the most recent revision will |
135 * receive. | 135 * receive. |
136 */ | 136 */ |
137 private static final float MAX_SHADING= 0.7f; | 137 private static const float MAX_SHADING= 0.7f; |
138 /** | 138 /** |
139 * The minimum shading in [0, 1] - this is the shade that the oldest revision will receive. | 139 * The minimum shading in [0, 1] - this is the shade that the oldest revision will receive. |
140 */ | 140 */ |
141 private static final float MIN_SHADING= 0.2f; | 141 private static const float MIN_SHADING= 0.2f; |
142 /** | 142 /** |
143 * The shade for the focus boxes. | 143 * The shade for the focus boxes. |
144 */ | 144 */ |
145 private static final float FOCUS_COLOR_SHADING= 1f; | 145 private static const float FOCUS_COLOR_SHADING= 1f; |
146 | 146 |
147 | 147 |
148 /** | 148 /** |
149 * A list of {@link Long}, storing the age of each revision in a sorted list. | 149 * A list of {@link Long}, storing the age of each revision in a sorted list. |
150 */ | 150 */ |