Revision 22103
trunk/extensions/extRasterTools-SE/src/org/gvsig/raster/beans/canvas/layers/InfoLayer.java | ||
---|---|---|
86 | 86 |
Rectangle2D rectangle2D = graphics2.getFontMetrics().getStringBounds(max2, g); |
87 | 87 |
|
88 | 88 |
graphics2.drawString(min2, canvas.getCanvasMinX(), canvas.getCanvasMinX() + 12); |
89 |
graphics2.drawString(max2, (int) (canvas.getVisibleRect().getMaxX() - rectangle2D.getWidth() - canvas.getCanvasMinX()), canvas.getCanvasMinX() + 12);
|
|
89 |
graphics2.drawString(max2, (int) (canvas.getWidth() - rectangle2D.getWidth() - canvas.getCanvasMinX()), canvas.getCanvasMinX() + 12);
|
|
90 | 90 |
|
91 | 91 |
if (statusRight != null) { |
92 | 92 |
rectangle2D = graphics2.getFontMetrics().getStringBounds(statusRight, g); |
93 |
graphics2.drawString(statusRight, (int) (canvas.getVisibleRect().getMaxX() - rectangle2D.getWidth() - canvas.getCanvasMinX()), (int) canvas.getVisibleRect().getMaxY() - canvas.getCanvasMinX());
|
|
93 |
graphics2.drawString(statusRight, (int) (canvas.getWidth() - rectangle2D.getWidth() - canvas.getCanvasMinX()), (int) canvas.getHeight() - canvas.getCanvasMinX());
|
|
94 | 94 |
} |
95 | 95 |
|
96 | 96 |
if (statusLeft != null) { |
97 |
graphics2.drawString(statusLeft, canvas.getCanvasMinX(), (int) canvas.getVisibleRect().getMaxY() - canvas.getCanvasMinX());
|
|
97 |
graphics2.drawString(statusLeft, canvas.getCanvasMinX(), (int) canvas.getHeight() - canvas.getCanvasMinX());
|
|
98 | 98 |
} |
99 | 99 |
|
100 | 100 |
ArrayList list = canvas.getDrawableElements(MinMaxLines.class); |
... | ... | |
132 | 132 |
rectangle2D = graphics2.getFontMetrics().getStringBounds(max2, g); |
133 | 133 |
|
134 | 134 |
if (statusLeft == null) |
135 |
graphics2.drawString(min2, canvas.getCanvasMinX(), (int) canvas.getVisibleRect().getMaxY() - canvas.getCanvasMinX());
|
|
135 |
graphics2.drawString(min2, canvas.getCanvasMinX(), (int) canvas.getHeight() - canvas.getCanvasMinX());
|
|
136 | 136 |
|
137 | 137 |
if (statusRight == null) |
138 |
graphics2.drawString(max2, (int) (canvas.getVisibleRect().getMaxX() - rectangle2D.getWidth() - canvas.getCanvasMinX()), (int) canvas.getVisibleRect().getMaxY() - canvas.getCanvasMinX());
|
|
138 |
graphics2.drawString(max2, (int) (canvas.getWidth() - rectangle2D.getWidth() - canvas.getCanvasMinX()), (int) canvas.getHeight() - canvas.getCanvasMinX());
|
|
139 | 139 |
} |
140 | 140 |
} |
141 | 141 |
|
trunk/extensions/extRasterTools-SE/src/org/gvsig/raster/beans/canvas/layers/functions/StraightLine.java | ||
---|---|---|
118 | 118 |
} |
119 | 119 |
|
120 | 120 |
/** |
121 |
* Dibuja el cursor degetVisibleRect().widthl raton
|
|
121 |
* Dibuja el cursor del raton |
|
122 | 122 |
* @param g |
123 | 123 |
*/ |
124 | 124 |
protected void paintCursor(Graphics g) { |
trunk/extensions/extRasterTools-SE/src/org/gvsig/raster/beans/canvas/GCanvas.java | ||
---|---|---|
191 | 191 |
public void paint(Graphics g) { |
192 | 192 |
if (g == null) return; |
193 | 193 |
g.setColor(backgroundColor); |
194 |
g.fillRect(getVisibleRect().x, getVisibleRect().y, getVisibleRect().width, getVisibleRect().height);
|
|
194 |
g.fillRect(0, 0, getWidth(), getHeight());
|
|
195 | 195 |
for (int i = 0; i < drawableElements.size(); i++) |
196 | 196 |
((DrawableElement)drawableElements.get(i)).draw(g); |
197 | 197 |
} |
... | ... | |
210 | 210 |
* @return |
211 | 211 |
*/ |
212 | 212 |
public int getCanvasMinX() { |
213 |
return getVisibleRect().x + borderX1;
|
|
213 |
return borderX1; |
|
214 | 214 |
} |
215 | 215 |
|
216 | 216 |
/** |
... | ... | |
218 | 218 |
* @return |
219 | 219 |
*/ |
220 | 220 |
public int getCanvasMinY() { |
221 |
return getVisibleRect().y + borderY1;
|
|
221 |
return borderY1; |
|
222 | 222 |
} |
223 | 223 |
|
224 | 224 |
/** |
... | ... | |
226 | 226 |
* @return |
227 | 227 |
*/ |
228 | 228 |
public int getCanvasMaxX() { |
229 |
return getVisibleRect().width - borderX2;
|
|
229 |
return getWidth() - borderX2;
|
|
230 | 230 |
} |
231 | 231 |
|
232 | 232 |
/** |
... | ... | |
234 | 234 |
* @return |
235 | 235 |
*/ |
236 | 236 |
public int getCanvasMaxY() { |
237 |
return getVisibleRect().height - borderY2;
|
|
237 |
return getHeight() - borderY2;
|
|
238 | 238 |
} |
239 | 239 |
|
240 | 240 |
/** |
... | ... | |
242 | 242 |
* @return |
243 | 243 |
*/ |
244 | 244 |
public int getCanvasWidth() { |
245 |
return getVisibleRect().width - (borderX1 + borderX2);
|
|
245 |
return getWidth() - (borderX1 + borderX2);
|
|
246 | 246 |
} |
247 | 247 |
|
248 | 248 |
/** |
... | ... | |
250 | 250 |
* @return |
251 | 251 |
*/ |
252 | 252 |
public int getCanvasHeight() { |
253 |
return getVisibleRect().height - (borderY1 + borderY2);
|
|
253 |
return getHeight() - (borderY1 + borderY2);
|
|
254 | 254 |
} |
255 | 255 |
|
256 | 256 |
/* |
Also available in: Unified diff