Revision 21102 branches/v2_0_0_prep/libraries/libFMap/src/org/gvsig/fmap/mapcontext/layers/FLyrText.java
FLyrText.java | ||
---|---|---|
51 | 51 |
|
52 | 52 |
import javax.print.attribute.PrintRequestAttributeSet; |
53 | 53 |
|
54 |
import org.gvsig.fmap.core.shapes.FShape;
|
|
55 |
import org.gvsig.fmap.drivers.exceptions.ExpansionFileReadException;
|
|
54 |
import org.gvsig.data.ReadException;
|
|
55 |
import org.gvsig.fmap.geom.Geometry;
|
|
56 | 56 |
import org.gvsig.fmap.mapcontext.ViewPort; |
57 | 57 |
import org.gvsig.fmap.mapcontext.layers.operations.ClassifiableVectorial; |
58 | 58 |
import org.gvsig.fmap.mapcontext.layers.vectorial.FLyrVect; |
... | ... | |
60 | 60 |
import org.gvsig.fmap.mapcontext.rendering.legend.IVectorLegend; |
61 | 61 |
import org.gvsig.fmap.mapcontext.rendering.legend.events.listeners.LegendListener; |
62 | 62 |
|
63 |
import com.hardcode.gdbms.driver.exceptions.ReadDriverException; |
|
64 |
import com.hardcode.gdbms.engine.data.driver.DriverException; |
|
65 | 63 |
import com.iver.utiles.swing.threads.Cancellable; |
66 | 64 |
|
67 | 65 |
/** |
... | ... | |
369 | 367 |
* |
370 | 368 |
* @see com.iver.cit.gvsig.fmap.layers.FLayer#getFullExtent() |
371 | 369 |
*/ |
372 |
public Rectangle2D getFullExtent() throws ReadDriverException, ExpansionFileReadException {
|
|
370 |
public Rectangle2D getFullExtent() throws ReadException { |
|
373 | 371 |
return assocLyrVect.getFullExtent(); |
374 | 372 |
} |
375 | 373 |
|
... | ... | |
381 | 379 |
* com.iver.cit.gvsig.fmap.operations.Cancellable) |
382 | 380 |
*/ |
383 | 381 |
public void draw(BufferedImage image, Graphics2D g, ViewPort viewPort, |
384 |
Cancellable cancel, double scale) throws ReadDriverException {
|
|
382 |
Cancellable cancel, double scale) throws ReadException { |
|
385 | 383 |
// if (isVisible() && isWithinScale(scale)) { |
386 | 384 |
// drawLabels(image, g, viewPort, cancel); |
387 | 385 |
// } |
... | ... | |
395 | 393 |
* com.iver.cit.gvsig.fmap.operations.Cancellable) |
396 | 394 |
*/ |
397 | 395 |
public void print(Graphics2D g, ViewPort viewPort, Cancellable cancel, |
398 |
double scale, PrintRequestAttributeSet properties) throws ReadDriverException {
|
|
396 |
double scale, PrintRequestAttributeSet properties) throws ReadException { |
|
399 | 397 |
// if (isVisible() && isWithinScale(scale)) { |
400 | 398 |
// drawLabels(null, g, viewPort, cancel); |
401 | 399 |
// } |
... | ... | |
443 | 441 |
* @see com.iver.cit.gvsig.fmap.layers.layerOperations.Classifiable#getShapeType() |
444 | 442 |
*/ |
445 | 443 |
public int getShapeType() { |
446 |
return FShape.TEXT;
|
|
444 |
return Geometry.TYPES.TEXT;
|
|
447 | 445 |
} |
448 | 446 |
|
449 | 447 |
/** |
Also available in: Unified diff