root / trunk / libraries / libGDBMS / src / main / java / com / hardcode / gdbms / engine / spatial / Geometry.java @ 10627
History | View | Annotate | Download (865 Bytes)
1 |
package com.hardcode.gdbms.engine.spatial; |
---|---|
2 |
|
3 |
import java.awt.Graphics2D; |
4 |
import java.awt.geom.AffineTransform; |
5 |
import java.awt.geom.Rectangle2D; |
6 |
|
7 |
import org.geotools.renderer.style.Style2D; |
8 |
|
9 |
|
10 |
/**
|
11 |
* Geometry used to simple operations such as draw
|
12 |
*/
|
13 |
public interface Geometry { |
14 |
/**
|
15 |
* Draws the geometry on the specified Graphics2D with
|
16 |
* the specified style
|
17 |
*
|
18 |
* @param g where to draw
|
19 |
* @param style symbol to draw
|
20 |
*/
|
21 |
public void draw(Graphics2D g, Style2D style); |
22 |
|
23 |
/**
|
24 |
* transforms the geometry
|
25 |
*
|
26 |
* @param mt transformation
|
27 |
*/
|
28 |
public void transform(AffineTransform mt); |
29 |
|
30 |
/**
|
31 |
* Returns true if the geometry intersects with the rectangular
|
32 |
* area defined in r
|
33 |
*
|
34 |
* @param r Rectangular area
|
35 |
*
|
36 |
* @return boolean
|
37 |
*/
|
38 |
public boolean intersects(Rectangle2D r); |
39 |
} |