Modifier and Type | Method and Description |
---|---|
ViewPort |
MapContext.getViewPort()
Gets the
ViewPort associated to this map. |
Modifier and Type | Method and Description |
---|---|
MapContext |
MapContext.createNewFMap(ViewPort vp)
Returns a new
MapContext instance with the information of the vp argument, and the layers of this map. |
void |
MapContextDrawer.setViewPort(ViewPort viewPort) |
void |
MapContext.setViewPort(ViewPort viewPort)
Sets a
ViewPort with the drawing information
of this map. |
Constructor and Description |
---|
MapContext(FLayers fLayers,
ViewPort vp)
Creates a new map context with the layers and the drawing information defined in the view port arguments.
|
MapContext(ViewPort vp)
Creates a new map context with the drawing information defined in the view port argument, and
without layers.
|
Modifier and Type | Method and Description |
---|---|
int |
DefaultMapContextDrawer.DrawList.getLastLayerVisible(ViewPort viewPort) |
void |
DefaultMapContextDrawer.CachedImage.setPartialDrawnImage(java.awt.image.BufferedImage partialDrawnImage,
MapContext mapContext,
ViewPort viewPort,
int lastDrawnLayerPosition) |
void |
DefaultMapContextDrawer.setViewPort(ViewPort viewPort) |
void |
DefaultMapContextDrawer.CachedImage.updateVersions(MapContext mapContext,
ViewPort viewPort) |
Modifier and Type | Method and Description |
---|---|
ViewPort |
Tiling.getTileViewPort(ViewPort viewPort,
int tileNr) |
ViewPort |
LayerDrawEvent.getViewPort()
Returns the view port the information for drawing the layer in which this event has been produced.
|
Modifier and Type | Method and Description |
---|---|
void |
FLayers.beginDraw(java.awt.Graphics2D g,
ViewPort viewPort) |
void |
FLayers.draw(java.awt.image.BufferedImage image,
java.awt.Graphics2D g,
ViewPort viewPort,
org.gvsig.tools.task.Cancellable cancel,
double scale) |
void |
FLayer.draw(java.awt.image.BufferedImage image,
java.awt.Graphics2D g,
ViewPort viewPort,
org.gvsig.tools.task.Cancellable cancel,
double scale)
Draws the layer using a buffer.
|
void |
FLayers.endDraw(java.awt.Graphics2D g,
ViewPort viewPort) |
ViewPort |
Tiling.getTileViewPort(ViewPort viewPort,
int tileNr) |
void |
FLayers.print_old(java.awt.Graphics2D g,
ViewPort viewPort,
org.gvsig.tools.task.Cancellable cancel,
double scale,
org.gvsig.compat.print.PrintAttributes properties) |
ComposedLayer |
FLayers.print_old(java.awt.Graphics2D g,
ViewPort viewPort,
org.gvsig.tools.task.Cancellable cancel,
double scale,
org.gvsig.compat.print.PrintAttributes properties,
ComposedLayer group)
Checks all layers (each one as a sub-node of this node collection of layers) of this collection and draws their requested properties.
|
void |
FLayers.print(java.awt.Graphics2D g,
ViewPort viewPort,
org.gvsig.tools.task.Cancellable cancel,
double scale,
org.gvsig.compat.print.PrintAttributes properties) |
void |
FLayer.print(java.awt.Graphics2D g,
ViewPort viewPort,
org.gvsig.tools.task.Cancellable cancel,
double scale,
org.gvsig.compat.print.PrintAttributes properties)
Prints this layer according to some properties requested.
|
Constructor and Description |
---|
LayerDrawEvent(FLayer lyr,
java.awt.Graphics2D g,
ViewPort vp,
int eventType)
Creates a new layer draw event with all necessary information.
|
Modifier and Type | Method and Description |
---|---|
void |
LayerCollection.beginDraw(java.awt.Graphics2D g,
ViewPort viewPort) |
protected abstract void |
ComposedLayer.doDraw(java.awt.image.BufferedImage image,
java.awt.Graphics2D g,
ViewPort viewPort,
org.gvsig.tools.task.Cancellable cancel,
double scale)
Draws all the group in one pass.
|
protected abstract void |
ComposedLayer.doPrint(java.awt.Graphics2D g,
ViewPort viewPort,
org.gvsig.tools.task.Cancellable cancel,
double scale,
org.gvsig.compat.print.PrintAttributes properties)
Prints all the group in one pass.
|
void |
ComposedLayer.draw(java.awt.image.BufferedImage image,
java.awt.Graphics2D g,
ViewPort viewPort,
org.gvsig.tools.task.Cancellable cancel,
double scale)
Draws all the group in one pass
You have to implements the doDraw method.
|
void |
LayerCollection.endDraw(java.awt.Graphics2D g,
ViewPort viewPort) |
void |
ComposedLayer.print(java.awt.Graphics2D g,
ViewPort viewPort,
org.gvsig.tools.task.Cancellable cancel,
double scale,
org.gvsig.compat.print.PrintAttributes properties)
Prints all the group in one pass
You have to implements the doDraw method.
|
Modifier and Type | Method and Description |
---|---|
void |
FLyrVect.draw(java.awt.image.BufferedImage image,
java.awt.Graphics2D g,
ViewPort viewPort,
org.gvsig.tools.task.Cancellable cancel,
double scale)
Draws using IFeatureIterator.
|
void |
FLyrVect.drawLabels(java.awt.image.BufferedImage image,
java.awt.Graphics2D g,
ViewPort viewPort,
org.gvsig.tools.task.Cancellable cancel,
double scale,
double dpi) |
protected boolean |
FLyrVect.isOnePoint(java.awt.geom.AffineTransform graphicsTransform,
ViewPort viewPort,
double dpi,
CartographicSupport csSym,
org.gvsig.fmap.geom.Geometry geom,
int[] xyCoords) |
void |
FLyrVect.print(java.awt.Graphics2D g,
ViewPort viewPort,
org.gvsig.tools.task.Cancellable cancel,
double scale,
org.gvsig.compat.print.PrintAttributes properties) |
void |
FLyrVect.printLabels(java.awt.Graphics2D g,
ViewPort viewPort,
org.gvsig.tools.task.Cancellable cancel,
double scale,
org.gvsig.compat.print.PrintAttributes properties) |
Modifier and Type | Method and Description |
---|---|
void |
IVectorLegend.draw(java.awt.image.BufferedImage image,
java.awt.Graphics2D graphics2D,
ViewPort viewPort,
org.gvsig.tools.task.Cancellable cancel,
double scale,
java.util.Map queryParameters,
org.cresques.cts.ICoordTrans coordTrans,
org.gvsig.fmap.dal.feature.FeatureStore featureStore)
Draws the
FeatureStore data using this legend simbology. |
void |
IVectorLegend.draw(java.awt.image.BufferedImage image,
java.awt.Graphics2D graphics2D,
ViewPort viewPort,
org.gvsig.tools.task.Cancellable cancel,
double scale,
java.util.Map queryParameters,
org.cresques.cts.ICoordTrans coordTrans,
org.gvsig.fmap.dal.feature.FeatureStore featureStore,
org.gvsig.fmap.dal.feature.FeatureQuery featureQuery)
Draws the
FeatureStore data using this legend simbology. |
void |
IVectorLegend.print(java.awt.Graphics2D g,
ViewPort viewPort,
org.gvsig.tools.task.Cancellable cancel,
double scale,
java.util.Map queryParameters,
org.cresques.cts.ICoordTrans coordTrans,
org.gvsig.fmap.dal.feature.FeatureStore featureStore,
org.gvsig.fmap.dal.feature.FeatureQuery featureQuery,
org.gvsig.compat.print.PrintAttributes properties) |
void |
IVectorLegend.print(java.awt.Graphics2D g,
ViewPort viewPort,
org.gvsig.tools.task.Cancellable cancel,
double scale,
java.util.Map queryParameters,
org.cresques.cts.ICoordTrans coordTrans,
org.gvsig.fmap.dal.feature.FeatureStore featureStore,
org.gvsig.compat.print.PrintAttributes properties) |
Modifier and Type | Method and Description |
---|---|
void |
ILabelingStrategy.draw(java.awt.image.BufferedImage mapImage,
java.awt.Graphics2D mapGraphics,
ViewPort viewPort,
org.gvsig.tools.task.Cancellable cancel,
double dpi)
Causes the labels to be drawn.
|
void |
ILabelable.drawLabels(java.awt.image.BufferedImage image,
java.awt.Graphics2D g,
ViewPort viewPort,
org.gvsig.tools.task.Cancellable cancel,
double scale,
double dpi)
Causes the labels to be drawn.
|
double |
ILabelClass.getCartographicSize(ViewPort viewPort,
double dpi,
org.gvsig.fmap.geom.Geometry geom) |
org.gvsig.fmap.dal.feature.FeatureSet |
ILabelingMethod.getFeatureIteratorByLabelClass(FLyrVect layer,
ILabelClass lc,
ViewPort viewPort,
java.lang.String[] usedFields) |
void |
ILabelingStrategy.print(java.awt.Graphics2D g,
ViewPort viewPort,
org.gvsig.tools.task.Cancellable cancel,
org.gvsig.compat.print.PrintAttributes properties)
Applies the printer properties to the rendering process to match its attributes.
|
void |
ILabelable.printLabels(java.awt.Graphics2D g,
ViewPort viewPort,
org.gvsig.tools.task.Cancellable cancel,
double scale,
org.gvsig.compat.print.PrintAttributes properties) |
double |
ILabelClass.toCartographicSize(ViewPort viewPort,
double dpi,
org.gvsig.fmap.geom.Geometry geom) |
Modifier and Type | Method and Description |
---|---|
double |
CartographicSupport.getCartographicSize(ViewPort viewPort,
double dpi,
org.gvsig.fmap.geom.Geometry geom)
Gets the size (in pixels) of the cartographic element according
to the current rendering context (output dpi, map scale, map units) and the
symbol cartgraphic settings (unit, size, and unit reference system).
|
void |
ISymbol.getPixExtentPlus(org.gvsig.fmap.geom.Geometry geom,
float[] distances,
ViewPort viewPort,
int dpi)
Returns the distance between the shape's bounding box and the
symbol-that-represents-this-shape's bounding box in a two-length-float
array passed as parameter.
|
boolean |
ISymbol.isOneDotOrPixel(org.gvsig.fmap.geom.Geometry geom,
double[] positionOfDotOrPixel,
ViewPort viewPort,
int dpi)
Informs that the geometry will be represented with that symbol in just one pixel or dot
|
double |
CartographicSupport.toCartographicSize(ViewPort viewPort,
double dpi,
org.gvsig.fmap.geom.Geometry geom)
Computes and sets the size (in pixels) of the cartographic element according
to the current rendering context (output dpi, map scale, map units) and the
symbol cartgraphic settings (unit, size, and unit reference system).
|
Copyright © 2013 gvSIG Association. All rights reserved.