Statistics
| Revision:

svn-gvsig-desktop / tags / v1_0_2_Build_904 / libraries / libCq CMS for java.old / src / org / cresques / px / PxObj.java @ 10724

History | View | Annotate | Download (1.81 KB)

1
/*
2
 * Cresques Mapping Suite. Graphic Library for constructing mapping applications.
3
 *
4
 * Copyright (C) 2004-5.
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., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
19
 *
20
 * For more information, contact:
21
 *
22
 * cresques@gmail.com
23
 */
24
package org.cresques.px;
25

    
26
import java.awt.Stroke;
27

    
28

    
29
public abstract class PxObj implements Drawable, Extent.Has {
30
    public Stroke stroke = null;
31
    /**
32
     * Extent completo del raster. Este contiene las coordenadas reales tanto
33
     * para un raster rotado como sin rotar. Este extent coincide con requestExtent
34
     * cuando el raster no tiene rotaci?n. 
35
     */
36
    protected Extent extent = null;
37
    /**
38
     * Este es el extent sobre el que se ajusta una petici?n para que esta no exceda el 
39
     * extent m?ximo del raster. Para un raster sin rotar ser? igual al extent
40
     * pero para un raster rotado ser? igual al extent del raster como si no 
41
     * tuviera rotaci?n. Esto ha de ser as? ya que la rotaci?n solo se hace sobre la
42
     * vista y las peticiones han de hacerse en coordenadas de la imagen sin shearing
43
     * aplicado.
44
     */
45
    protected Extent requestExtent = null;
46

    
47
    public Extent getExtent() {
48
        return extent;
49
    }
50
}