root / branches / v2_0_0_prep / libraries / libFMap_geometries / src / org / gvsig / fmap / geom / primitive / FShape.java @ 38597
History | View | Annotate | Download (2.39 KB)
1 | 28990 | jpiera | /* gvSIG. Geographic Information System of the Valencian Government
|
---|---|---|---|
2 | *
|
||
3 | * Copyright (C) 2007-2008 Infrastructures and Transports Department
|
||
4 | * of the Valencian Government (CIT)
|
||
5 | *
|
||
6 | * This program is free software; you can redistribute it and/or
|
||
7 | * modify it under the terms of the GNU General Public License
|
||
8 | * as published by the Free Software Foundation; either version 2
|
||
9 | * of the License, or (at your option) any later version.
|
||
10 | *
|
||
11 | * This program is distributed in the hope that it will be useful,
|
||
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
14 | * GNU General Public License for more details.
|
||
15 | *
|
||
16 | * You should have received a copy of the GNU General Public License
|
||
17 | * along with this program; if not, write to the Free Software
|
||
18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
||
19 | * MA 02110-1301, USA.
|
||
20 | *
|
||
21 | */
|
||
22 | 20761 | jmvivo | |
23 | 28990 | jpiera | /*
|
24 | * AUTHORS (In addition to CIT):
|
||
25 | * 2009 {Iver T.I.} {Task}
|
||
26 | */
|
||
27 | 20761 | jmvivo | |
28 | 28990 | jpiera | package org.gvsig.fmap.geom.primitive; |
29 | |||
30 | 20761 | jmvivo | import java.awt.Shape; |
31 | import java.awt.geom.AffineTransform; |
||
32 | import java.io.Serializable; |
||
33 | |||
34 | 21870 | vcaballero | import org.cresques.cts.ICoordTrans; |
35 | 20761 | jmvivo | import org.gvsig.fmap.geom.handler.Handler; |
36 | |||
37 | /**
|
||
38 | * <p>The interface <code>FShape</code> extends <code>Shape</code> adding shape types, and allowing
|
||
39 | * to work with it as a geometry.</p>
|
||
40 | 20861 | jiyarza | *
|
41 | * @deprecated
|
||
42 | 20761 | jmvivo | */
|
43 | public interface FShape extends Shape, Serializable { |
||
44 | /**
|
||
45 | * Gets the geometry type of this shape.
|
||
46 | *
|
||
47 | * @return int the geometry type of this shape.
|
||
48 | */
|
||
49 | public int getShapeType(); |
||
50 | 28990 | jpiera | |
51 | 20761 | jmvivo | /**
|
52 | * Creates and returns a shape equal and independent of this one.
|
||
53 | *
|
||
54 | * @return the new shape.
|
||
55 | */
|
||
56 | public FShape cloneFShape();
|
||
57 | /**
|
||
58 | * Re-projects this shape using transformation coordinates.
|
||
59 | *
|
||
60 | * @param ct the transformation coordinates
|
||
61 | */
|
||
62 | public void reProject(ICoordTrans ct); |
||
63 | |||
64 | /**
|
||
65 | * Returns the handlers they utilized to stretch the geometries.
|
||
66 | *
|
||
67 | * @return Handlers the handlers used to stretch the geometries
|
||
68 | */
|
||
69 | public Handler[] getStretchingHandlers(); |
||
70 | |||
71 | /**
|
||
72 | * Returns the handlers used to select the geometries.
|
||
73 | *
|
||
74 | * @return Handlers the handlers used to select the geometries
|
||
75 | */
|
||
76 | public Handler[] getSelectHandlers(); |
||
77 | /**
|
||
78 | * Executes a 2D transformation on this shape, using six parameters.
|
||
79 | *
|
||
80 | * @param at object that allows execute the affine transformation
|
||
81 | *
|
||
82 | * @see AffineTransform
|
||
83 | */
|
||
84 | public void transform(AffineTransform at); |
||
85 | } |