svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.compat.cdc / org.gvsig.fmap.geometry / org.gvsig.fmap.geometry.impl / src / main / java / org / gvsig / fmap / geom / primitive / FShape.java @ 40435
History | View | Annotate | Download (2.39 KB)
1 | 40435 | jjdelcerro | /* 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 | |||
23 | /*
|
||
24 | * AUTHORS (In addition to CIT):
|
||
25 | * 2009 {Iver T.I.} {Task}
|
||
26 | */
|
||
27 | |||
28 | package org.gvsig.fmap.geom.primitive; |
||
29 | |||
30 | import java.awt.Shape; |
||
31 | import java.awt.geom.AffineTransform; |
||
32 | import java.io.Serializable; |
||
33 | |||
34 | import org.cresques.cts.ICoordTrans; |
||
35 | 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 | *
|
||
41 | * @deprecated
|
||
42 | */
|
||
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 | |||
51 | /**
|
||
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 | } |