public abstract class AbstractCartographicSupport extends java.lang.Object implements CartographicSupport
CartographicSupport.CartographicContextPAPER, WORLD| Constructor and Description |
|---|
AbstractCartographicSupport() |
| Modifier and Type | Method and Description |
|---|---|
void |
copyCartographicContext(CartographicSupport element) |
CartographicSupport.CartographicContext |
getCartographicContext() |
int |
getReferenceSystem()
Returns the Reference System used to draw the elements of the image.
|
int |
getUnit()
Returns the unit used to express measures.
|
boolean |
isInPixels() |
void |
setCartographicContext(CartographicSupport.CartographicContext ctx) |
void |
setCartographicContext(double dpi) |
void |
setCartographicContext(PrintAttributes properties) |
void |
setCartographicContext(ViewPort viewPort,
double dpi,
Geometry geom) |
void |
setCartographicContext(ViewPort viewPort,
PrintAttributes properties,
Geometry geometry) |
void |
setReferenceSystem(int system)
Sets the Reference System that defines how this units have to be
handled.
|
void |
setUnit(int unitIndex)
Defines the unit used to express measures.
|
double |
toCartographicUnits(double value) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcopyCartographicContextpublic void setCartographicContext(ViewPort viewPort, double dpi, Geometry geom)
setCartographicContext in interface CartographicSupportpublic void setCartographicContext(ViewPort viewPort, PrintAttributes properties, Geometry geometry)
setCartographicContext in interface CartographicSupportpublic void setCartographicContext(double dpi)
setCartographicContext in interface CartographicSupportpublic void setCartographicContext(PrintAttributes properties)
setCartographicContext in interface CartographicSupportpublic CartographicSupport.CartographicContext getCartographicContext()
getCartographicContext in interface CartographicSupportpublic double toCartographicUnits(double value)
toCartographicUnits in interface CartographicSupportpublic void setCartographicContext(CartographicSupport.CartographicContext ctx)
setCartographicContext in interface CartographicSupportpublic void copyCartographicContext(CartographicSupport element)
copyCartographicContext in interface CartographicSupportpublic void setUnit(int unitIndex)
CartographicSupportsetUnit in interface CartographicSupportpublic int getUnit()
CartographicSupportgetUnit in interface CartographicSupportpublic int getReferenceSystem()
CartographicSupport
The elements have to be scaled to pixel when the image is bein drawn in
order to compose the map. The elements of the map may define its size in
other units than pixel.
CartographicSupport enables the elements to define the size in
measure units but these units may refer to different reference system. Two
kinds of Reference Systems are allowed in this context: CartographicSupport.WORLD,
and CartographicSupport.PAPER.
Depending on which Reference System is used the unit used by this element
refers to distances in the real world (then they are map's CRS-dependant)
or screen or printer output (then they are output DPI-dependant)
In case the unit used is pixel then the reference system does not
have any effect since the source unit is the same than the target unit.
getReferenceSystem in interface CartographicSupportpublic void setReferenceSystem(int system)
CartographicSupportsetReferenceSystem in interface CartographicSupportpublic boolean isInPixels()