|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgistoolkit.features.Shape
gistoolkit.features.RasterShape
Allows Bitmaps to be displayed on the screen.
Field Summary |
Fields inherited from class gistoolkit.features.Shape |
EQUAL_LIMIT, LINEARRING, LINESTRING, MULTILINESTRING, MULTIPOINT, MULTIPOLYGON, myEnvelope, NULLSHAPE, POINT, POLYGON, RASTER |
Constructor Summary | |
RasterShape()
Creates new RastorShape |
|
RasterShape(Envelope inEnvelope,
java.awt.image.BufferedImage inImage)
Creates new RastorShape |
Method Summary | |
int |
add(double inX,
double inY)
Adds a point to this raster shape. |
boolean |
add(int inIndex,
double inX,
double inY)
Adds a point to this raster shape at the given index. |
java.lang.Object |
clone()
clone this shape |
int |
getClosestIndex(double inX,
double inY)
Get the index of the point within the shape nearest this location. |
double |
getDistanceToPoint(double inX,
double inY)
Get the distance from this shape to the given point. |
Envelope |
getEnvelope()
Return the envelope. |
java.awt.image.BufferedImage |
getImage()
return the image to the calling routine |
int |
getNumPoints()
Returns the number of points in the shape. |
Point |
getPoint(int inIndex)
Returns the point at the given index. |
Point[] |
getPoints()
Returns the points that comprise the object. |
java.lang.String |
getShapeType()
Return the type of shape this is |
java.lang.String |
getWKT()
Returns the OGIS Well Know Text Representation of this shape |
boolean |
intersects(Shape inShape)
Determines if the two shapes intersect |
boolean |
remove(int inIndex)
Removes the point at the given index. |
void |
setImage(Envelope inEnvelope,
java.awt.image.BufferedImage inImage)
Set the image to be used with this shape. |
void |
setPoint(int inIndex,
double inXCoordinate,
double inYCoordinate)
Sets the point at the given index to the given value. |
void |
translate(double inXDistance,
double inYDistance)
Translate the shape the given distance in the X and Y directions |
Methods inherited from class gistoolkit.features.Shape |
calculateEnvelope, contains, distance, getDistance, getDistanceToEnvelope, getDistanceToLine, getDistanceToLine, getLinesIntersect, linesIntersect, linesIntersect, pointOnLine, pointOnLine |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RasterShape()
public RasterShape(Envelope inEnvelope, java.awt.image.BufferedImage inImage)
Method Detail |
public java.lang.String getShapeType()
getShapeType
in class Shape
public Envelope getEnvelope()
getEnvelope
in class Shape
public int getNumPoints()
getNumPoints
in class Shape
public Point getPoint(int inIndex)
getPoint
in class Shape
public void setPoint(int inIndex, double inXCoordinate, double inYCoordinate)
setPoint
in class Shape
public int add(double inX, double inY)
add
in class Shape
public boolean add(int inIndex, double inX, double inY)
add
in class Shape
public boolean remove(int inIndex)
remove
in class Shape
public java.awt.image.BufferedImage getImage()
public void setImage(Envelope inEnvelope, java.awt.image.BufferedImage inImage)
public java.lang.Object clone()
clone
in class Shape
public Point[] getPoints()
Shape
getPoints
in class Shape
public java.lang.String getWKT()
Shape
getWKT
in class Shape
public void translate(double inXDistance, double inYDistance)
translate
in class Shape
public int getClosestIndex(double inX, double inY)
getClosestIndex
in class Shape
public double getDistanceToPoint(double inX, double inY)
getDistanceToPoint
in class Shape
public boolean intersects(Shape inShape)
intersects
in class Shape
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |