|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GraphicScaledImage
Defines a common abstraction for implementations projected images defined by a lower-left (lowerCorner) point and an upper-right (upperCorner) point.
Field Summary |
---|
Fields inherited from interface Graphic |
---|
DEFAULT_AUTO_EDIT, DEFAULT_BLINK_PATTERN, DEFAULT_BLINKING, DEFAULT_DRAG_SELECTABLE, DEFAULT_MAX_SCALE, DEFAULT_MIN_SCALE, DEFAULT_PICKABLE, DEFAULT_SELECTED, DEFAULT_VISIBLE, DEFAULT_Z_ORDER |
Method Summary | |
---|---|
CoordinateReferenceSystem |
getCRS()
Returns the coordinate reference system that was used to create the image this object represents. |
int |
getIntensity()
Returns the intensity of the image, as an integer from 0 to 100. |
DirectPosition |
getLowerCorner()
Returns the DirectPosition for the lower-left position of the image. |
RenderedImage |
getScaledImage()
Returns the image represented by this GraphicScaledImage. |
int |
getTransparency()
Returns the transparency of the image, as an integer from 0 to 100. |
DirectPosition |
getUpperCorner()
Convenience menthod to return the DirectPosition for the upper-right position of the image. |
void |
setCRS(CoordinateReferenceSystem crs)
This sets the coordinate reference system that was used to create the image that this object represents. |
void |
setIntensity(int intensity)
Sets the intensity of the image, as an integer from 0 to 100. |
void |
setLowerCorner(DirectPosition coord)
Convenience menthod to set the DirectPosition for the lower-left position of the image. |
void |
setScaledImage(RenderedImage image)
Sets the image represented by this GraphicScaledImage. |
void |
setTransparency(int transparency)
Sets the transparency of the image, as an integer from 0 to 100. |
void |
setUpperCorner(DirectPosition coord)
Convenience menthod to set the DirectPosition for the upper-right position of the image. |
Method Detail |
---|
void setScaledImage(RenderedImage image)
image
- the image to be rendered.RenderedImage getScaledImage()
void setUpperCorner(DirectPosition coord)
coord
- the upper-right positon.DirectPosition getUpperCorner()
void setLowerCorner(DirectPosition coord)
coord
- the lower-left positon.DirectPosition getLowerCorner()
void setIntensity(int intensity)
intensity
- the intensity (brightness) of the image.int getIntensity()
void setTransparency(int transparency)
transparency
- the transparency of the image.int getTransparency()
void setCRS(CoordinateReferenceSystem crs)
Implementations of the GraphicScaledImage
interface are
not required to implement any particular projections (there are
in fact hundreds of EPSG codes). When the projection of the
GeoCanvas
differs from that contained in the SRS of
this object, the behavior of the image is undefined. An
implementation may choose to simply not show the image or to attempt
to stretch or warp the image to fit the current projection.
Precision issues may arise when a GeoCanvas
needs
to determine if a given SRS represents the same projection as it
is currently displaying. Implementations are encouraged to
store the SRS in an internal format that will allow projections whose
center points are less than a meter apart on the earth's surface
to be considered the same projection.
CoordinateReferenceSystem getCRS()
setCRS(org.opengis.referencing.crs.CoordinateReferenceSystem)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |