Revision 47476 trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.symbology/org.gvsig.symbology.lib/org.gvsig.symbology.lib.impl/src/main/java/org/gvsig/symbology/fmap/mapcontext/rendering/symbol/style/BackgroundFileStyle.java

View differences:

BackgroundFileStyle.java
31 31
import java.net.MalformedURLException;
32 32
import java.net.URL;
33 33
import org.gvsig.expressionevaluator.SymbolTable;
34

  
35 34
import org.gvsig.fmap.mapcontext.MapContextLocator;
36 35
import org.gvsig.fmap.mapcontext.rendering.symbols.SymbolDrawingException;
37 36
import org.gvsig.fmap.mapcontext.rendering.symbols.styles.IBackgroundFileStyle;
......
75 74
     * @param f, File
76 75
     * @throws IOException
77 76
     */
77
    @Override
78 78
    public abstract void setSource(URL url) throws IOException;
79 79
    /**
80 80
     * Gets the bounding <code>Rectangle</code> of this <code>Rectangle</code>.
......
89 89
     * @see       #setBounds(int, int, int, int)
90 90
     * @since     JDK1.1
91 91
     */
92
    @Override
92 93
    public abstract Rectangle getBounds();
93 94

  
94 95
    /**
95 96
     * Obtains the source of the file which is used to create the background
96 97
     * @return
97 98
     */
99
    @Override
98 100
    public final URL getSource() {
99 101
        return source;
100 102
    }
101 103

  
104
    @Override
102 105
    public final void drawInsideRectangle(Graphics2D g, Rectangle r) throws SymbolDrawingException {
103 106
        drawInsideRectangle(g, r, true);
104 107
    }
105 108

  
106 109
    public abstract void drawInsideRectangle(Graphics2D g, Rectangle r, boolean keepAspectRatio) throws SymbolDrawingException ;
107 110

  
111
    @Override
108 112
    public Object clone() throws CloneNotSupportedException {
109 113
        return super.clone();
110 114
    }
......
119 123
    	try {
120 124
			symbolLibraryURL = new File(symbolLibraryPath).toURI().toURL();
121 125
		} catch (MalformedURLException e) {
122
			new RuntimeException(e);
126
			throw new RuntimeException(e);
123 127
		}
124 128
    	return symbolLibraryURL;
125 129
    }
......
141 145
    
142 146
    public static class RegisterPersistence implements Callable {
143 147

  
148
        @Override
144 149
        public Object call() throws Exception {
145 150
            PersistenceManager manager = ToolsLocator.getPersistenceManager();
146 151
            if( manager.getDefinition(BACKGROUND_FILE_STYLE_PERSISTENCE_DEFINITION_NAME)==null ) {

Also available in: Unified diff