Revision 12127 trunk/libraries/libUIComponent/src/org/gvsig/gui/beans/doubleslider/DoubleSlider.java
DoubleSlider.java | ||
---|---|---|
135 | 135 |
r = Color.DARK_GRAY.getRed(); |
136 | 136 |
color1 = new Color(r, r, r); |
137 | 137 |
r = Color.LIGHT_GRAY.getRed(); |
138 |
r = Color.WHITE.getRed(); |
|
138 | 139 |
color2 = new Color(r, r, r); |
139 | 140 |
} |
140 | 141 |
|
... | ... | |
165 | 166 |
getBufferGraphics().drawLine(i,top,i,top+10); |
166 | 167 |
} |
167 | 168 |
|
169 |
if (!isEnabled()) |
|
170 |
getBufferGraphics().setColor(Color.LIGHT_GRAY); |
|
171 |
else |
|
172 |
getBufferGraphics().setColor(Color.BLACK); |
|
173 |
getBufferGraphics().drawRect(1, top, width - 2, 10); |
|
174 |
|
|
168 | 175 |
drawTriangle(valuetopixel(x1), top, getColorPosition(valuetopixel(x1))); |
169 | 176 |
if (twoSliders) |
170 | 177 |
drawTriangle(valuetopixel(x2), top, getColorPosition(valuetopixel(x2))); |
Also available in: Unified diff