Index: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.main/pom.xml
===================================================================
--- org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.main/pom.xml	(revision 0)
+++ org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.main/pom.xml	(revision 147)
@@ -0,0 +1,155 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+	<modelVersion>4.0.0</modelVersion>
+	<artifactId>org.gvsig.complexlegend.main</artifactId>
+	<packaging>jar</packaging>
+	<name>org.gvsig.complexlegend.main</name>
+	<parent>
+		<groupId>org.gvsig</groupId>
+		<artifactId>org.gvsig.complexlegend</artifactId>
+		<version>1.0.3</version>
+	</parent>
+	
+	
+	<dependencies>
+		<dependency>
+			<groupId>org.gvsig</groupId>
+			<artifactId>org.gvsig.complexlegend.lib.api</artifactId>
+			<scope>compile</scope>
+		</dependency>
+		<dependency>
+			<groupId>org.gvsig</groupId>
+			<artifactId>org.gvsig.complexlegend.lib.impl</artifactId>
+			<scope>runtime</scope>
+		</dependency>
+		<dependency>
+			<groupId>org.gvsig</groupId>
+			<artifactId>org.gvsig.complexlegend.swing.api</artifactId>
+			<scope>compile</scope>
+		</dependency>
+		<dependency>
+			<groupId>org.gvsig</groupId>
+			<artifactId>org.gvsig.complexlegend.swing.impl</artifactId>
+			<scope>runtime</scope>
+		</dependency>
+		<dependency>
+			<groupId>org.gvsig</groupId>
+			<artifactId>org.gvsig.tools.lib</artifactId>
+			<scope>compile</scope>
+		</dependency>
+		<dependency>
+			<groupId>org.gvsig</groupId>
+			<artifactId>org.gvsig.tools.dynform.api</artifactId>
+			<scope>compile</scope>
+		</dependency>
+		<dependency>
+			<groupId>org.gvsig</groupId>
+			<artifactId>org.gvsig.tools.dynform.impl</artifactId>
+			<scope>runtime</scope>
+		</dependency>
+		
+		<dependency>
+			<groupId>org.gvsig</groupId>
+			<artifactId>org.gvsig.metadata.lib.basic.api</artifactId>
+			<scope>compile</scope>
+		</dependency>
+		<dependency>
+			<groupId>org.gvsig</groupId>
+			<artifactId>org.gvsig.tools.swing.api</artifactId>
+			<type>jar</type>
+			<scope>compile</scope>
+		</dependency>
+		<dependency>
+			<groupId>org.gvsig</groupId>
+			<artifactId>org.gvsig.fmap.control</artifactId>
+			<scope>compile</scope>
+		</dependency>
+		<dependency>
+			<groupId>org.gvsig</groupId>
+			<artifactId>org.gvsig.fmap.dal.api</artifactId>
+			<scope>compile</scope>
+		</dependency>
+		<dependency>
+			<groupId>org.gvsig</groupId>
+			<artifactId>org.gvsig.fmap.dal.spi</artifactId>
+			<scope>compile</scope>
+		</dependency>
+		<dependency>
+			<groupId>org.gvsig</groupId>
+			<artifactId>org.gvsig.fmap.geometry.api</artifactId>
+			<scope>compile</scope>
+		</dependency>
+		<dependency>
+			<groupId>org.gvsig</groupId>
+			<artifactId>org.gvsig.fmap.mapcontext.api</artifactId>
+			<scope>compile</scope>
+		</dependency>
+
+
+		<dependency>
+			<groupId>org.gvsig</groupId>
+			<artifactId>org.gvsig.metadata.lib.basic.impl</artifactId>
+			<scope>runtime</scope>
+		</dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.fmap.geometry.operation</artifactId>
+			<scope>runtime</scope>
+        </dependency>
+		<dependency>
+			<groupId>org.gvsig</groupId>
+			<artifactId>org.gvsig.fmap.mapcontext.impl</artifactId>
+			<scope>runtime</scope>
+		</dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.symbology.lib.impl</artifactId>
+			<scope>runtime</scope>
+        </dependency>
+		<dependency>
+			<groupId>org.gvsig</groupId>
+			<artifactId>org.gvsig.fmap.dal.impl</artifactId>
+			<scope>runtime</scope>
+		</dependency>
+		<dependency>
+			<groupId>org.gvsig</groupId>
+			<artifactId>org.gvsig.fmap.dal.spi</artifactId>
+			<scope>runtime</scope>
+		</dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.fmap.dal.file.shp</artifactId>
+			<scope>runtime</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.fmap.dal.file.dbf</artifactId>
+			<scope>runtime</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.fmap.dal.file.lib</artifactId>
+			<scope>runtime</scope>
+        </dependency>
+        <dependency>
+             <groupId>org.gvsig</groupId>
+             <artifactId>org.gvsig.timesupport.lib.api</artifactId>
+			<scope>runtime</scope>
+         </dependency>
+         <dependency>
+             <groupId>org.gvsig</groupId>
+             <artifactId>org.gvsig.timesupport.lib.impl</artifactId>
+			<scope>runtime</scope>
+         </dependency>
+         <dependency>
+             <groupId>org.gvsig</groupId>
+             <artifactId>org.gvsig.tools.evaluator.sqljep</artifactId>
+			<scope>runtime</scope>
+         </dependency>
+         <dependency>
+             <groupId>org.gvsig</groupId>
+             <artifactId>org.gvsig.proj.lib.proj4j</artifactId>
+			<scope>runtime</scope>
+		</dependency>
+	</dependencies>
+</project>
\ No newline at end of file

Property changes on: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.main/pom.xml
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.main/src/main/resources/log4j.xml
===================================================================
--- org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.main/src/main/resources/log4j.xml	(revision 0)
+++ org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.main/src/main/resources/log4j.xml	(revision 147)
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
+
+<!-- 
+Log4J configuration file for unit tests execution.
+ -->
+<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
+
+	<!-- Appender configuration to show logging messages through the console -->
+	<appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
+		<layout class="org.apache.log4j.PatternLayout">
+			<param name="ConversionPattern" value="%d{HH:mm:ss,SSS} %-5p [%c{2}.%M()]\n  %m%n" />
+		</layout>
+	</appender>
+
+	<!-- 
+	Activate logging messages of DEBUG level of higher only for the
+	org.gvsig.tools packages.
+	You can put full classes names or packages instead, to configure
+	logging for all the classes and subpackages of the package.
+	-->
+	<category name="org.gvsig.tools">
+		<priority value="DEBUG" />
+	</category>
+	<category name="org.gvsig.construc">
+		<priority value="DEBUG" />
+	</category>
+
+	<!-- 
+	By default, show only logging messages of INFO level or higher, 
+	through the previously configured CONSOLE appender. 
+	-->
+	<root>
+		<priority value="INFO" />
+		<appender-ref ref="CONSOLE" />
+	</root>
+</log4j:configuration>
\ No newline at end of file

Property changes on: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.main/src/main/resources/log4j.xml
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.main/src/main/resources/README.txt
===================================================================
--- org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.main/src/main/resources/README.txt	(revision 0)
+++ org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.main/src/main/resources/README.txt	(revision 147)
@@ -0,0 +1,8 @@
+Put into this folder the resources needed by your classes.
+
+This folder is added to the classpath, so you can load any resources 
+through the ClassLoader.
+
+By default, in this folder you can find an example of log4j configuration,
+prepared to log messages through the console, so logging works when you
+run your classes.
\ No newline at end of file

Property changes on: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.main/src/main/resources/README.txt
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.main/src/main/java/org/gvsig/complexlegend/main/package.html
===================================================================
--- org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.main/src/main/java/org/gvsig/complexlegend/main/package.html	(revision 0)
+++ org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.main/src/main/java/org/gvsig/complexlegend/main/package.html	(revision 147)
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+<title>org.gvsig.construc package documentation</title>
+</head>
+<body>
+
+	<p>Construc library testing and demo application.</p>
+
+</body>
+</html>
\ No newline at end of file

Property changes on: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.main/src/main/java/org/gvsig/complexlegend/main/package.html
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.main/src/main/java/org/gvsig/complexlegend/main/Main.java
===================================================================
--- org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.main/src/main/java/org/gvsig/complexlegend/main/Main.java	(revision 0)
+++ org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.main/src/main/java/org/gvsig/complexlegend/main/Main.java	(revision 147)
@@ -0,0 +1,81 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ *
+ */
+package org.gvsig.complexlegend.main;
+
+import java.awt.BorderLayout;
+import java.awt.Dimension;
+
+import javax.swing.JFrame;
+import javax.swing.JPanel;
+import javax.swing.UIManager;
+import javax.swing.UnsupportedLookAndFeelException;
+import javax.swing.WindowConstants;
+
+import org.gvsig.fmap.mapcontext.exceptions.LoadLayerException;
+import org.gvsig.fmap.mapcontrol.MapControlCreationException;
+import org.gvsig.tools.library.impl.DefaultLibrariesInitializer;
+import org.gvsig.tools.locator.LocatorException;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import com.jgoodies.looks.plastic.PlasticLookAndFeel;
+import com.jgoodies.looks.plastic.PlasticXPLookAndFeel;
+
+/**
+ * Main executable class for testing the Chart library.
+ * 
+ * @author gvSIG Team
+ * @version $Id$
+ */
+public class Main {
+
+	private static final Logger LOG = LoggerFactory.getLogger(Main.class);
+
+	public static void main(String args[]) throws MapControlCreationException,
+			LocatorException, LoadLayerException, UnsupportedLookAndFeelException {
+		new DefaultLibrariesInitializer().fullInitialize();
+		
+		PlasticLookAndFeel laf = new PlasticXPLookAndFeel();
+		UIManager.setLookAndFeel(laf);
+		
+		Main main = new Main();
+		main.show();
+	}
+
+
+	@SuppressWarnings("serial")
+    public void show() throws MapControlCreationException, LocatorException, LoadLayerException {
+        JFrame frame = new JFrame("Example APP");
+        frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
+        
+        JPanel content = new JPanel();
+        content.setLayout(new BorderLayout());
+        
+        frame.add(content);
+        frame.setPreferredSize(new Dimension(510, 560));
+
+        // Display the window.
+        frame.pack();
+        frame.setVisible(true);
+    }
+
+}

Property changes on: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.main/src/main/java/org/gvsig/complexlegend/main/Main.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain


Property changes on: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.main
___________________________________________________________________
Added: svn:ignore
   + .project

target

.settings

.classpath


Index: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.lib/org.gvsig.complexlegend.lib.api/src/main/resources/META-INF/services/org.gvsig.tools.library.Library
===================================================================
--- org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.lib/org.gvsig.complexlegend.lib.api/src/main/resources/META-INF/services/org.gvsig.tools.library.Library	(revision 0)
+++ org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.lib/org.gvsig.complexlegend.lib.api/src/main/resources/META-INF/services/org.gvsig.tools.library.Library	(revision 147)
@@ -0,0 +1 @@
+org.gvsig.complexlegend.ComplexLegendLibrary
\ No newline at end of file
Index: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.lib/org.gvsig.complexlegend.lib.api/src/main/java/package.html
===================================================================
--- org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.lib/org.gvsig.complexlegend.lib.api/src/main/java/package.html	(revision 0)
+++ org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.lib/org.gvsig.complexlegend.lib.api/src/main/java/package.html	(revision 147)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+<title>org.gvsig.landregistryviewer package documentation</title>
+</head>
+<body>
+
+	<p>LandRegistryViewer library API.</p>
+	
+	<p>
+	It allows to get new LandRegistryViewer and get their text.
+	</p>
+
+</body>
+</html>
\ No newline at end of file

Property changes on: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.lib/org.gvsig.complexlegend.lib.api/src/main/java/package.html
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.lib/org.gvsig.complexlegend.lib.api/src/main/java/org/gvsig/complexlegend/VectorComplexLegend.java
===================================================================
--- org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.lib/org.gvsig.complexlegend.lib.api/src/main/java/org/gvsig/complexlegend/VectorComplexLegend.java	(revision 0)
+++ org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.lib/org.gvsig.complexlegend.lib.api/src/main/java/org/gvsig/complexlegend/VectorComplexLegend.java	(revision 147)
@@ -0,0 +1,17 @@
+package org.gvsig.complexlegend;
+
+import java.util.List;
+
+import org.gvsig.fmap.mapcontext.rendering.legend.IClassifiedLegend;
+import org.gvsig.fmap.mapcontext.rendering.legend.IVectorLegend;
+
+public interface VectorComplexLegend extends IVectorLegend, IClassifiedLegend{
+
+	public List<ComplexLegendItem> getLegends();
+	
+	public boolean add(ComplexLegendItem legend);
+	public boolean remove(ComplexLegendItem legend);
+	
+	public boolean isOverlapped(ComplexLegendItem legend);
+	public ComplexLegendItem getLegend(double scale);
+}

Property changes on: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.lib/org.gvsig.complexlegend.lib.api/src/main/java/org/gvsig/complexlegend/VectorComplexLegend.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.lib/org.gvsig.complexlegend.lib.api/src/main/java/org/gvsig/complexlegend/ComplexLegendLibrary.java
===================================================================
--- org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.lib/org.gvsig.complexlegend.lib.api/src/main/java/org/gvsig/complexlegend/ComplexLegendLibrary.java	(revision 0)
+++ org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.lib/org.gvsig.complexlegend.lib.api/src/main/java/org/gvsig/complexlegend/ComplexLegendLibrary.java	(revision 147)
@@ -0,0 +1,59 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ *
+ */
+package org.gvsig.complexlegend;
+
+import org.gvsig.fmap.dal.DALLibrary;
+import org.gvsig.fmap.geom.GeometryLibrary;
+import org.gvsig.symbology.SymbologyLibrary;
+import org.gvsig.tools.ToolsLibrary;
+import org.gvsig.tools.library.AbstractLibrary;
+import org.gvsig.tools.library.LibraryException;
+
+
+/**
+ * Library for API initialization and configuration.
+ * 
+ * @author gvSIG team
+ * @version $Id$
+ */
+public class ComplexLegendLibrary extends AbstractLibrary {
+
+    @Override
+	public void doRegistration() {
+		registerAsAPI(ComplexLegendLibrary.class);
+		this.require(ToolsLibrary.class);
+	    this.require(GeometryLibrary.class);
+	    this.require(SymbologyLibrary.class);
+	}
+	
+	
+    @Override
+    protected void doInitialize() throws LibraryException {
+        // Do nothing
+    }
+
+    @Override
+    protected void doPostInitialize() throws LibraryException {
+    	 
+    }
+
+}

Property changes on: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.lib/org.gvsig.complexlegend.lib.api/src/main/java/org/gvsig/complexlegend/ComplexLegendLibrary.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.lib/org.gvsig.complexlegend.lib.api/src/main/java/org/gvsig/complexlegend/ComplexLegendItem.java
===================================================================
--- org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.lib/org.gvsig.complexlegend.lib.api/src/main/java/org/gvsig/complexlegend/ComplexLegendItem.java	(revision 0)
+++ org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.lib/org.gvsig.complexlegend.lib.api/src/main/java/org/gvsig/complexlegend/ComplexLegendItem.java	(revision 147)
@@ -0,0 +1,17 @@
+package org.gvsig.complexlegend;
+
+import org.gvsig.fmap.mapcontext.rendering.legend.ILegend;
+
+public interface ComplexLegendItem {
+	
+	public ILegend getLegend();
+	public void setLegend(ILegend legend);
+	
+	public double getMaxScale();
+	public void setMaxScale(double maxScale);
+	
+	public double getMinScale();
+	public void setMinScale(double maxScale);
+	
+	public String toString();
+}

Property changes on: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.lib/org.gvsig.complexlegend.lib.api/src/main/java/org/gvsig/complexlegend/ComplexLegendItem.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.lib/org.gvsig.complexlegend.lib.api/src/main/java/org/gvsig/complexlabel/ComplexLabelClass.java
===================================================================
--- org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.lib/org.gvsig.complexlegend.lib.api/src/main/java/org/gvsig/complexlabel/ComplexLabelClass.java	(revision 0)
+++ org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.lib/org.gvsig.complexlegend.lib.api/src/main/java/org/gvsig/complexlabel/ComplexLabelClass.java	(revision 147)
@@ -0,0 +1,15 @@
+package org.gvsig.complexlabel;
+
+import org.gvsig.fmap.mapcontext.rendering.legend.styling.ILabelClass;
+
+public interface ComplexLabelClass extends ILabelClass{
+
+	public double getMinScale();
+	
+	public double getMaxScale();
+	
+	public void setMinScale(double scale);
+	
+	public void setMaxScale(double scale);
+	
+}

Property changes on: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.lib/org.gvsig.complexlegend.lib.api/src/main/java/org/gvsig/complexlabel/ComplexLabelClass.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.lib/org.gvsig.complexlegend.lib.api/src/test/resources/README.txt
===================================================================
--- org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.lib/org.gvsig.complexlegend.lib.api/src/test/resources/README.txt	(revision 0)
+++ org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.lib/org.gvsig.complexlegend.lib.api/src/test/resources/README.txt	(revision 147)
@@ -0,0 +1,8 @@
+Put into this folder the resources needed by your classes.
+
+This folder is added to the classpath, so you can load any resources 
+through the ClassLoader.
+
+By default, in this folder you can find an example of log4j configuration,
+prepared to log messages through the console, so logging works when you
+run your classes.
\ No newline at end of file

Property changes on: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.lib/org.gvsig.complexlegend.lib.api/src/test/resources/README.txt
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.lib/org.gvsig.complexlegend.lib.api/src/test/resources/log4j.xml
===================================================================
--- org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.lib/org.gvsig.complexlegend.lib.api/src/test/resources/log4j.xml	(revision 0)
+++ org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.lib/org.gvsig.complexlegend.lib.api/src/test/resources/log4j.xml	(revision 147)
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
+
+<!-- 
+Log4J configuration file for unit tests execution.
+ -->
+<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
+
+	<!-- Appender configuration to show logging messages through the console -->
+	<appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
+		<layout class="org.apache.log4j.PatternLayout">
+			<param name="ConversionPattern" value="%d{HH:mm:ss,SSS} %-5p [%c{2}.%M()]\n  %m%n" />
+		</layout>
+	</appender>
+
+	<!-- 
+	Activate logging messages of DEBUG level of higher only for the
+	org.gvsig.tools packages.
+	You can put full classes names or packages instead, to configure
+	logging for all the classes and subpackages of the package.
+	-->
+	<category name="org.gvsig.tools">
+		<priority value="DEBUG" />
+	</category>
+	<category name="org.gvsig.construc">
+		<priority value="DEBUG" />
+	</category>
+
+	<!-- 
+	By default, show only logging messages of INFO level or higher, 
+	through the previously configured CONSOLE appender. 
+	-->
+	<root>
+		<priority value="INFO" />
+		<appender-ref ref="CONSOLE" />
+	</root>
+</log4j:configuration>
\ No newline at end of file

Property changes on: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.lib/org.gvsig.complexlegend.lib.api/src/test/resources/log4j.xml
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.lib/org.gvsig.complexlegend.lib.api/pom.xml
===================================================================
--- org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.lib/org.gvsig.complexlegend.lib.api/pom.xml	(revision 0)
+++ org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.lib/org.gvsig.complexlegend.lib.api/pom.xml	(revision 147)
@@ -0,0 +1,53 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+	<modelVersion>4.0.0</modelVersion>
+	<artifactId>org.gvsig.complexlegend.lib.api</artifactId>
+	<packaging>jar</packaging>
+	<name>org.gvsig.complexlegend.lib.api</name>
+	<parent>
+		<groupId>org.gvsig</groupId>
+		<artifactId>org.gvsig.complexlegend.lib</artifactId>
+		<version>1.0.3</version>
+	</parent>
+	<dependencies>
+		<dependency>
+			<groupId>org.gvsig</groupId>
+			<artifactId>org.gvsig.fmap.geometry.api</artifactId>
+			<scope>compile</scope>
+		</dependency>
+		<dependency>
+			<groupId>org.gvsig</groupId>
+			<artifactId>org.gvsig.fmap.dal.api</artifactId>
+			<scope>compile</scope>
+		</dependency>
+		<dependency>
+			<groupId>org.gvsig</groupId>
+			<artifactId>org.gvsig.fmap.mapcontext.api</artifactId>
+            <scope>compile</scope>
+		</dependency>
+		<dependency>
+			<groupId>org.gvsig</groupId>
+			<artifactId>org.gvsig.symbology.lib.api</artifactId>
+            <scope>compile</scope>
+		</dependency>
+	</dependencies>
+	<build>
+		<plugins>
+			<plugin>
+				<groupId>org.apache.maven.plugins</groupId>
+				<artifactId>maven-jar-plugin</artifactId>
+				<configuration>
+				</configuration>
+				<executions>
+					<!-- Generates a jar file only with the test classes -->
+					<execution>
+						<goals>
+							<goal>test-jar</goal>
+						</goals>
+					</execution>
+				</executions>
+			</plugin>
+		</plugins>
+	</build>
+
+</project>
\ No newline at end of file

Property changes on: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.lib/org.gvsig.complexlegend.lib.api/pom.xml
___________________________________________________________________
Added: svn:mime-type
   + text/plain


Property changes on: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.lib/org.gvsig.complexlegend.lib.api
___________________________________________________________________
Added: svn:ignore
   + .settings

target

.project

.classpath


Index: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.lib/pom.xml
===================================================================
--- org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.lib/pom.xml	(revision 0)
+++ org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.lib/pom.xml	(revision 147)
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+
+	<modelVersion>4.0.0</modelVersion>
+	<artifactId>org.gvsig.complexlegend.lib</artifactId>
+	<packaging>pom</packaging>
+	<name>org.gvsig.complexlegend.lib</name>
+	<parent>
+		<groupId>org.gvsig</groupId>
+		<artifactId>org.gvsig.complexlegend</artifactId>
+		<version>1.0.3</version>
+	</parent>
+	<dependencies>
+	</dependencies>
+	<modules>
+		<module>org.gvsig.complexlegend.lib.api</module>
+		<module>org.gvsig.complexlegend.lib.impl</module>
+	</modules>
+</project>

Property changes on: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.lib/pom.xml
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.lib/org.gvsig.complexlegend.lib.impl/src/test/resources/log4j.xml
===================================================================
--- org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.lib/org.gvsig.complexlegend.lib.impl/src/test/resources/log4j.xml	(revision 0)
+++ org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.lib/org.gvsig.complexlegend.lib.impl/src/test/resources/log4j.xml	(revision 147)
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
+
+<!-- 
+Log4J configuration file for unit tests execution.
+ -->
+<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
+
+	<!-- Appender configuration to show logging messages through the console -->
+	<appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
+		<layout class="org.apache.log4j.PatternLayout">
+			<param name="ConversionPattern" value="%d{HH:mm:ss,SSS} %-5p [%c{2}.%M()]\n  %m%n" />
+		</layout>
+	</appender>
+
+	<!-- 
+	Activate logging messages of DEBUG level of higher only for the
+	org.gvsig.tools packages.
+	You can put full classes names or packages instead, to configure
+	logging for all the classes and subpackages of the package.
+	-->
+	<category name="org.gvsig.tools">
+		<priority value="DEBUG" />
+	</category>
+	<category name="org.gvsig.chart">
+		<priority value="DEBUG" />
+	</category>
+
+	<!-- 
+	By default, show only logging messages of INFO level or higher, 
+	through the previously configured CONSOLE appender. 
+	-->
+	<root>
+		<priority value="DEBUG" />
+		<appender-ref ref="CONSOLE" />
+	</root>
+</log4j:configuration>
\ No newline at end of file

Property changes on: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.lib/org.gvsig.complexlegend.lib.impl/src/test/resources/log4j.xml
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.lib/org.gvsig.complexlegend.lib.impl/src/test/resources/README.txt
===================================================================
--- org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.lib/org.gvsig.complexlegend.lib.impl/src/test/resources/README.txt	(revision 0)
+++ org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.lib/org.gvsig.complexlegend.lib.impl/src/test/resources/README.txt	(revision 147)
@@ -0,0 +1,8 @@
+Put into this folder the resources needed by your test classes.
+
+This folder is added to the Tests classpath, so you can load any resources 
+through the ClassLoader.
+
+By default, in this folder you can find an example of log4j configuration,
+prepared to log messages through the console, so logging works when you
+run your tests classes.
\ No newline at end of file

Property changes on: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.lib/org.gvsig.complexlegend.lib.impl/src/test/resources/README.txt
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.lib/org.gvsig.complexlegend.lib.impl/src/main/java/package.html
===================================================================
--- org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.lib/org.gvsig.complexlegend.lib.impl/src/main/java/package.html	(revision 0)
+++ org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.lib/org.gvsig.complexlegend.lib.impl/src/main/java/package.html	(revision 147)
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+<title>org.gvsig.landregistryviewer package documentation</title>
+</head>
+<body>
+
+	<p>LandRegistryViewer library API default implementation.</p>
+
+</body>
+</html>
\ No newline at end of file

Property changes on: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.lib/org.gvsig.complexlegend.lib.impl/src/main/java/package.html
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.lib/org.gvsig.complexlegend.lib.impl/src/main/java/org/gvsig/complexlegend/impl/ComplexLegendUtils.java
===================================================================
--- org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.lib/org.gvsig.complexlegend.lib.impl/src/main/java/org/gvsig/complexlegend/impl/ComplexLegendUtils.java	(revision 0)
+++ org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.lib/org.gvsig.complexlegend.lib.impl/src/main/java/org/gvsig/complexlegend/impl/ComplexLegendUtils.java	(revision 147)
@@ -0,0 +1,33 @@
+package org.gvsig.complexlegend.impl;
+
+import java.util.Iterator;
+import java.util.List;
+
+import org.gvsig.app.project.documents.view.legend.gui.AbstractParentPanel;
+import org.gvsig.app.project.documents.view.legend.gui.ILegendPanel;
+import org.gvsig.fmap.mapcontext.rendering.legend.ILegend;
+import org.gvsig.symbology.swing.SymbologySwingLocator;
+
+public class ComplexLegendUtils {
+	
+	public static ILegendPanel getLegendPanel(ILegend legend){
+		List panels = SymbologySwingLocator.getSwingManager().getLegendEditorClasses();
+		Iterator it = panels.iterator();
+		while(it.hasNext()){
+			Class panelClass = (Class) it.next();
+			ILegendPanel panel;
+			try {
+				panel = (ILegendPanel) panelClass.newInstance();
+				if(!(panel instanceof AbstractParentPanel)){
+					if(panel.getLegendClass().equals(legend.getClass())){
+						return panel;
+					}
+				}
+			} catch (Exception e) {
+				return null;
+			}
+		}
+		return null;
+	}
+	
+}

Property changes on: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.lib/org.gvsig.complexlegend.lib.impl/src/main/java/org/gvsig/complexlegend/impl/ComplexLegendUtils.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.lib/org.gvsig.complexlegend.lib.impl/src/main/java/org/gvsig/complexlegend/impl/DefaultComplexLegendItem.java
===================================================================
--- org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.lib/org.gvsig.complexlegend.lib.impl/src/main/java/org/gvsig/complexlegend/impl/DefaultComplexLegendItem.java	(revision 0)
+++ org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.lib/org.gvsig.complexlegend.lib.impl/src/main/java/org/gvsig/complexlegend/impl/DefaultComplexLegendItem.java	(revision 147)
@@ -0,0 +1,118 @@
+package org.gvsig.complexlegend.impl;
+
+import java.text.NumberFormat;
+
+import org.gvsig.app.project.documents.view.legend.gui.ILegendPanel;
+import org.gvsig.complexlegend.ComplexLegendItem;
+import org.gvsig.fmap.mapcontext.rendering.legend.ILegend;
+import org.gvsig.tools.ToolsLocator;
+import org.gvsig.tools.dynobject.DynStruct;
+import org.gvsig.tools.persistence.PersistenceManager;
+import org.gvsig.tools.persistence.Persistent;
+import org.gvsig.tools.persistence.PersistentState;
+import org.gvsig.tools.persistence.exception.PersistenceException;
+import org.gvsig.tools.util.Callable;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+public class DefaultComplexLegendItem implements ComplexLegendItem, Persistent{
+
+	public static final Logger logger = LoggerFactory.getLogger(DefaultComplexLegendItem.class);
+	public static final String COMPLEX_LEGEND_ITEM_PERSISTENCE_DEFINITION_NAME = "ComplexLegendItem";
+	private ILegend legend;
+	private double maxScale;
+	private double minScale;
+
+	public ILegend getLegend() {
+		return legend;
+	}
+
+	public void setLegend(ILegend legend) {
+		this.legend = legend;		
+	}
+
+	public double getMaxScale() {
+		return maxScale;
+	}
+
+	public void setMaxScale(double maxScale) {
+		this.maxScale = maxScale;
+	}
+
+	public double getMinScale() {
+		return minScale;
+	}
+
+	public void setMinScale(double minScale) {
+		this.minScale = minScale;
+	}
+	
+	public String toString(){
+		
+		String panel = "";
+		if(legend != null){
+			ILegendPanel legPanel = ComplexLegendUtils.getLegendPanel(legend);
+			if(legPanel != null){
+				panel = " "+ legPanel.getTitle();
+			}
+		}
+		
+		Double mind = (Double) getMinScale();
+		String min = "0";
+		if(mind >= 0){
+			int mini = mind.intValue();
+			min = NumberFormat.getIntegerInstance().format(mini);
+		}
+		
+		Double maxd = (Double) getMaxScale();
+		String max = "inf";
+		if(maxd >= 0){
+			int maxi = maxd.intValue();
+			max = NumberFormat.getIntegerInstance().format(maxi);
+		}
+		return "[1:"+min+" - 1:"+max+"]"+ panel;
+	}
+
+	
+	public void loadFromState(PersistentState state)
+			throws PersistenceException {
+		// Set own properties
+		setLegend((ILegend) state.get("legend"));
+		setMinScale(state.getDouble("minScale"));
+		setMaxScale(state.getDouble("maxScale"));
+	}
+
+	public void saveToState(PersistentState state) throws PersistenceException {
+		// Save own properties
+		state.set("legend", getLegend());
+		state.set("minScale", getMinScale());
+		state.set("maxScale", getMaxScale());
+	}
+	
+	
+	public static class RegisterPersistence implements Callable {
+
+		public Object call() throws Exception {
+			PersistenceManager manager = ToolsLocator.getPersistenceManager();
+			if( manager.getDefinition(
+					COMPLEX_LEGEND_ITEM_PERSISTENCE_DEFINITION_NAME)==null ) {
+				DynStruct definition = manager.addDefinition(
+						DefaultComplexLegendItem.class,
+						COMPLEX_LEGEND_ITEM_PERSISTENCE_DEFINITION_NAME,
+						COMPLEX_LEGEND_ITEM_PERSISTENCE_DEFINITION_NAME +
+						" Persistence definition",
+						null, 
+						null
+						);
+
+				definition.addDynFieldObject("legend").setMandatory(true)
+				.setClassOfValue(ILegend.class);
+				definition.addDynFieldDouble("minScale").setMandatory(true);
+				definition.addDynFieldDouble("maxScale").setMandatory(true);
+			}
+			return Boolean.TRUE;
+		}
+
+	}
+
+}

Property changes on: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.lib/org.gvsig.complexlegend.lib.impl/src/main/java/org/gvsig/complexlegend/impl/DefaultComplexLegendItem.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.lib/org.gvsig.complexlegend.lib.impl/src/main/java/org/gvsig/complexlegend/impl/DefaultVectorComplexLegend.java
===================================================================
--- org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.lib/org.gvsig.complexlegend.lib.impl/src/main/java/org/gvsig/complexlegend/impl/DefaultVectorComplexLegend.java	(revision 0)
+++ org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.lib/org.gvsig.complexlegend.lib.impl/src/main/java/org/gvsig/complexlegend/impl/DefaultVectorComplexLegend.java	(revision 147)
@@ -0,0 +1,341 @@
+package org.gvsig.complexlegend.impl;
+
+import java.awt.Graphics2D;
+import java.awt.image.BufferedImage;
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.Comparator;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
+
+import org.cresques.cts.ICoordTrans;
+import org.gvsig.compat.print.PrintAttributes;
+import org.gvsig.complexlegend.ComplexLegendItem;
+import org.gvsig.complexlegend.VectorComplexLegend;
+import org.gvsig.fmap.dal.exception.DataException;
+import org.gvsig.fmap.dal.feature.Feature;
+import org.gvsig.fmap.dal.feature.FeatureQuery;
+import org.gvsig.fmap.dal.feature.FeatureStore;
+import org.gvsig.fmap.geom.Geometry;
+import org.gvsig.fmap.mapcontext.MapContextException;
+import org.gvsig.fmap.mapcontext.MapContextLocator;
+import org.gvsig.fmap.mapcontext.MapContextManager;
+import org.gvsig.fmap.mapcontext.ViewPort;
+import org.gvsig.fmap.mapcontext.rendering.legend.IClassifiedLegend;
+import org.gvsig.fmap.mapcontext.rendering.legend.IVectorLegend;
+import org.gvsig.fmap.mapcontext.rendering.legend.LegendException;
+import org.gvsig.fmap.mapcontext.rendering.legend.events.SymbolLegendEvent;
+import org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol;
+import org.gvsig.fmap.mapcontext.rendering.symbols.SymbolManager;
+import org.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.AbstractVectorialLegend;
+import org.gvsig.tools.ToolsLocator;
+import org.gvsig.tools.dynobject.DynStruct;
+import org.gvsig.tools.persistence.PersistenceManager;
+import org.gvsig.tools.persistence.Persistent;
+import org.gvsig.tools.persistence.PersistentState;
+import org.gvsig.tools.persistence.exception.PersistenceException;
+import org.gvsig.tools.task.Cancellable;
+import org.gvsig.tools.util.Callable;
+
+public class DefaultVectorComplexLegend extends AbstractVectorialLegend implements VectorComplexLegend, Persistent{
+
+	public static final String COMPLEX_LEGEND_PERSISTENCE_DEFINITION_NAME = "ComplexLegendPersistence";
+	public static final String COMPLEX_LEGEND_NAME = "ComplexLegend";
+	public static final String COMPLEX_LEGEND_FIELD = "Legends";
+	private List<ComplexLegendItem> legends;
+	private boolean useDefault;
+	private int shapeType;
+	private ISymbol defaultSymbol;
+	private IVectorLegend currentLegend;
+
+	public DefaultVectorComplexLegend() {
+		super();
+		SymbolManager manager = MapContextLocator.getSymbolManager();
+		this.defaultSymbol = manager.createSymbol( Geometry.TYPES.SURFACE);
+	}
+	
+	public List<ComplexLegendItem> getLegends() {
+		if(legends == null){
+			legends = new ArrayList<ComplexLegendItem>();
+		}
+		return Collections.unmodifiableList(legends);
+	}
+	
+	public List<ComplexLegendItem> getEditedLegends() {
+		if(legends == null){
+			legends = new ArrayList<ComplexLegendItem>();
+		}
+		return legends;
+	}
+	
+	public boolean isOverlapped(ComplexLegendItem legend) {
+		Iterator it = getLegends().iterator();
+		while(it.hasNext()){
+			ComplexLegendItem aux = (ComplexLegendItem) it.next();
+			if((aux.getMinScale()==-1 && 
+					aux.getMaxScale()>legend.getMinScale())){
+				return true;
+			}
+			if((aux.getMaxScale()==-1 && 
+					aux.getMinScale()<legend.getMaxScale())){
+				return true;
+			}
+			if(!(aux.getMinScale()>=legend.getMaxScale() || 
+					aux.getMaxScale()<=legend.getMinScale())){
+				return true;
+			}
+		}
+		return false;
+	}
+
+	public boolean add(ComplexLegendItem legend) {
+		if(legends == null){
+			getLegends();
+		}
+		
+		boolean result = legends.add(legend);
+		Collections.sort(legends, new Comparator<ComplexLegendItem>(){
+		     public int compare(ComplexLegendItem o1, ComplexLegendItem o2){
+		         if(o1.getMinScale() == o2.getMinScale())
+		             return 0;
+		         return o1.getMinScale() < o2.getMinScale() ? -1 : 1;
+		     }
+		});
+		return result;
+	}
+	
+	public boolean remove(ComplexLegendItem legend) {
+		if(legends == null){
+			getLegends();
+		}
+		return legends.remove(legend);
+	}
+
+	public ComplexLegendItem getLegend(double scale) {
+		Iterator<ComplexLegendItem> it = getLegends().iterator();
+		while(it.hasNext()){
+			ComplexLegendItem cleg = (ComplexLegendItem) it.next();
+			if(cleg.getMinScale() == -1 &&
+					cleg.getMaxScale() > scale){
+				return cleg;
+			}
+			if(cleg.getMinScale() < scale &&
+					cleg.getMaxScale() == -1){
+				return cleg;
+			}
+			if(cleg.getMinScale() < scale &&
+					cleg.getMaxScale() > scale){
+				return cleg;
+			}
+		}
+		return null;
+	}
+
+
+	@Override
+	public void print(Graphics2D g, ViewPort viewPort, Cancellable cancel,
+			double scale, Map queryParameters, ICoordTrans coordTrans,
+			FeatureStore featureStore, FeatureQuery fquery,
+			PrintAttributes properties) throws LegendException {
+		ComplexLegendItem legend = getLegend(scale);
+		if(legend != null){
+			if(legend.getLegend() != null &&
+					legend.getLegend() instanceof AbstractVectorialLegend){
+				setCurrentLegend((IVectorLegend)legend.getLegend());
+				((AbstractVectorialLegend) legend.getLegend()).print(g, viewPort, cancel, scale, queryParameters, coordTrans,
+						featureStore, fquery, properties);
+			}
+		}
+	}
+
+	@Override
+	public void print(Graphics2D g, ViewPort viewPort, Cancellable cancel,
+			double scale, Map queryParameters, ICoordTrans coordTrans,
+			FeatureStore featureStore, PrintAttributes properties)
+					throws LegendException {
+		print(g, viewPort, cancel, scale, queryParameters, coordTrans,
+				featureStore, null, properties);
+	}
+
+	@Override
+	public void draw(BufferedImage image, Graphics2D g, ViewPort viewPort,
+			Cancellable cancel, double scale, Map queryParameters,
+			ICoordTrans coordTrans, FeatureStore featureStore)
+					throws LegendException {
+		ComplexLegendItem legend = getLegend(scale);
+		if(legend != null){
+			if(legend.getLegend() != null &&
+					legend.getLegend() instanceof AbstractVectorialLegend){
+				setCurrentLegend((IVectorLegend)legend.getLegend());
+				((AbstractVectorialLegend) legend.getLegend()).draw(image, g, viewPort, cancel, scale, queryParameters, coordTrans,
+						featureStore);
+			}
+		}
+	}
+
+	@Override
+	protected void draw(BufferedImage image, Graphics2D g, ViewPort viewPort,
+			Cancellable cancel, double scale, Map queryParameters,
+			ICoordTrans coordTrans, FeatureStore featureStore,
+			FeatureQuery featureQuery, double dpi) throws LegendException {
+		ComplexLegendItem legend = getLegend(scale);
+		if(legend != null){
+			if(legend.getLegend() != null &&
+					legend.getLegend() instanceof AbstractVectorialLegend){
+				setCurrentLegend((IVectorLegend)legend.getLegend());
+				((AbstractVectorialLegend) legend.getLegend()).draw(image, g, viewPort, cancel, scale, queryParameters, coordTrans,
+						featureStore, featureQuery);
+			}
+		}
+	}
+
+
+	private void setCurrentLegend(IVectorLegend legend) {
+		boolean changed = this.currentLegend != legend;
+		this.currentLegend = legend;
+
+		if(changed){
+			fireDefaultSymbolChangedEvent(new ComplexLegendChangedEvent());
+		}
+		//this.currentLegend.setShapeType(this.getShapeType());
+	}
+
+
+	public static class RegisterPersistence implements Callable {
+
+		public Object call() throws Exception {
+			PersistenceManager manager = ToolsLocator.getPersistenceManager();
+			if (manager.getDefinition(
+					COMPLEX_LEGEND_PERSISTENCE_DEFINITION_NAME) == null) {
+				DynStruct definition = manager
+						.addDefinition(DefaultVectorComplexLegend.class,
+								COMPLEX_LEGEND_PERSISTENCE_DEFINITION_NAME,
+								COMPLEX_LEGEND_PERSISTENCE_DEFINITION_NAME
+								+ " Persistence definition", null, null);
+
+				definition.extend(manager.getDefinition(
+						AbstractVectorialLegend.VECTORIAL_LEGEND_PERSISTENCE_DEFINITION_NAME));
+
+				definition.addDynFieldList(COMPLEX_LEGEND_FIELD).setClassOfItems(DefaultComplexLegendItem.class);
+			}
+			return Boolean.TRUE;
+		}
+
+	}
+
+	public void loadFromState(PersistentState state)
+			throws PersistenceException {
+		super.loadFromState(state);
+		setLegends(state.getList(COMPLEX_LEGEND_FIELD));
+	}
+
+	private void setLegends(List list) {
+		this.legends = list;
+	}
+
+	public void saveToState(PersistentState state) throws PersistenceException {
+		super.saveToState(state);
+		state.set(COMPLEX_LEGEND_FIELD, getEditedLegends());
+	}
+
+	public static class RegisterLegend implements Callable {
+
+		public Object call() throws Exception {
+			MapContextManager manager =	MapContextLocator.getMapContextManager();
+
+			manager.registerLegend(
+					COMPLEX_LEGEND_NAME,
+					DefaultVectorComplexLegend.class);
+
+			return Boolean.TRUE;
+		}
+
+	}
+
+	public ISymbol getSymbolByFeature(Feature feat) throws MapContextException {
+		if(this.currentLegend != null 
+				&& this.currentLegend instanceof IVectorLegend){
+			return ((IVectorLegend)this.currentLegend).getSymbolByFeature(feat);
+		}
+		return null;
+	}
+
+	public int getShapeType() {
+		return this.shapeType;
+	}
+
+	public void setShapeType(int shapeType) {
+		this.shapeType = shapeType;
+		SymbolManager manager = MapContextLocator.getSymbolManager();
+		this.defaultSymbol = manager.createSymbol(shapeType);
+	}
+
+	public void setDefaultSymbol(ISymbol s) {
+		this.defaultSymbol = s;
+	}
+
+	public boolean isUseDefaultSymbol() {
+		return useDefault;
+	}
+
+	public void useDefaultSymbol(boolean b) {
+		this.useDefault = b;
+	}
+
+	public boolean isSuitableForShapeType(int shapeType) {
+		return true;
+	}
+
+	public ISymbol getDefaultSymbol() {
+		return defaultSymbol;
+	}
+
+	@Override
+	protected String[] getRequiredFeatureAttributeNames(
+			FeatureStore featureStore) throws DataException {
+		// TODO Auto-generated method stub
+		return null;
+	}
+
+	public String[] getDescriptions() {
+		if(currentLegend instanceof IClassifiedLegend){
+			return ((IClassifiedLegend) currentLegend).getDescriptions();
+		}
+		return new String[]{""};
+	}
+
+	public ISymbol[] getSymbols() {
+		if(currentLegend instanceof IClassifiedLegend){
+			return ((IClassifiedLegend) currentLegend).getSymbols();
+		}
+		if(currentLegend == null){
+			if(getDefaultSymbol() != null){
+				return new ISymbol[]{getDefaultSymbol()};
+			}
+			SymbolManager manager = MapContextLocator.getSymbolManager();
+			return new ISymbol[]{manager.createSymbol(shapeType)};
+		}
+		return new ISymbol[]{currentLegend.getDefaultSymbol()};
+	}
+
+	public Object[] getValues() {
+		if(currentLegend instanceof IClassifiedLegend){
+			return ((IClassifiedLegend) currentLegend).getValues();
+		}
+		return new String[]{""};
+	}
+
+	private static class ComplexLegendChangedEvent extends SymbolLegendEvent{
+
+	public ComplexLegendChangedEvent() {
+		super(null, null);
+	}
+
+	@Override
+	public int getEventType() {
+		return SymbolLegendEvent.LEGEND_VALUE_CHANGED;
+	}
+	}
+	
+}

Property changes on: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.lib/org.gvsig.complexlegend.lib.impl/src/main/java/org/gvsig/complexlegend/impl/DefaultVectorComplexLegend.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.lib/org.gvsig.complexlegend.lib.impl/src/main/java/org/gvsig/complexlegend/impl/DefaultComplexLegendLibrary.java
===================================================================
--- org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.lib/org.gvsig.complexlegend.lib.impl/src/main/java/org/gvsig/complexlegend/impl/DefaultComplexLegendLibrary.java	(revision 0)
+++ org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.lib/org.gvsig.complexlegend.lib.impl/src/main/java/org/gvsig/complexlegend/impl/DefaultComplexLegendLibrary.java	(revision 147)
@@ -0,0 +1,68 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ *
+ */
+package org.gvsig.complexlegend.impl;
+
+
+import org.gvsig.complexlabel.impl.ComplexLabelClassFactory;
+import org.gvsig.complexlabel.impl.DefaultComplexLabelClass;
+import org.gvsig.complexlegend.ComplexLegendLibrary;
+import org.gvsig.symbology.SymbologyLocator;
+import org.gvsig.tools.library.AbstractLibrary;
+import org.gvsig.tools.library.LibraryException;
+import org.gvsig.tools.util.Callable;
+import org.gvsig.tools.util.Caller;
+import org.gvsig.tools.util.impl.DefaultCaller;
+
+/**
+ * Library for default implementation initialization and configuration.
+ * This default implementation will be based in JFreeChart library.
+ * 
+ * @author gvSIG team
+ * @version $Id$
+ */
+public class DefaultComplexLegendLibrary extends AbstractLibrary {
+
+	@Override
+	public void doRegistration() {
+		registerAsImplementationOf(ComplexLegendLibrary.class);
+	}
+    
+    
+    @Override
+    protected void doInitialize() throws LibraryException {
+    }
+
+    @Override
+    protected void doPostInitialize() throws LibraryException {
+        Caller caller = new DefaultCaller();
+        caller.add(new DefaultVectorComplexLegend.RegisterLegend());
+        caller.add(new DefaultVectorComplexLegend.RegisterPersistence());
+        caller.add(new DefaultComplexLegendItem.RegisterPersistence());
+        caller.add(new DefaultComplexLabelClass.RegisterPersistence());
+        caller.call();
+        
+        
+        
+        SymbologyLocator.getSymbologyManager().registerLabelClass(new ComplexLabelClassFactory());
+    }
+
+}

Property changes on: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.lib/org.gvsig.complexlegend.lib.impl/src/main/java/org/gvsig/complexlegend/impl/DefaultComplexLegendLibrary.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.lib/org.gvsig.complexlegend.lib.impl/src/main/java/org/gvsig/complexlabel/impl/DefaultComplexLabelClass.java
===================================================================
--- org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.lib/org.gvsig.complexlegend.lib.impl/src/main/java/org/gvsig/complexlabel/impl/DefaultComplexLabelClass.java	(revision 0)
+++ org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.lib/org.gvsig.complexlegend.lib.impl/src/main/java/org/gvsig/complexlabel/impl/DefaultComplexLabelClass.java	(revision 147)
@@ -0,0 +1,95 @@
+package org.gvsig.complexlabel.impl;
+
+
+import org.gvsig.symbology.fmap.mapcontext.rendering.legend.styling.LabelClass;
+import org.gvsig.tools.ToolsLocator;
+import org.gvsig.tools.dynobject.DynStruct;
+import org.gvsig.tools.persistence.PersistenceManager;
+import org.gvsig.tools.persistence.Persistent;
+import org.gvsig.tools.persistence.PersistentState;
+import org.gvsig.tools.persistence.exception.PersistenceException;
+import org.gvsig.tools.util.Callable;
+
+public class DefaultComplexLabelClass extends LabelClass implements Persistent{
+
+	public static final String COMPLEXLABELCLASS_PERSISTENCE_DEFINITION_NAME = "Complex.label.class";
+	
+	private double minScale;
+	private double maxScale;
+	
+	public double getMinScale() {
+		return minScale;
+	}
+	
+	public void setMinScale(double minScale) {
+		this.minScale = minScale;
+	}
+	
+	public double getMaxScale() {
+		return maxScale;
+	}
+	
+	public void setMaxScale(double maxScale) {
+		this.maxScale = maxScale;
+	}
+	
+	@Override
+	public boolean isVisible() {
+		return super.isVisible();
+	}
+	
+	@Override
+	public boolean isVisible(double scale) {
+		if(getMaxScale() > scale && getMinScale() < scale){
+			return true;
+		}
+		return false;
+	}
+	
+	@Override
+	public void loadFromState(PersistentState state)
+			throws PersistenceException {
+		super.loadFromState(state);
+		setMinScale(state.getDouble("MinScale"));
+		setMaxScale(state.getDouble("MaxScale"));
+	}
+	
+	@Override
+	public void saveToState(PersistentState state) throws PersistenceException {
+		super.saveToState(state);
+		state.set("MinScale", getMinScale());
+		state.set("MaxScale", getMaxScale());
+	}
+	
+	@Override
+	public Object clone() throws CloneNotSupportedException {
+		DefaultComplexLabelClass cloned = (DefaultComplexLabelClass) super.clone();
+		cloned.setMaxScale(this.getMaxScale());
+		cloned.setMinScale(this.getMinScale());
+		return cloned;
+	}
+	
+	public static class RegisterPersistence implements Callable {
+
+		public Object call() throws Exception {
+			PersistenceManager manager = ToolsLocator.getPersistenceManager();
+			if( manager.getDefinition(COMPLEXLABELCLASS_PERSISTENCE_DEFINITION_NAME)==null ) {
+				DynStruct definition = manager.addDefinition(
+						DefaultComplexLabelClass.class,
+						COMPLEXLABELCLASS_PERSISTENCE_DEFINITION_NAME,
+						COMPLEXLABELCLASS_PERSISTENCE_DEFINITION_NAME+" Persistence definition",
+						null, 
+						null
+				);
+
+				definition.extend(manager.getDefinition(
+						"LabelClass"));
+				
+				definition.addDynFieldDouble("MaxScale").setMandatory(true);
+				definition.addDynFieldDouble("MinScale").setMandatory(true);
+			}
+			return Boolean.TRUE;
+		}
+		
+	}
+}

Property changes on: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.lib/org.gvsig.complexlegend.lib.impl/src/main/java/org/gvsig/complexlabel/impl/DefaultComplexLabelClass.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.lib/org.gvsig.complexlegend.lib.impl/src/main/java/org/gvsig/complexlabel/impl/ComplexLabelClassFactory.java
===================================================================
--- org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.lib/org.gvsig.complexlegend.lib.impl/src/main/java/org/gvsig/complexlabel/impl/ComplexLabelClassFactory.java	(revision 0)
+++ org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.lib/org.gvsig.complexlegend.lib.impl/src/main/java/org/gvsig/complexlabel/impl/ComplexLabelClassFactory.java	(revision 147)
@@ -0,0 +1,25 @@
+package org.gvsig.complexlabel.impl;
+
+import org.gvsig.fmap.mapcontext.rendering.legend.styling.ILabelClass;
+import org.gvsig.fmap.mapcontext.rendering.legend.styling.ILabelClassFactory;
+
+public class ComplexLabelClassFactory implements ILabelClassFactory {
+
+	public static final String FACTORY_ID = "MultipleLabelByScale";
+	
+	public ILabelClass create() {
+		return new DefaultComplexLabelClass();
+	}
+
+	public String getID() {
+		return FACTORY_ID;
+	}
+
+	public String getName() {
+		return "Multiple Label by scale";
+	}
+
+	public String toString() {
+		return this.getName();
+	}
+}

Property changes on: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.lib/org.gvsig.complexlegend.lib.impl/src/main/java/org/gvsig/complexlabel/impl/ComplexLabelClassFactory.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.lib/org.gvsig.complexlegend.lib.impl/src/main/resources/META-INF/services/org.gvsig.tools.library.Library
===================================================================
--- org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.lib/org.gvsig.complexlegend.lib.impl/src/main/resources/META-INF/services/org.gvsig.tools.library.Library	(revision 0)
+++ org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.lib/org.gvsig.complexlegend.lib.impl/src/main/resources/META-INF/services/org.gvsig.tools.library.Library	(revision 147)
@@ -0,0 +1 @@
+org.gvsig.complexlegend.impl.DefaultComplexLegendLibrary
\ No newline at end of file
Index: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.lib/org.gvsig.complexlegend.lib.impl/pom.xml
===================================================================
--- org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.lib/org.gvsig.complexlegend.lib.impl/pom.xml	(revision 0)
+++ org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.lib/org.gvsig.complexlegend.lib.impl/pom.xml	(revision 147)
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+	<modelVersion>4.0.0</modelVersion>
+	<artifactId>org.gvsig.complexlegend.lib.impl</artifactId>
+	<packaging>jar</packaging>
+	<name>org.gvsig.complexlegend.lib.impl</name>
+	<parent>
+		<groupId>org.gvsig</groupId>
+		<artifactId>org.gvsig.complexlegend.lib</artifactId>
+		<version>1.0.3</version>
+	</parent>
+
+	<dependencies>
+		<dependency>
+			<groupId>org.gvsig</groupId>
+			<artifactId>org.gvsig.complexlegend.lib.api</artifactId>
+			<scope>compile</scope>
+		</dependency>
+		 <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.symbology.lib.api</artifactId>
+            <scope>compile</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.symbology.lib.impl</artifactId>
+            <scope>compile</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.symbology.swing.api</artifactId>
+            <scope>compile</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.fmap.mapcontext.api</artifactId>
+            <scope>compile</scope>
+        </dependency>
+        <dependency>
+			<groupId>org.gvsig</groupId>
+			<artifactId> org.gvsig.app.mainplugin</artifactId>
+			<scope>compile</scope>
+		</dependency>
+	</dependencies>
+</project>

Property changes on: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.lib/org.gvsig.complexlegend.lib.impl/pom.xml
___________________________________________________________________
Added: svn:mime-type
   + text/plain


Property changes on: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.lib/org.gvsig.complexlegend.lib.impl
___________________________________________________________________
Added: svn:ignore
   + .project

target

.classpath

.settings



Property changes on: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.lib
___________________________________________________________________
Added: svn:ignore
   + .project

.settings


Index: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.swing/pom.xml
===================================================================
--- org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.swing/pom.xml	(revision 0)
+++ org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.swing/pom.xml	(revision 147)
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+
+	<modelVersion>4.0.0</modelVersion>
+	<artifactId>org.gvsig.complexlegend.swing</artifactId>
+	<packaging>pom</packaging>
+	<name>org.gvsig.complexlegend.swing</name>
+	<parent>
+		<groupId>org.gvsig</groupId>
+		<artifactId>org.gvsig.complexlegend</artifactId>
+		<version>1.0.3</version>
+	</parent>
+
+	<modules>
+		<module>org.gvsig.complexlegend.swing.api</module>
+		<module>org.gvsig.complexlegend.swing.impl</module>
+	</modules>
+</project>
+

Property changes on: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.swing/pom.xml
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.swing/org.gvsig.complexlegend.swing.impl/pom.xml
===================================================================
--- org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.swing/org.gvsig.complexlegend.swing.impl/pom.xml	(revision 0)
+++ org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.swing/org.gvsig.complexlegend.swing.impl/pom.xml	(revision 147)
@@ -0,0 +1,63 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+	<modelVersion>4.0.0</modelVersion>
+	<artifactId>org.gvsig.complexlegend.swing.impl</artifactId>
+	<packaging>jar</packaging>
+	<name>org.gvsig.complexlegend.swing.impl</name>
+	<parent>
+		<groupId>org.gvsig</groupId>
+		<artifactId>org.gvsig.complexlegend.swing</artifactId>
+		<version>1.0.3</version>
+	</parent>
+	<dependencies>
+		<dependency>
+			<groupId>org.gvsig</groupId>
+			<artifactId> org.gvsig.app.mainplugin</artifactId>
+			<scope>compile</scope>
+		</dependency>
+		<dependency>
+			<groupId>org.gvsig</groupId>
+			<artifactId> org.gvsig.andami</artifactId>
+			<scope>compile</scope>
+		</dependency>
+		<dependency>
+			<groupId>org.gvsig</groupId>
+			<artifactId>org.gvsig.fmap.geometry.api</artifactId>
+			<scope>compile</scope>
+		</dependency>
+		<dependency>
+			<groupId>org.gvsig</groupId>
+			<artifactId>org.gvsig.complexlegend.lib.api</artifactId>
+		</dependency>
+		<dependency>
+			<groupId>org.gvsig</groupId>
+			<artifactId>org.gvsig.complexlegend.lib.impl</artifactId>
+			<scope>compile</scope>
+		</dependency>
+		<dependency>
+			<groupId>org.gvsig</groupId>
+			<artifactId>org.gvsig.complexlegend.swing.api</artifactId>
+			<scope>compile</scope>
+		</dependency>
+		<dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.tools.swing.api</artifactId>
+            <scope>compile</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.app.mainplugin</artifactId>
+            <scope>compile</scope>
+        </dependency>
+		<dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.symbology.swing.api</artifactId>
+            <scope>compile</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.symbology.swing.impl</artifactId>
+            <scope>compile</scope>
+        </dependency>
+	</dependencies>
+</project>
\ No newline at end of file

Property changes on: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.swing/org.gvsig.complexlegend.swing.impl/pom.xml
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.swing/org.gvsig.complexlegend.swing.impl/src/main/resources/images/swing/swing-banner.png
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream

Property changes on: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.swing/org.gvsig.complexlegend.swing.impl/src/main/resources/images/swing/swing-banner.png
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Index: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.swing/org.gvsig.complexlegend.swing.impl/src/main/resources/images/legend/legend-add.png
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream

Property changes on: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.swing/org.gvsig.complexlegend.swing.impl/src/main/resources/images/legend/legend-add.png
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Index: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.swing/org.gvsig.complexlegend.swing.impl/src/main/resources/images/legend/legend-delete.png
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream

Property changes on: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.swing/org.gvsig.complexlegend.swing.impl/src/main/resources/images/legend/legend-delete.png
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Index: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.swing/org.gvsig.complexlegend.swing.impl/src/main/resources/images/legend/scaled-symbols.png
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream

Property changes on: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.swing/org.gvsig.complexlegend.swing.impl/src/main/resources/images/legend/scaled-symbols.png
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Index: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.swing/org.gvsig.complexlegend.swing.impl/src/main/resources/META-INF/services/org.gvsig.tools.library.Library
===================================================================
--- org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.swing/org.gvsig.complexlegend.swing.impl/src/main/resources/META-INF/services/org.gvsig.tools.library.Library	(revision 0)
+++ org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.swing/org.gvsig.complexlegend.swing.impl/src/main/resources/META-INF/services/org.gvsig.tools.library.Library	(revision 147)
@@ -0,0 +1 @@
+org.gvsig.complexlegend.swing.impl.DefaultComplexLegendSwingLibrary
\ No newline at end of file
Index: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.swing/org.gvsig.complexlegend.swing.impl/src/main/java/org/gvsig/complexlegend/swing/impl/ComplexLegendItemPanel.java
===================================================================
--- org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.swing/org.gvsig.complexlegend.swing.impl/src/main/java/org/gvsig/complexlegend/swing/impl/ComplexLegendItemPanel.java	(revision 0)
+++ org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.swing/org.gvsig.complexlegend.swing.impl/src/main/java/org/gvsig/complexlegend/swing/impl/ComplexLegendItemPanel.java	(revision 147)
@@ -0,0 +1,371 @@
+package org.gvsig.complexlegend.swing.impl;
+
+import java.awt.BorderLayout;
+import java.awt.Dimension;
+import java.awt.GridBagConstraints;
+import java.awt.GridBagLayout;
+import java.awt.Insets;
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+import java.util.ArrayList;
+import java.util.Iterator;
+import java.util.List;
+
+import javax.swing.ComboBoxModel;
+import javax.swing.DefaultComboBoxModel;
+import javax.swing.JButton;
+import javax.swing.JCheckBox;
+import javax.swing.JComboBox;
+import javax.swing.JLabel;
+import javax.swing.JOptionPane;
+import javax.swing.JPanel;
+import javax.swing.JSpinner;
+import javax.swing.SpinnerModel;
+import javax.swing.SpinnerNumberModel;
+
+import org.gvsig.app.project.documents.view.legend.gui.AbstractParentPanel;
+import org.gvsig.app.project.documents.view.legend.gui.ILegendPanel;
+import org.gvsig.complexlegend.ComplexLegendItem;
+import org.gvsig.complexlegend.VectorComplexLegend;
+import org.gvsig.complexlegend.impl.DefaultComplexLegendItem;
+import org.gvsig.fmap.mapcontext.layers.FLayer;
+import org.gvsig.fmap.mapcontext.layers.vectorial.FLyrVect;
+import org.gvsig.fmap.mapcontext.rendering.legend.ILegend;
+import org.gvsig.symbology.swing.SymbologySwingLocator;
+import org.gvsig.tools.ToolsLocator;
+import org.gvsig.tools.i18n.I18nManager;
+import org.gvsig.tools.observer.Observable;
+import org.gvsig.tools.observer.Observer;
+
+public class ComplexLegendItemPanel extends JPanel implements Observable{
+
+	/**
+	 * 
+	 */
+	private static final long serialVersionUID = 8565120915575756286L;
+	private ComplexLegendItem complexItem;
+	private JSpinner maxScaleTXT;
+	private JSpinner minScaleTXT;
+	private VectorComplexLegend complexLegend;
+	private JComboBox legendTypeCB;
+	private FLayer layer;
+	private DefaultComboBoxModel model;
+	private JButton cancelButton;
+	private JButton acceptButton;
+	private List<Observer> observers;
+	private I18nManager i18nManager;
+	private JCheckBox minScaleCk;
+	private JCheckBox maxScaleCk;
+
+	
+	public ComplexLegendItemPanel(FLayer layer, VectorComplexLegend vcl){
+		this.i18nManager = ToolsLocator.getI18nManager();
+		this.observers = new ArrayList<Observer>();
+		this.layer = layer;
+		this.complexLegend = vcl;
+		initialize();
+	}
+	
+	public ComplexLegendItemPanel(FLayer layer, VectorComplexLegend vcl, ComplexLegendItem cli) {
+		this(layer, vcl);
+		this.complexItem = cli;
+		setData(cli);
+	}
+
+	private void initialize() {
+		setPreferredSize(new Dimension(450, 225));
+
+		JPanel mainPanel = new JPanel(new BorderLayout());
+		mainPanel.setPreferredSize(new Dimension(440, 175));
+
+		JPanel mainDataPanel = new JPanel();
+		mainDataPanel.setPreferredSize(new Dimension(200, 100));
+		GridBagLayout gridBagLayout2 = new GridBagLayout();
+		gridBagLayout2.columnWidths = new int[] { 150, 180, 70 };
+		gridBagLayout2.rowHeights = new int[] { 0, 0, 0, 0, 0, 0 };
+		mainDataPanel.setLayout(gridBagLayout2);
+		//mainDataPanel.setBorder(new TitledBorder( i18nManager.getTranslation("Connection_configuration") + ":"));
+
+		GridBagConstraints c = new GridBagConstraints();
+		c.fill = GridBagConstraints.HORIZONTAL;
+		c.anchor = GridBagConstraints.WEST;
+		c.insets = new Insets(3, 0, 3, 0);
+		c.ipadx = 10;
+		c.gridx = 0;
+		c.gridy = 0;
+		JLabel labelURL = new JLabel( i18nManager.getTranslation("MinScale")+":");
+		mainDataPanel.add(labelURL, c);
+
+		c.gridx = 1;
+		c.gridwidth =2;
+		mainDataPanel.add(getMinScaleField(), c);
+		c.gridy = 1;
+		mainDataPanel.add(getWithoutMinScale(), c);
+
+		c.gridx = 0;
+		c.gridy = 2;
+		c.gridwidth =1;
+		JLabel labelUser = new JLabel( i18nManager.getTranslation("MaxScale")+":");
+		mainDataPanel.add(labelUser, c);
+
+		c.gridx = 1;
+		c.gridwidth =2;
+		mainDataPanel.add(getMaxScaleField(), c);
+		c.gridy = 3;
+		mainDataPanel.add(getWithoutMaxScale(), c);
+
+		c.gridx = 0;
+		c.gridy = 4;
+		c.gridwidth =1;
+		JLabel labelPassword = new JLabel( i18nManager.getTranslation("LegendType")+":");
+		mainDataPanel.add(labelPassword, c);
+
+		c.gridx = 1;
+		c.gridwidth =2;
+		mainDataPanel.add(getLegendTypes(), c);
+
+		mainPanel.add(mainDataPanel, BorderLayout.CENTER);
+		add(mainPanel, BorderLayout.CENTER);
+		
+		add(getButtons(), BorderLayout.SOUTH);
+	}
+	
+	private JCheckBox getWithoutMinScale() {
+		if(minScaleCk == null){
+			minScaleCk = new JCheckBox(i18nManager.getTranslation("without_min_scale"));
+			minScaleCk.addActionListener(new ActionListener() {
+				public void actionPerformed(ActionEvent arg0) {
+					getMinScaleField().setEnabled(!minScaleCk.isSelected());
+				}
+			});
+		}
+		return minScaleCk;
+	}
+	
+	private JCheckBox getWithoutMaxScale() {
+		if(maxScaleCk == null){
+			maxScaleCk = new JCheckBox(i18nManager.getTranslation("without_max_scale"));
+			maxScaleCk.addActionListener(new ActionListener() {
+				public void actionPerformed(ActionEvent arg0) {
+					getMaxScaleField().setEnabled(!maxScaleCk.isSelected());
+				}
+			});
+		}
+		return maxScaleCk;
+	}
+
+	private JPanel getButtons() {
+		JPanel buttons = new JPanel();
+		buttons.add(getAcceptButton());
+		buttons.add(getCancelButton());
+		JPanel aux =new JPanel(new BorderLayout());
+		aux.add(buttons, BorderLayout.EAST);
+		return aux;
+	}
+
+	private JButton getAcceptButton() {
+		if(this.acceptButton == null){
+			this.acceptButton = new JButton( i18nManager.getTranslation("accept"));
+			this.acceptButton.addActionListener(new ActionListener() {
+				public void actionPerformed(ActionEvent arg0) {
+					acceptWindow();
+				}
+			});
+		}
+		return this.acceptButton;
+	}
+
+	protected void acceptWindow() {
+		if(validateValues()){
+			notifyObservers(this, true);
+		}
+	}
+
+	private JButton getCancelButton() {
+		if(this.cancelButton == null){
+			this.cancelButton = new JButton( i18nManager.getTranslation("cancel"));
+			this.cancelButton.addActionListener(new ActionListener() {
+				public void actionPerformed(ActionEvent arg0) {
+					hideWindow();
+				}
+			});
+		}
+		return this.cancelButton;
+	}
+
+	protected void hideWindow() {
+		notifyObservers(this, false);
+	}
+
+	private JSpinner getMaxScaleField() {
+		if(maxScaleTXT == null){
+			SpinnerModel model =
+			        new SpinnerNumberModel(0, 0, 1000000000, 1000000);  
+			maxScaleTXT = new JSpinner(model);
+		}
+		return maxScaleTXT;
+	}
+
+	private JSpinner getMinScaleField() {
+		if(minScaleTXT == null){
+			SpinnerModel model =
+			        new SpinnerNumberModel(0, 0, 1000000000, 1000000);  
+			minScaleTXT = new JSpinner(model);
+		}
+		return minScaleTXT;
+	}
+	
+	private ComboBoxModel getModel(){
+		if(model == null){
+			model = new DefaultComboBoxModel();
+			List<ILegendPanel> legendPanels = 
+					SymbologySwingLocator.getSwingManager().getLegendEditors(layer);
+			Iterator<ILegendPanel> it = legendPanels.iterator();
+			while(it.hasNext()){
+				ILegendPanel legPanel = (ILegendPanel) it.next();
+				if(!((legPanel instanceof AbstractParentPanel) ||
+						(legPanel instanceof DefaultComplexLegendPanel))){
+					model.addElement(new LegendPanelCombo(legPanel));
+				}
+			}
+			
+		}
+		return model;
+	}
+	
+	public class LegendPanelCombo{
+		
+		private ILegendPanel legendPanel;
+
+		public LegendPanelCombo(ILegendPanel panel){
+			this.legendPanel = panel;
+		}
+		
+		public ILegendPanel getLegendPanel(){
+			return legendPanel;
+		}
+		
+		public String toString(){
+			return this.legendPanel.getTitle();
+		}
+		
+	}
+	
+	private JComboBox getLegendTypes() {
+		if(legendTypeCB == null){
+			legendTypeCB = new JComboBox(getModel());
+			legendTypeCB.setEditable(false);
+			legendTypeCB.addActionListener(new ActionListener() {
+				public void actionPerformed(ActionEvent arg0) {
+					getLegendPanel();
+				}
+			});
+		}
+		return legendTypeCB;
+	}
+
+	public ILegendPanel getLegendPanel() {
+		LegendPanelCombo legPanel = (LegendPanelCombo) getLegendTypes().getSelectedItem();
+		return legPanel.getLegendPanel();
+	}
+	
+	
+	private void setData(ComplexLegendItem cli) {
+		// TODO Auto-generated method stub
+		
+	}
+	
+	public boolean validateValues(){
+		ComplexLegendItem auxLeg = getLegendItem();
+		if(getLegendPanel() == null){
+			createErrorDialog("panel_error_title", "panel_error");
+			return false;
+		}
+		
+		if(getMinScaleField().getValue() == null ||
+				getMaxScaleField().getValue() == null ){
+			createErrorDialog("min_max_error_title", "min_max_error");
+			return false;
+		}
+		
+		if(auxLeg.getMinScale() > auxLeg.getMaxScale()){
+			if(auxLeg.getMaxScale() >= 0){
+				createErrorDialog("min_greather_than_max_error_title", "min_greather_than_max_error");
+				return false;
+			}
+		}
+		
+		if(complexLegend.isOverlapped(auxLeg)){
+			createErrorDialog("overlaping_error_title", "overlaping_error");
+			return false;
+		}
+		
+		return true;
+	}
+	
+	private void createErrorDialog(String title, String text){
+		JOptionPane.showMessageDialog(null,
+			    i18nManager.getTranslation(text),
+			    i18nManager.getTranslation(title),
+			    JOptionPane.ERROR_MESSAGE);
+	}
+	
+	
+	
+	public ComplexLegendItem getLegendItem(){
+		if(complexItem == null){
+			complexItem = new DefaultComplexLegendItem();
+		}
+		
+		ILegendPanel panelLegend = getLegendPanel();
+		ILegend leg;
+		try {
+			leg = ((FLyrVect) layer).getLegend();
+			panelLegend.setData(layer, leg);
+			ILegend leg2 =panelLegend.getLegend();
+			if(leg2 != null){
+				complexItem.setLegend(leg2);
+			}
+		} catch (Exception e) {
+			e.printStackTrace();
+		}
+		
+		//complexItem.setLegend(getLegendPanel().getLegend());
+		if(getMinScaleField().getValue() != null && !getWithoutMinScale().isSelected()){
+			double min = Double.parseDouble(getMinScaleField().getValue().toString());
+			complexItem.setMinScale(min);
+		}else{
+			complexItem.setMinScale(-1);
+		}
+		if(getMaxScaleField().getValue() != null && !getWithoutMaxScale().isSelected()){
+			double max = Double.parseDouble(getMaxScaleField().getValue().toString());
+			complexItem.setMaxScale(max);
+		}else{
+			complexItem.setMaxScale(-1);
+		}
+		return complexItem;
+	}
+
+	
+	public void addObserver(Observer o) {
+		observers.add(o);
+	}
+
+	public void deleteObserver(Observer o) {
+		observers.remove(o);
+	}
+
+	public void deleteObservers() {
+		observers.clear();
+	}
+	
+	public synchronized void notifyObservers(Observable observable, Object tableName) {
+		for(int i =0; i<this.observers.size(); i++ ) {
+			Observer o = (Observer) this.observers.get(i);
+			o.update(this, tableName);
+		}
+	}
+
+	
+	
+}

Property changes on: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.swing/org.gvsig.complexlegend.swing.impl/src/main/java/org/gvsig/complexlegend/swing/impl/ComplexLegendItemPanel.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.swing/org.gvsig.complexlegend.swing.impl/src/main/java/org/gvsig/complexlegend/swing/impl/DefaultComplexLegendSwingLibrary.java
===================================================================
--- org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.swing/org.gvsig.complexlegend.swing.impl/src/main/java/org/gvsig/complexlegend/swing/impl/DefaultComplexLegendSwingLibrary.java	(revision 0)
+++ org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.swing/org.gvsig.complexlegend.swing.impl/src/main/java/org/gvsig/complexlegend/swing/impl/DefaultComplexLegendSwingLibrary.java	(revision 147)
@@ -0,0 +1,59 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ *
+ */
+package org.gvsig.complexlegend.swing.impl;
+
+import org.gvsig.andami.IconThemeHelper;
+import org.gvsig.app.project.documents.view.legend.gui.LegendManager;
+import org.gvsig.complexlegend.swing.ComplexLegendPanel;
+import org.gvsig.complexlegend.swing.ComplexLegendSwingLibrary;
+import org.gvsig.symbology.swing.SymbologySwingLocator;
+import org.gvsig.tools.library.AbstractLibrary;
+import org.gvsig.tools.library.LibraryException;
+
+/**
+ * Library for default swing implementation initialization and configuration.
+ * 
+ * @author gvSIG team
+ * @version $Id$
+ */
+public class DefaultComplexLegendSwingLibrary extends AbstractLibrary {
+
+
+	@Override
+	public void doRegistration() {
+		registerAsImplementationOf(ComplexLegendSwingLibrary.class);
+	}
+	
+    @Override
+    protected void doInitialize() throws LibraryException {
+    }
+
+    @Override
+    protected void doPostInitialize() throws LibraryException {
+//    	IconThemeHelper.registerIcon("chart", "chart-edit-add", this);
+    	IconThemeHelper.registerIcon("legend", "scaled-symbols", this);
+    	IconThemeHelper.registerIcon("legend", "legend-add", this);
+    	IconThemeHelper.registerIcon("legend", "legend-delete", this);
+    	
+    }
+
+}

Property changes on: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.swing/org.gvsig.complexlegend.swing.impl/src/main/java/org/gvsig/complexlegend/swing/impl/DefaultComplexLegendSwingLibrary.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.swing/org.gvsig.complexlegend.swing.impl/src/main/java/org/gvsig/complexlegend/swing/impl/DefaultComplexLegendPanel.java
===================================================================
--- org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.swing/org.gvsig.complexlegend.swing.impl/src/main/java/org/gvsig/complexlegend/swing/impl/DefaultComplexLegendPanel.java	(revision 0)
+++ org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.swing/org.gvsig.complexlegend.swing.impl/src/main/java/org/gvsig/complexlegend/swing/impl/DefaultComplexLegendPanel.java	(revision 147)
@@ -0,0 +1,361 @@
+package org.gvsig.complexlegend.swing.impl;
+
+import java.awt.BorderLayout;
+import java.awt.Dimension;
+import java.awt.FlowLayout;
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+import java.util.Iterator;
+import java.util.List;
+
+import javax.swing.BorderFactory;
+import javax.swing.DefaultComboBoxModel;
+import javax.swing.ImageIcon;
+import javax.swing.JButton;
+import javax.swing.JComboBox;
+import javax.swing.JDialog;
+import javax.swing.JLabel;
+import javax.swing.JPanel;
+import javax.swing.event.ListDataEvent;
+import javax.swing.event.ListDataListener;
+
+import org.gvsig.andami.IconThemeHelper;
+import org.gvsig.andami.PluginServices;
+import org.gvsig.app.project.documents.view.legend.gui.AbstractParentPanel;
+import org.gvsig.app.project.documents.view.legend.gui.Features;
+import org.gvsig.app.project.documents.view.legend.gui.ILegendPanel;
+import org.gvsig.complexlegend.ComplexLegendItem;
+import org.gvsig.complexlegend.VectorComplexLegend;
+import org.gvsig.complexlegend.impl.DefaultVectorComplexLegend;
+import org.gvsig.complexlegend.swing.ComplexLegendPanel;
+import org.gvsig.fmap.mapcontext.MapContextLocator;
+import org.gvsig.fmap.mapcontext.layers.FLayer;
+import org.gvsig.fmap.mapcontext.layers.vectorial.FLyrVect;
+import org.gvsig.fmap.mapcontext.rendering.legend.ILegend;
+import org.gvsig.symbology.swing.SymbologySwingLocator;
+import org.gvsig.tools.ToolsLocator;
+import org.gvsig.tools.i18n.I18nManager;
+import org.gvsig.tools.observer.Observable;
+import org.gvsig.tools.observer.Observer;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+public class DefaultComplexLegendPanel extends JPanel implements ComplexLegendPanel, Observer{
+
+	/**
+	 * 
+	 */
+	private static final long serialVersionUID = -312336406359200569L;
+	private static Logger logger = LoggerFactory.getLogger(DefaultComplexLegendPanel.class);
+	private VectorComplexLegend auxLegend;
+	private FLayer layer;
+	private JComboBox cmbValue;
+	private JPanel symbolPanel;
+	private JButton addButton;
+	private JButton removeButton;
+	private DefaultComboBoxModel model;
+	private ILegendPanel legendPanel;
+	private JDialog dlg;
+	private ComplexLegendItem currentItem;
+	private I18nManager i18nManager;
+	private int currentIndex;
+	
+	public DefaultComplexLegendPanel(){
+		super();
+		initialize();
+		refreshButtons();
+	}
+	
+	private void initialize() {
+		this.i18nManager = ToolsLocator.getI18nManager();
+		
+		setLayout(new BorderLayout());
+		JPanel aux = new JPanel(new BorderLayout());
+
+		JPanel fieldsPanel = new JPanel(new FlowLayout());
+		fieldsPanel.setBorder(BorderFactory.createTitledBorder(null,
+				     i18nManager.getTranslation("select_scale")));
+		fieldsPanel.setPreferredSize(new Dimension(300,60));
+
+		fieldsPanel.add(new JLabel());
+		fieldsPanel.add(getComboBox());
+		fieldsPanel.add(getAddButton());
+		fieldsPanel.add(getRemoveButton());
+
+		symbolPanel = new JPanel();
+		symbolPanel.setBorder(BorderFactory.createTitledBorder(null,
+				     i18nManager.getTranslation("legend_definition")));
+
+
+		aux.add(fieldsPanel, BorderLayout.NORTH);
+		aux.add(symbolPanel, BorderLayout.CENTER);
+
+		this.add(aux, BorderLayout.CENTER);
+	}
+
+	private JComboBox getComboBox() {
+		if(cmbValue == null){
+			cmbValue = new JComboBox(getComboBoxModel());
+			cmbValue.setPreferredSize(new Dimension(350, 20));
+			cmbValue.addActionListener(new ActionListener() {
+				public void actionPerformed(ActionEvent e) {
+					refreshLegendPanel();
+				}
+			});
+		}
+		return cmbValue;
+	}
+	
+	private DefaultComboBoxModel getComboBoxModel(){
+		if(this.model == null){
+			this.model = new DefaultComboBoxModel();
+			this.model.addListDataListener(new ListDataListener() {
+				public void intervalRemoved(ListDataEvent arg0) {
+				}
+				
+				public void intervalAdded(ListDataEvent arg0) {
+				}
+				
+				public void contentsChanged(ListDataEvent arg0) {
+					refreshButtons();
+				}
+			});
+		}
+		return this.model;
+	}
+	
+	protected void refreshButtons() {
+		boolean status = (getComboBoxModel().getSize() != 0);
+		getComboBox().setEnabled(status);
+		getRemoveButton().setEnabled(status);
+		if(legendPanel != null){
+			legendPanel.getPanel().setVisible(status);
+		}
+	}
+
+	private JButton getAddButton() {
+		if(addButton == null){
+			addButton = new JButton();
+			addButton.setIcon(PluginServices.getIconTheme().get("legend-add"));
+			addButton.addActionListener(new ActionListener() {
+				public void actionPerformed(ActionEvent arg0) {
+					createComplexLegendItemWindow();
+				}
+			});
+		}
+		return addButton;
+	}
+	
+	private JButton getRemoveButton() {
+		if(removeButton == null){
+			removeButton = new JButton();
+			removeButton.setIcon(PluginServices.getIconTheme().get("legend-delete"));
+			removeButton.addActionListener(new ActionListener() {
+				public void actionPerformed(ActionEvent arg0) {
+					removeComplexLegendItem();
+				}
+			});
+		}
+		return removeButton;
+	}
+
+	protected void removeComplexLegendItem() {
+		ComplexLegendItem item = (ComplexLegendItem) getComboBox().getSelectedItem();
+		int index = auxLegend.getLegends().indexOf(item);
+		if(index != -1){
+			auxLegend.remove(item);
+			getComboBoxModel().removeElementAt(index);
+		}
+		refreshButtons();
+	}
+
+	protected void createComplexLegendItemWindow() {
+		if(layer != null){
+			ComplexLegendItemPanel legendItemPanel = 
+					new ComplexLegendItemPanel(layer, (VectorComplexLegend) getLegend());
+			legendItemPanel.addObserver(this);
+			
+			dlg = new JDialog();
+			dlg.setTitle( i18nManager.getTranslation("SelectItem"));
+			dlg.setResizable(true);
+			//legendItemPanel.setParentDialog(dlg);
+			dlg.getContentPane().add(legendItemPanel);
+			dlg.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
+			
+			dlg.setSize(510, 510);
+			dlg.setModal(true);
+			dlg.pack();
+			dlg.setLocationRelativeTo(null);
+			dlg.setVisible(true);
+		}
+	}
+
+	public String getDescription() {
+		return  i18nManager.getTranslation(
+			    "legend_by_scale");
+	}
+
+	public ImageIcon getIcon() {
+		 return IconThemeHelper.getImageIcon(
+			        "scaled-symbols");
+	}
+
+	public ILegend getLegend() {
+		if (auxLegend == null) {
+			auxLegend = (DefaultVectorComplexLegend) MapContextLocator.getMapContextManager()
+				.createLegend(DefaultVectorComplexLegend.COMPLEX_LEGEND_NAME);
+		}
+		saveCurrentPanel();
+		
+//		DefaultComplexLegendItem scaleLegend1 = new DefaultComplexLegendItem();
+//		
+//		SimpleFillSymbol fillsymbol1 = new SimpleFillSymbol();
+//		fillsymbol1.setFillColor(Color.WHITE);
+//		SingleSymbolLegend legend1 = new SingleSymbolLegend(fillsymbol1);
+//		scaleLegend1.setLegend(legend1);
+//		scaleLegend1.setMinScale(10000000);
+//		scaleLegend1.setMaxScale(20000000);
+//		
+//		DefaultComplexLegendItem scaleLegend2 = new DefaultComplexLegendItem();
+//		SimpleFillSymbol fillsymbol2 = new SimpleFillSymbol();
+//		fillsymbol2.setFillColor(Color.BLACK);
+//		SingleSymbolLegend legend2 = new SingleSymbolLegend(fillsymbol2);
+//		scaleLegend2.setLegend(legend2);
+//		scaleLegend2.setMinScale(0);
+//		scaleLegend2.setMaxScale(9999999);
+//		
+//		auxLegend.add(scaleLegend2);
+//		auxLegend.add(scaleLegend1);
+		
+		return auxLegend;
+	}
+
+	public Class getLegendClass() {
+		return DefaultVectorComplexLegend.class;
+	}
+
+	public JPanel getPanel() {
+		return this;
+	}
+
+	public Class getParentClass() {
+		return Features.class;
+	}
+
+	public String getTitle() {
+		return  i18nManager.getTranslation("complex_symbology");
+	}
+
+	public boolean isSuitableFor(FLayer layer) {
+		return (layer instanceof FLyrVect);
+	}
+
+	public void setData(FLayer layer, ILegend data) {
+		this.layer = layer;
+		if(data instanceof DefaultVectorComplexLegend){
+			auxLegend = (DefaultVectorComplexLegend) data;
+			updateComboModel();
+		}
+	}
+	
+	private void saveCurrentPanel(){
+		if(legendPanel != null && currentItem != null){
+			currentItem.setLegend(legendPanel.getLegend());
+		}
+	}
+	
+	
+	public void refreshLegendPanel(){
+		ComplexLegendItem item = (ComplexLegendItem) getComboBox().getSelectedItem();
+		if(item != null){
+			ILegendPanel aux = getLegendPanel(item.getLegend()); 
+			if(aux != null){
+				saveCurrentPanel();
+				
+				symbolPanel.removeAll();
+				legendPanel = aux;
+				legendPanel.setData(layer, item.getLegend());
+				symbolPanel.add(legendPanel.getPanel());
+				symbolPanel.repaint();
+				symbolPanel.revalidate();
+				
+				currentItem = item;
+				currentIndex = getComboBox().getSelectedIndex();
+			}
+		}
+	}
+
+	private ILegendPanel getLegendPanel(ILegend legend){
+		List panels = SymbologySwingLocator.getSwingManager().getLegendEditorClasses();
+		Iterator it = panels.iterator();
+		while(it.hasNext()){
+			Class panelClass = (Class) it.next();
+			ILegendPanel panel;
+			try {
+				panel = (ILegendPanel) panelClass.newInstance();
+				if(!(panel instanceof AbstractParentPanel)){
+					if(panel.getLegendClass().equals(legend.getClass())){
+						panel.setData(layer, legend);
+						return panel;
+					}
+				}
+			} catch (Exception e) {
+				logger.warn("Error creating ILegendPanel. ", e);
+				return null;
+			}
+		}
+		return null;
+	}
+	
+	
+
+	public void update(Observable observable, Object isAccepted) {
+		if(observable instanceof ComplexLegendItemPanel && isAccepted instanceof Boolean){
+			ComplexLegendItemPanel itemPanel = (ComplexLegendItemPanel) observable;
+			boolean acceptForm = (Boolean) isAccepted;
+			if(!acceptForm){
+				/* Si se ha pinchado en cancelar, se cierra sin más */
+				dlg.dispose();
+			}else{
+				if(itemPanel.validateValues()){
+					ComplexLegendItem item = itemPanel.getLegendItem();
+
+					/* Guardo el panel actual*/
+					saveCurrentPanel();
+
+					/* Añado y ordeno la nueva entrada */
+					auxLegend.add(item);
+					updateComboModel();
+
+					/* Cargo el nuevo panel */
+					symbolPanel.removeAll();
+					legendPanel = itemPanel.getLegendPanel();
+					legendPanel.setData(layer, item.getLegend());
+					symbolPanel.add(legendPanel.getPanel());
+					symbolPanel.repaint();
+					
+					/* Selecciono la nueva entrada */
+					currentItem = item;
+					getComboBox().setSelectedItem(item);
+					currentIndex = getComboBox().getSelectedIndex();
+					
+					/* Cierro el diálogo */
+					dlg.dispose();
+				}
+			}
+		}
+	}
+
+	private void updateComboModel() {
+		getComboBoxModel().removeAllElements();
+		if(auxLegend != null){
+			Iterator<ComplexLegendItem> it = auxLegend.getLegends().iterator();
+			while(it.hasNext()){
+				ComplexLegendItem item = (ComplexLegendItem) it.next();
+				getComboBoxModel().addElement(item);
+			}
+					
+		}
+	}
+
+}

Property changes on: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.swing/org.gvsig.complexlegend.swing.impl/src/main/java/org/gvsig/complexlegend/swing/impl/DefaultComplexLegendPanel.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.swing/org.gvsig.complexlegend.swing.impl/src/main/java/package.html
===================================================================
--- org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.swing/org.gvsig.complexlegend.swing.impl/src/main/java/package.html	(revision 0)
+++ org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.swing/org.gvsig.complexlegend.swing.impl/src/main/java/package.html	(revision 147)
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+<title>org.gvsig.landregistryviewer package documentation</title>
+</head>
+<body>
+
+	<p>LandRegistryViewer swing library API default implementation.</p>
+
+</body>
+</html>
\ No newline at end of file

Property changes on: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.swing/org.gvsig.complexlegend.swing.impl/src/main/java/package.html
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.swing/org.gvsig.complexlegend.swing.impl/src/test/resources/README.txt
===================================================================
--- org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.swing/org.gvsig.complexlegend.swing.impl/src/test/resources/README.txt	(revision 0)
+++ org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.swing/org.gvsig.complexlegend.swing.impl/src/test/resources/README.txt	(revision 147)
@@ -0,0 +1,8 @@
+Put into this folder the resources needed by your test classes.
+
+This folder is added to the Tests classpath, so you can load any resources 
+through the ClassLoader.
+
+By default, in this folder you can find an example of log4j configuration,
+prepared to log messages through the console, so logging works when you
+run your tests classes.
\ No newline at end of file

Property changes on: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.swing/org.gvsig.complexlegend.swing.impl/src/test/resources/README.txt
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.swing/org.gvsig.complexlegend.swing.impl/src/test/resources/log4j.xml
===================================================================
--- org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.swing/org.gvsig.complexlegend.swing.impl/src/test/resources/log4j.xml	(revision 0)
+++ org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.swing/org.gvsig.complexlegend.swing.impl/src/test/resources/log4j.xml	(revision 147)
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
+
+<!-- 
+Log4J configuration file for unit tests execution.
+ -->
+<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
+
+	<!-- Appender configuration to show logging messages through the console -->
+	<appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
+		<layout class="org.apache.log4j.PatternLayout">
+			<param name="ConversionPattern" value="%d{HH:mm:ss,SSS} %-5p [%c{2}.%M()]\n  %m%n" />
+		</layout>
+	</appender>
+
+	<!-- 
+	Activate logging messages of DEBUG level of higher only for the
+	org.gvsig.tools packages.
+	You can put full classes names or packages instead, to configure
+	logging for all the classes and subpackages of the package.
+	-->
+	<category name="org.gvsig.tools">
+		<priority value="DEBUG" />
+	</category>
+	<category name="org.gvsig.chart">
+		<priority value="DEBUG" />
+	</category>
+
+	<!-- 
+	By default, show only logging messages of INFO level or higher, 
+	through the previously configured CONSOLE appender. 
+	-->
+	<root>
+		<priority value="INFO" />
+		<appender-ref ref="CONSOLE" />
+	</root>
+</log4j:configuration>
\ No newline at end of file

Property changes on: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.swing/org.gvsig.complexlegend.swing.impl/src/test/resources/log4j.xml
___________________________________________________________________
Added: svn:mime-type
   + text/plain


Property changes on: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.swing/org.gvsig.complexlegend.swing.impl
___________________________________________________________________
Added: svn:ignore
   + target

.settings

.classpath

.project


Index: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.swing/org.gvsig.complexlegend.swing.api/src/main/java/org/gvsig/complexlegend/swing/ComplexLegendSwingLibrary.java
===================================================================
--- org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.swing/org.gvsig.complexlegend.swing.api/src/main/java/org/gvsig/complexlegend/swing/ComplexLegendSwingLibrary.java	(revision 0)
+++ org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.swing/org.gvsig.complexlegend.swing.api/src/main/java/org/gvsig/complexlegend/swing/ComplexLegendSwingLibrary.java	(revision 147)
@@ -0,0 +1,60 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ *
+ */
+package org.gvsig.complexlegend.swing;
+
+import org.gvsig.app.project.documents.view.legend.gui.LegendManager;
+import org.gvsig.complexlegend.ComplexLegendLibrary;
+import org.gvsig.tools.library.AbstractLibrary;
+import org.gvsig.tools.library.LibraryException;
+
+/**
+ * Library for Swing API initialization and configuration.
+ * 
+ * @author gvSIG team
+ * @version $Id$
+ */
+public class ComplexLegendSwingLibrary extends AbstractLibrary {
+
+	@Override
+	public void doRegistration() {
+		registerAsAPI(ComplexLegendSwingLibrary.class);
+	    this.require(ComplexLegendLibrary.class);
+	}
+
+	@Override
+    protected void doInitialize() throws LibraryException {
+        // Do nothing
+    }
+
+    @Override
+    protected void doPostInitialize() throws LibraryException {
+//    		IconThemeHelper.registerIcon("legend",
+//                "legend-overview-dot-density", this);
+//            IconThemeHelper.registerIcon("legend",
+//                "legend-dot-density-low-density-sample", this);
+//            IconThemeHelper.registerIcon("legend",
+//                "legend-dot-density-medium-density-sample", this);
+//            IconThemeHelper.registerIcon("legend",
+//                "legend-dot-density-high-density-sample", this);
+    }
+
+}

Property changes on: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.swing/org.gvsig.complexlegend.swing.api/src/main/java/org/gvsig/complexlegend/swing/ComplexLegendSwingLibrary.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.swing/org.gvsig.complexlegend.swing.api/src/main/java/org/gvsig/complexlegend/swing/ComplexLegendPanel.java
===================================================================
--- org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.swing/org.gvsig.complexlegend.swing.api/src/main/java/org/gvsig/complexlegend/swing/ComplexLegendPanel.java	(revision 0)
+++ org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.swing/org.gvsig.complexlegend.swing.api/src/main/java/org/gvsig/complexlegend/swing/ComplexLegendPanel.java	(revision 147)
@@ -0,0 +1,13 @@
+package org.gvsig.complexlegend.swing;
+
+import javax.swing.ImageIcon;
+import javax.swing.JPanel;
+
+import org.gvsig.app.project.documents.view.legend.gui.ILegendPanel;
+import org.gvsig.fmap.mapcontext.layers.FLayer;
+import org.gvsig.fmap.mapcontext.rendering.legend.ILegend;
+
+public interface ComplexLegendPanel extends ILegendPanel{
+
+
+}

Property changes on: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.swing/org.gvsig.complexlegend.swing.api/src/main/java/org/gvsig/complexlegend/swing/ComplexLegendPanel.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.swing/org.gvsig.complexlegend.swing.api/src/main/java/package.html
===================================================================
--- org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.swing/org.gvsig.complexlegend.swing.api/src/main/java/package.html	(revision 0)
+++ org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.swing/org.gvsig.complexlegend.swing.api/src/main/java/package.html	(revision 147)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+<title>org.gvsig.landregistryviewer package documentation</title>
+</head>
+<body>
+
+	<p>LandRegistryViewer swing library API.</p>
+	
+	<p>
+	It allows to get swing panels to show LandRegistryViewer, and to include them in windows.
+	</p>
+
+</body>
+</html>
\ No newline at end of file

Property changes on: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.swing/org.gvsig.complexlegend.swing.api/src/main/java/package.html
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.swing/org.gvsig.complexlegend.swing.api/src/main/resources/META-INF/services/org.gvsig.tools.library.Library
===================================================================
--- org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.swing/org.gvsig.complexlegend.swing.api/src/main/resources/META-INF/services/org.gvsig.tools.library.Library	(revision 0)
+++ org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.swing/org.gvsig.complexlegend.swing.api/src/main/resources/META-INF/services/org.gvsig.tools.library.Library	(revision 147)
@@ -0,0 +1 @@
+org.gvsig.complexlegend.swing.ComplexLegendSwingLibrary
\ No newline at end of file
Index: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.swing/org.gvsig.complexlegend.swing.api/pom.xml
===================================================================
--- org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.swing/org.gvsig.complexlegend.swing.api/pom.xml	(revision 0)
+++ org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.swing/org.gvsig.complexlegend.swing.api/pom.xml	(revision 147)
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+	<modelVersion>4.0.0</modelVersion>
+	<artifactId>org.gvsig.complexlegend.swing.api</artifactId>
+	<packaging>jar</packaging>
+	<name>org.gvsig.complexlegend.swing.api</name>
+	<parent>
+		<groupId>org.gvsig</groupId>
+		<artifactId>org.gvsig.complexlegend.swing</artifactId>
+		<version>1.0.3</version>
+	</parent>
+	<build>
+		<plugins>
+			<plugin>
+				<groupId>org.apache.maven.plugins</groupId>
+				<artifactId>maven-jar-plugin</artifactId>
+				<configuration>
+				</configuration>
+				<executions>
+				<!--
+				Generates a jar file only with the test classes
+				-->
+					<execution>
+						<goals>
+							<goal>test-jar</goal>
+						</goals>
+					</execution>
+				</executions>
+			</plugin>
+		</plugins>
+	</build>
+	<dependencies>
+		<dependency>
+			<groupId>org.gvsig</groupId>
+			<artifactId>org.gvsig.complexlegend.lib.api</artifactId>
+		</dependency>
+		<dependency>
+			<groupId>org.gvsig</groupId>
+			<artifactId>org.gvsig.app.mainplugin</artifactId>
+		</dependency>
+	</dependencies>
+</project>
\ No newline at end of file

Property changes on: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.swing/org.gvsig.complexlegend.swing.api/pom.xml
___________________________________________________________________
Added: svn:mime-type
   + text/plain


Property changes on: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.swing/org.gvsig.complexlegend.swing.api
___________________________________________________________________
Added: svn:ignore
   + .project

.classpath

target

.settings



Property changes on: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.swing
___________________________________________________________________
Added: svn:ignore
   + .settings

.project


Index: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.app/pom.xml
===================================================================
--- org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.app/pom.xml	(revision 0)
+++ org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.app/pom.xml	(revision 147)
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+	<modelVersion>4.0.0</modelVersion>
+	<artifactId>org.gvsig.complexlegend.app</artifactId>
+	<packaging>pom</packaging>
+	<name>org.gvsig.complexlegend.app</name>
+	<description>complex legend extension</description>
+	<parent>
+        <groupId>org.gvsig</groupId>
+        <artifactId>org.gvsig.complexlegend</artifactId>
+		<version>1.0.3</version>
+	</parent>
+	<dependencyManagement>
+		<dependencies>
+		</dependencies>
+	</dependencyManagement>
+
+	<modules>
+		<module>org.gvsig.complexlegend.app.mainplugin</module>
+	</modules>
+
+</project>
\ No newline at end of file

Property changes on: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.app/pom.xml
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.app/org.gvsig.complexlegend.app.mainplugin/buildNumber.properties
===================================================================
--- org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.app/org.gvsig.complexlegend.app.mainplugin/buildNumber.properties	(revision 0)
+++ org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.app/org.gvsig.complexlegend.app.mainplugin/buildNumber.properties	(revision 147)
@@ -0,0 +1,2 @@
+#Thu Apr 02 10:53:01 CEST 2015
+buildNumber=10

Property changes on: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.app/org.gvsig.complexlegend.app.mainplugin/buildNumber.properties
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.app/org.gvsig.complexlegend.app.mainplugin/src/main/resources-plugin/i18n/text.properties
===================================================================
--- org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.app/org.gvsig.complexlegend.app.mainplugin/src/main/resources-plugin/i18n/text.properties	(revision 0)
+++ org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.app/org.gvsig.complexlegend.app.mainplugin/src/main/resources-plugin/i18n/text.properties	(revision 147)
@@ -0,0 +1,26 @@
+#Translations for language [es]
+#Tue May 12 10:57:39 CEST 2009
+panel_error_title=Error en el panel
+panel_error=Error en la creación del panel
+min_max_error_title=Valores de escala por definir
+min_max_error=Se debe definir correctamente la escala mínima y máxima
+min_greather_than_max_error_title=Datos inválidos
+min_greather_than_max_error=Escala mínima no puede ser mayor que escala máxima
+overlaping_error_title=Rango superpuesto
+overlaping_error=El rango definido se superpone con otro ya existente
+MinScale=Escala mínima
+MaxScale=Escala máxima
+LegendType=Tipo de leyenda
+accept=Aceptar
+cancel=Cancelar
+SelectItem=Define un rango
+legend_by_scale=Permite la edición de distintas leyendas en función de la escala
+complex_symbology=Símbolo complejo
+select_scale=Rangos definidos
+legend_definition=Definición de la leyenda
+without_min_scale=Sin rango inferior
+without_max_scale=Sin rango superior
+
+complex_label_class_properties=Definición de la etiqueta
+Label_definition=Definición de la etiqueta
+Label_scale_definition=Definición de la escala
\ No newline at end of file

Property changes on: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.app/org.gvsig.complexlegend.app.mainplugin/src/main/resources-plugin/i18n/text.properties
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.app/org.gvsig.complexlegend.app.mainplugin/src/main/resources-plugin/i18n/text_en.properties
===================================================================
--- org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.app/org.gvsig.complexlegend.app.mainplugin/src/main/resources-plugin/i18n/text_en.properties	(revision 0)
+++ org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.app/org.gvsig.complexlegend.app.mainplugin/src/main/resources-plugin/i18n/text_en.properties	(revision 147)
@@ -0,0 +1,26 @@
+#Translations for language [en]
+#Tue May 12 10:57:38 CEST 2009
+panel_error_title=Panel error
+panel_error=Error creating the panel
+min_max_error_title=Scale values not defined
+min_max_error=Scales are not defined correctly
+min_greather_than_max_error_title=Invalid data
+min_greather_than_max_error=Min scale can't be greater than max scale
+overlaping_error_title=Overlap range
+overlaping_error=This range overlaps another one defined
+MinScale=Min scale
+MaxScale=Max scale
+LegendType=Legend type
+accept=Accept
+cancel=Cancel
+SelectItem=Define a range
+legend_by_scale=Allow edit different legends by scale
+complex_symbology=Complex symbology
+select_scale=Defined ranges
+legend_definition=Legend definition
+without_min_scale=Without min scale
+without_max_scale=Without max scale
+
+complex_label_class_properties=Label definition
+Label_definition=Label definition
+Label_scale_definition=Scale definition

Property changes on: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.app/org.gvsig.complexlegend.app.mainplugin/src/main/resources-plugin/i18n/text_en.properties
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.app/org.gvsig.complexlegend.app.mainplugin/src/main/resources-plugin/config.xml
===================================================================
--- org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.app/org.gvsig.complexlegend.app.mainplugin/src/main/resources-plugin/config.xml	(revision 0)
+++ org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.app/org.gvsig.complexlegend.app.mainplugin/src/main/resources-plugin/config.xml	(revision 147)
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<plugin-config>
+	<libraries library-dir="lib">
+	</libraries>
+	<depends plugin-name="org.gvsig.app.mainplugin"/>
+	<depends plugin-name="org.gvsig.labeling.app.mainplugin"/>
+		<resourceBundle name="text"/>
+	<extensions>
+		<extension class-name="org.gvsig.complexlegend.app.mainplugin.ComplexLegendExtension"
+			description="Complex legend extension"
+			active="true">
+		</extension>
+	</extensions>
+</plugin-config>
\ No newline at end of file

Property changes on: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.app/org.gvsig.complexlegend.app.mainplugin/src/main/resources-plugin/config.xml
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.app/org.gvsig.complexlegend.app.mainplugin/src/main/resources-plugin/images/layer/layer-icon-dwg.png
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream

Property changes on: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.app/org.gvsig.complexlegend.app.mainplugin/src/main/resources-plugin/images/layer/layer-icon-dwg.png
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Index: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.app/org.gvsig.complexlegend.app.mainplugin/src/main/assembly/gvsig-plugin-package.xml
===================================================================
--- org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.app/org.gvsig.complexlegend.app.mainplugin/src/main/assembly/gvsig-plugin-package.xml	(revision 0)
+++ org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.app/org.gvsig.complexlegend.app.mainplugin/src/main/assembly/gvsig-plugin-package.xml	(revision 147)
@@ -0,0 +1,39 @@
+<assembly>
+  <id>gvsig-plugin-package</id>
+  <formats>
+    <format>zip</format>
+  </formats>
+  <baseDirectory>${project.artifactId}</baseDirectory>
+  <includeBaseDirectory>true</includeBaseDirectory>
+  <files>
+    <file>
+      <source>target/${project.artifactId}-${project.version}.jar</source>
+      <outputDirectory>lib</outputDirectory>
+    </file>
+    <file>
+      <source>target/package.info</source>
+    </file>
+  </files>
+
+  <fileSets>
+    <fileSet>
+      <directory>src/main/resources-plugin</directory>
+      <outputDirectory>.</outputDirectory>
+    </fileSet>
+  </fileSets>
+
+  <dependencySets>
+    <dependencySet>
+      <useProjectArtifact>false</useProjectArtifact>
+      <useTransitiveDependencies>false</useTransitiveDependencies>
+      <outputDirectory>lib</outputDirectory>
+      <includes>
+        <include>org.gvsig:org.gvsig.complexlegend.lib.api</include>
+        <include>org.gvsig:org.gvsig.complexlegend.swing.api</include>
+        <include>org.gvsig:org.gvsig.complexlegend.lib.impl</include>
+        <include>org.gvsig:org.gvsig.complexlegend.swing.impl</include>
+      </includes>
+    </dependencySet>
+  </dependencySets>
+
+</assembly>
\ No newline at end of file

Property changes on: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.app/org.gvsig.complexlegend.app.mainplugin/src/main/assembly/gvsig-plugin-package.xml
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.app/org.gvsig.complexlegend.app.mainplugin/src/main/java/org/gvsig/complexlegend/app/mainplugin/ComplexLegendExtension.java
===================================================================
--- org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.app/org.gvsig.complexlegend.app.mainplugin/src/main/java/org/gvsig/complexlegend/app/mainplugin/ComplexLegendExtension.java	(revision 0)
+++ org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.app/org.gvsig.complexlegend.app.mainplugin/src/main/java/org/gvsig/complexlegend/app/mainplugin/ComplexLegendExtension.java	(revision 147)
@@ -0,0 +1,61 @@
+/* OSM layers for gvSIG. 
+ * Geographic Information System of the Valencian Government
+*
+* Copyright (C) 2012 Nacho Brodin
+* 
+* This program is free software; you can redistribute it and/or
+* modify it under the terms of the GNU General Public License
+* as published by the Free Software Foundation; either version 2
+* of the License, or (at your option) any later version.
+* 
+* This program is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+* GNU General Public License for more details.
+* 
+* You should have received a copy of the GNU General Public License
+* along with this program; if not, write to the Free Software
+* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
+* MA  02110-1301, USA.
+* 
+*/
+package org.gvsig.complexlegend.app.mainplugin;
+
+import org.gvsig.andami.plugins.Extension;
+import org.gvsig.app.project.documents.view.legend.gui.LegendManager;
+import org.gvsig.complexlabel.app.editor.ComplexLabelClassEditorFactory;
+import org.gvsig.complexlegend.impl.DefaultVectorComplexLegend;
+import org.gvsig.complexlegend.swing.impl.DefaultComplexLegendPanel;
+import org.gvsig.symbology.swing.SymbologySwingLocator;
+import org.gvsig.symbology.swing.SymbologySwingManager;
+
+/**
+ * Complex Legend Extension to gvSIG.
+ * @author Jose Badia (jbadia@scolab.es)
+ */
+public class ComplexLegendExtension extends Extension {
+
+	public void initialize() {
+		SymbologySwingManager manager = SymbologySwingLocator.getSwingManager();
+		manager.registerLegendEditor(DefaultComplexLegendPanel.class);
+		manager.registerLabelClassEditor(new ComplexLabelClassEditorFactory());
+	}
+	
+	@Override
+	public void postInitialize() {
+		super.postInitialize();
+		
+	}
+
+	public void execute(String actionCommand) {
+		
+	}
+
+	public boolean isEnabled() {
+		return true;
+	}
+
+	public boolean isVisible() {
+		return true;
+	}
+}

Property changes on: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.app/org.gvsig.complexlegend.app.mainplugin/src/main/java/org/gvsig/complexlegend/app/mainplugin/ComplexLegendExtension.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.app/org.gvsig.complexlegend.app.mainplugin/src/main/java/org/gvsig/complexlabel/app/editor/ComplexLabelClassEditorFactory.java
===================================================================
--- org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.app/org.gvsig.complexlegend.app.mainplugin/src/main/java/org/gvsig/complexlabel/app/editor/ComplexLabelClassEditorFactory.java	(revision 0)
+++ org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.app/org.gvsig.complexlegend.app.mainplugin/src/main/java/org/gvsig/complexlabel/app/editor/ComplexLabelClassEditorFactory.java	(revision 147)
@@ -0,0 +1,35 @@
+package org.gvsig.complexlabel.app.editor;
+
+import org.gvsig.app.gui.labeling.LabelClassEditor;
+import org.gvsig.app.gui.labeling.LabelClassEditorFactory;
+import org.gvsig.complexlabel.impl.DefaultComplexLabelClass;
+import org.gvsig.fmap.dal.feature.FeatureStore;
+import org.gvsig.fmap.mapcontext.rendering.legend.styling.ILabelClass;
+
+public class ComplexLabelClassEditorFactory implements LabelClassEditorFactory{
+
+	public static final String FACTORY_ID = "ClassEditorByScale";
+	
+	public String getName() {
+		return "Class editor by scale";
+	}
+
+	public String getID() {
+		return FACTORY_ID;
+	}
+
+	public LabelClassEditor createEditor(ILabelClass labelClass,
+			FeatureStore store) {
+		 ComplexLabelClassEditor editor = new ComplexLabelClassEditor(store);
+         editor.setLabelClass(labelClass);
+         return editor;
+	}
+
+	public boolean accept(Class<? extends ILabelClass> labelClass) {
+		if(DefaultComplexLabelClass.class.getName().equals(labelClass.getName()) ) {
+            return true;
+        }
+        return false;
+	}
+	
+}

Property changes on: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.app/org.gvsig.complexlegend.app.mainplugin/src/main/java/org/gvsig/complexlabel/app/editor/ComplexLabelClassEditorFactory.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.app/org.gvsig.complexlegend.app.mainplugin/src/main/java/org/gvsig/complexlabel/app/editor/LabelClassScalePanel.java
===================================================================
--- org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.app/org.gvsig.complexlegend.app.mainplugin/src/main/java/org/gvsig/complexlabel/app/editor/LabelClassScalePanel.java	(revision 0)
+++ org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.app/org.gvsig.complexlegend.app.mainplugin/src/main/java/org/gvsig/complexlabel/app/editor/LabelClassScalePanel.java	(revision 147)
@@ -0,0 +1,185 @@
+package org.gvsig.complexlabel.app.editor;
+
+import java.awt.BorderLayout;
+import java.awt.Component;
+import java.awt.Dimension;
+import java.awt.GridBagConstraints;
+import java.awt.GridBagLayout;
+import java.awt.Insets;
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+
+import javax.swing.JCheckBox;
+import javax.swing.JLabel;
+import javax.swing.JPanel;
+import javax.swing.JSpinner;
+import javax.swing.SpinnerModel;
+import javax.swing.SpinnerNumberModel;
+
+import org.gvsig.complexlabel.impl.DefaultComplexLabelClass;
+import org.gvsig.tools.ToolsLocator;
+import org.gvsig.tools.i18n.I18nManager;
+
+public class LabelClassScalePanel extends JPanel{
+
+	/**
+	 * 
+	 */
+	private static final long serialVersionUID = -7443140994364499103L;
+	private I18nManager i18nManager;
+	private JSpinner maxScaleTXT;
+	private JSpinner minScaleTXT;
+	private JCheckBox minScaleCk;
+	private JCheckBox maxScaleCk;
+
+	public LabelClassScalePanel(){
+		this.i18nManager = ToolsLocator.getI18nManager();
+		initialize();
+	}
+
+	public LabelClassScalePanel(DefaultComplexLabelClass labelClass){
+		this();
+		setModel(labelClass);
+	}
+
+	private void setModel(DefaultComplexLabelClass labelClass) {
+		setMinScale(labelClass.getMinScale());
+		setMaxScale(labelClass.getMaxScale());
+	}
+	
+	public boolean isAccepted(){
+		return (getMaxScaleField().getValue() != null && getMinScaleField().getValue() != null); 
+	}
+
+	private void initialize() {
+		setPreferredSize(new Dimension(450, 160));
+
+		JPanel mainPanel = new JPanel(new BorderLayout());
+		mainPanel.setPreferredSize(new Dimension(440, 100));
+
+		JPanel mainDataPanel = new JPanel();
+		mainDataPanel.setPreferredSize(new Dimension(200, 100));
+		GridBagLayout gridBagLayout2 = new GridBagLayout();
+		gridBagLayout2.columnWidths = new int[] { 150, 180, 70 };
+		gridBagLayout2.rowHeights = new int[] { 0, 0, 0, 0, 0, 0 };
+		mainDataPanel.setLayout(gridBagLayout2);
+		//mainDataPanel.setBorder(new TitledBorder( i18nManager.getTranslation("Connection_configuration") + ":"));
+
+		GridBagConstraints c = new GridBagConstraints();
+		c.fill = GridBagConstraints.HORIZONTAL;
+		c.anchor = GridBagConstraints.WEST;
+		c.insets = new Insets(3, 0, 3, 0);
+		c.ipadx = 10;
+		c.gridx = 0;
+		c.gridy = 0;
+		JLabel labelURL = new JLabel( i18nManager.getTranslation("MinScale")+":");
+		mainDataPanel.add(labelURL, c);
+
+		c.gridx = 1;
+		c.gridwidth =2;
+		mainDataPanel.add(getMinScaleField(), c);
+		c.gridy = 1;
+		mainDataPanel.add(getWithoutMinScale(), c);
+
+		c.gridx = 0;
+		c.gridy = 2;
+		c.gridwidth =1;
+		JLabel labelUser = new JLabel( i18nManager.getTranslation("MaxScale")+":");
+		mainDataPanel.add(labelUser, c);
+
+		c.gridx = 1;
+		c.gridwidth =2;
+		mainDataPanel.add(getMaxScaleField(), c);
+		c.gridy = 3;
+		mainDataPanel.add(getWithoutMaxScale(), c);
+
+		mainPanel.add(mainDataPanel, BorderLayout.CENTER);
+		add(mainPanel, BorderLayout.CENTER);
+	}
+	
+	private JSpinner getMaxScaleField() {
+		if(maxScaleTXT == null){
+			SpinnerModel model =
+					new SpinnerNumberModel(0, 0, 1000000000, 1000000);  
+			maxScaleTXT = new JSpinner(model);
+		}
+		return maxScaleTXT;
+	}
+
+	private JSpinner getMinScaleField() {
+		if(minScaleTXT == null){
+			SpinnerModel model =
+					new SpinnerNumberModel(0, 0, 1000000000, 1000000);  
+			minScaleTXT = new JSpinner(model);
+		}
+		return minScaleTXT;
+	}
+
+	public double getMinScale(){
+		if(getWithoutMinScale().isSelected()){
+			return -1;
+		}
+		Object obj = getMinScaleField().getValue();
+		if(obj instanceof Integer){
+			Integer x = (Integer) obj;
+			return (Double) x.doubleValue();
+		}
+		return (Double) obj;
+	}
+
+	public double getMaxScale(){
+		if(getWithoutMaxScale().isSelected()){
+			return 1000000001;
+		}
+		Object obj = getMaxScaleField().getValue();
+		if(obj instanceof Integer){
+			Integer x = (Integer) obj;
+			return (Double) x.doubleValue();
+		}
+		return (Double) obj;
+	}
+
+	public void setMinScale(double scale){
+		if(scale != -1){
+			getMinScaleField().setValue(scale);
+		}else{
+			getWithoutMinScale().setSelected(true);
+		}
+	}
+
+	public void setMaxScale(double scale){
+		if(scale != 1000000001){
+			getMaxScaleField().setValue(scale);
+		}else{
+			getWithoutMaxScale().setSelected(true);
+		}
+	}
+	
+	private JCheckBox getWithoutMinScale() {
+		if(minScaleCk == null){
+			minScaleCk = new JCheckBox(i18nManager.getTranslation("without_min_scale"));
+			minScaleCk.addActionListener(new ActionListener() {
+				public void actionPerformed(ActionEvent arg0) {
+					getMinScaleField().setEnabled(!minScaleCk.isSelected());
+				}
+			});
+		}
+		return minScaleCk;
+	}
+	
+	private JCheckBox getWithoutMaxScale() {
+		if(maxScaleCk == null){
+			maxScaleCk = new JCheckBox(i18nManager.getTranslation("without_max_scale"));
+			maxScaleCk.addActionListener(new ActionListener() {
+				public void actionPerformed(ActionEvent arg0) {
+					getMaxScaleField().setEnabled(!maxScaleCk.isSelected());
+				}
+			});
+		}
+		return maxScaleCk;
+	}
+
+	public Component asJComponent() {
+		return this;
+	}
+}

Property changes on: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.app/org.gvsig.complexlegend.app.mainplugin/src/main/java/org/gvsig/complexlabel/app/editor/LabelClassScalePanel.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.app/org.gvsig.complexlegend.app.mainplugin/src/main/java/org/gvsig/complexlabel/app/editor/ComplexLabelClassEditor.java
===================================================================
--- org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.app/org.gvsig.complexlegend.app.mainplugin/src/main/java/org/gvsig/complexlabel/app/editor/ComplexLabelClassEditor.java	(revision 0)
+++ org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.app/org.gvsig.complexlegend.app.mainplugin/src/main/java/org/gvsig/complexlabel/app/editor/ComplexLabelClassEditor.java	(revision 147)
@@ -0,0 +1,162 @@
+package org.gvsig.complexlabel.app.editor;
+
+import java.awt.BorderLayout;
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+
+import javax.swing.JComponent;
+import javax.swing.JPanel;
+import javax.swing.JTabbedPane;
+
+import org.gvsig.andami.ui.mdiManager.IWindow;
+import org.gvsig.andami.ui.mdiManager.WindowInfo;
+import org.gvsig.app.ApplicationLocator;
+import org.gvsig.app.gui.labeling.LabelClassEditor;
+import org.gvsig.complexlabel.impl.ComplexLabelClassFactory;
+import org.gvsig.complexlabel.impl.DefaultComplexLabelClass;
+import org.gvsig.fmap.dal.feature.FeatureStore;
+import org.gvsig.fmap.mapcontext.rendering.legend.styling.ILabelClass;
+import org.gvsig.gui.beans.AcceptCancelPanel;
+import org.gvsig.labeling.gui.layerproperties.LabelClassProperties;
+import org.gvsig.symbology.SymbologyLocator;
+import org.gvsig.tools.ToolsLocator;
+import org.gvsig.tools.i18n.I18nManager;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+public class ComplexLabelClassEditor extends JPanel implements LabelClassEditor, IWindow, ActionListener{
+
+	/**
+	 * 
+	 */
+	private static final long serialVersionUID = 1L;
+	private static final Logger logger = LoggerFactory.getLogger(ComplexLabelClassEditor.class);
+
+	private LabelClassProperties labelClassEditorPanel;
+	private LabelClassScalePanel labelClassScalePanel;
+	private AcceptCancelPanel acceptCancelPanel;
+	private JTabbedPane mainPanel;
+	private I18nManager i18nManager;
+	private FeatureStore fstore;
+	private DefaultComplexLabelClass complexLabelClass;
+
+
+	public ComplexLabelClassEditor(FeatureStore store){
+		this(store, null);
+	}
+
+	public ComplexLabelClassEditor(FeatureStore store, DefaultComplexLabelClass labelClass){
+		this.i18nManager = ToolsLocator.getI18nManager();
+		this.fstore = store;
+		initialize();
+		
+		if(labelClass == null){
+			ComplexLabelClassFactory factory = (ComplexLabelClassFactory) SymbologyLocator
+				.getSymbologyManager().getLabelClassFactory(ComplexLabelClassFactory.FACTORY_ID);
+			this.complexLabelClass = (DefaultComplexLabelClass) factory.create();
+		}else{
+			this.complexLabelClass = labelClass;
+		}
+		setLabelClass(this.complexLabelClass);
+	}
+
+	private void initialize(){
+		setLayout(new BorderLayout());
+
+		mainPanel = new JTabbedPane();
+		mainPanel.addTab(i18nManager.getTranslation("Label_definition"), getPropertiesPanel().asJComponent());
+		mainPanel.addTab(i18nManager.getTranslation("Label_scale_definition"), getScaledPanel().asJComponent());
+
+		add(mainPanel, BorderLayout.CENTER);
+		add(getAcceptCancelPanelButton(), BorderLayout.SOUTH);
+	}
+
+	private AcceptCancelPanel getAcceptCancelPanelButton() {
+		if(this.acceptCancelPanel == null){
+			this.acceptCancelPanel = new AcceptCancelPanel(this, this);
+			this.acceptCancelPanel.setVisible(true);
+		}
+		return this.acceptCancelPanel;
+	}
+
+	public void actionPerformed(ActionEvent e) {
+		if ("OK".equals(e.getActionCommand())) {
+			labelClassEditorPanel.actionPerformed(new ActionEvent(this, 1, "other"));
+			getLabelClass();
+			try {
+				ApplicationLocator.getManager().getUIManager().closeWindow(this);
+			} catch (Exception ex) {
+				// this only happens when running this as stand-alone app
+				// from main method;
+				logger.warn("While closing window.", ex);
+			}
+		} else if ("CANCEL".equals(e.getActionCommand())) {
+			try {
+				ApplicationLocator.getManager().getUIManager().closeWindow(this);
+			} catch (Exception ex) {
+				// this only happens when running this as stand-alone app
+				// from main method;
+				logger.warn("While closing window.", ex);
+			}
+		}
+	}
+
+
+
+	private LabelClassProperties getPropertiesPanel() {
+		if(this.labelClassEditorPanel == null){
+			this.labelClassEditorPanel = new LabelClassProperties(fstore);
+			this.labelClassEditorPanel.setAcceptCancelVisible(false);
+		}
+		return this.labelClassEditorPanel;
+	}
+
+	private LabelClassScalePanel getScaledPanel() {
+		if(this.labelClassScalePanel == null){
+			this.labelClassScalePanel = new LabelClassScalePanel();
+		}
+		return this.labelClassScalePanel;
+	}
+
+	public JComponent asJComponent() {
+		return this;
+	}
+
+	public ILabelClass getLabelClass() {
+		labelClassEditorPanel.doAccept();
+		complexLabelClass = (DefaultComplexLabelClass) labelClassEditorPanel.getLabelClass();
+		
+		complexLabelClass.setMaxScale(labelClassScalePanel.getMaxScale());
+		complexLabelClass.setMinScale(labelClassScalePanel.getMinScale());
+		return complexLabelClass;
+	}
+
+	public void setLabelClass(ILabelClass labelClass) {
+		this.complexLabelClass = (DefaultComplexLabelClass) labelClass;
+		labelClassEditorPanel.setLabelClass(complexLabelClass);
+		labelClassScalePanel.setMaxScale(complexLabelClass.getMaxScale());
+		labelClassScalePanel.setMinScale(complexLabelClass.getMinScale());
+	}
+
+	public void showDialog() {
+		ApplicationLocator.getManager().getUIManager().addWindow(this);
+	}
+
+	public boolean isAccepted() {
+		return getPropertiesPanel().isAccepted() && getScaledPanel().isAccepted();
+	}
+
+	public WindowInfo getWindowInfo() {
+		WindowInfo wi = new WindowInfo(WindowInfo.MODALDIALOG
+				| WindowInfo.RESIZABLE);
+		wi.setTitle(i18nManager.getTranslation("complex_label_class_properties"));
+		wi.setWidth(getPreferredSize().width + 8);
+		wi.setHeight(getPreferredSize().height);
+		return wi;
+	}
+
+	public Object getWindowProfile() {
+		return WindowInfo.DIALOG_PROFILE;
+	}
+
+}

Property changes on: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.app/org.gvsig.complexlegend.app.mainplugin/src/main/java/org/gvsig/complexlabel/app/editor/ComplexLabelClassEditor.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.app/org.gvsig.complexlegend.app.mainplugin/pom.xml
===================================================================
--- org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.app/org.gvsig.complexlegend.app.mainplugin/pom.xml	(revision 0)
+++ org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.app/org.gvsig.complexlegend.app.mainplugin/pom.xml	(revision 147)
@@ -0,0 +1,137 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+
+  <modelVersion>4.0.0</modelVersion>
+  <artifactId>org.gvsig.complexlegend.app.mainplugin</artifactId>
+  <packaging>jar</packaging>
+  <name>Complex Legend extension</name>
+  <description>
+Complex Legend extension
+
+  </description>
+  <parent>
+      <groupId>org.gvsig</groupId>
+      <artifactId>org.gvsig.complexlegend.app</artifactId>
+      <version>1.0.3</version>
+  </parent>
+
+  <dependencies>
+    <dependency>
+		<groupId>org.gvsig</groupId>
+		<artifactId>org.gvsig.tools.lib</artifactId>
+		<scope>compile</scope>
+	</dependency>
+	<dependency>
+		<groupId>org.gvsig</groupId>
+		<artifactId>org.gvsig.andami</artifactId>
+		<scope>compile</scope>
+	</dependency>
+	<dependency>
+		<groupId>org.gvsig</groupId>
+		<artifactId>org.gvsig.app.mainplugin</artifactId>
+		<scope>compile</scope>
+	</dependency>
+	<dependency>
+		<groupId>org.gvsig</groupId>
+		<artifactId>org.gvsig.fmap.control</artifactId>
+		<scope>compile</scope>
+	</dependency>
+	<dependency>
+		<groupId>org.gvsig</groupId>
+		<artifactId>org.gvsig.fmap.mapcontext.api</artifactId>
+		<scope>compile</scope>
+	</dependency>
+	<dependency>
+		<groupId>org.gvsig</groupId>
+		<artifactId>org.gvsig.fmap.geometry.api</artifactId>
+		<scope>compile</scope>
+	</dependency>
+	<dependency>
+		<groupId>org.gvsig</groupId>
+		<artifactId>org.gvsig.fmap.dal.api</artifactId>
+		<scope>compile</scope>
+	</dependency>
+	<dependency>
+		<groupId>org.gvsig</groupId>
+		<artifactId>org.gvsig.symbology.lib.api</artifactId>
+		<scope>compile</scope>
+	</dependency>
+	<dependency>
+		<groupId>org.gvsig</groupId>
+		<artifactId>org.gvsig.complexlegend.lib.api</artifactId>
+		<scope>compile</scope>
+	</dependency>
+	<dependency>
+		<groupId>org.gvsig</groupId>
+		<artifactId>org.gvsig.complexlegend.lib.impl</artifactId>
+	</dependency>
+	<dependency>
+		<groupId>org.gvsig</groupId>
+		<artifactId>org.gvsig.complexlegend.swing.api</artifactId>
+		<scope>compile</scope>
+	</dependency>
+	<dependency>
+		<groupId>org.gvsig</groupId>
+		<artifactId>org.gvsig.complexlegend.swing.impl</artifactId>
+	</dependency>
+	<dependency>
+		<groupId>org.gvsig</groupId>
+		<artifactId>org.gvsig.labeling.app.mainplugin</artifactId>
+		<version>2.0.55</version>
+		<scope>compile</scope>
+	</dependency>
+  </dependencies>
+  
+    <properties>
+        <!-- Package info property values -->
+        <!-- Default values in org.gvsig.desktop -->
+        <gvsig.package.info.state>testing</gvsig.package.info.state>
+        <gvsig.package.info.official>true</gvsig.package.info.official>
+        <gvsig.package.info.dependencies>required: org.gvsig.app.mainplugin -ge 2.1.0-A</gvsig.package.info.dependencies>
+        <gvsig.package.info.categories>Formats,Vector</gvsig.package.info.categories>
+        <gvsig.package.info.poolURL>https://devel.gvsig.org/download/projects/gvsig-base-legends/pool/</gvsig.package.info.poolURL>
+   		<gvsig.package.info.operatingSystem>all</gvsig.package.info.operatingSystem>
+    	<gvsig.package.info.architecture>all</gvsig.package.info.architecture>
+    	<gvsig.install.plugin>true</gvsig.install.plugin>
+    	<gvsig.install.plugin.package>true</gvsig.install.plugin.package>    
+ 	</properties>
+    
+    
+    
+  
+  <build>
+    <plugins>
+      
+      <plugin>
+        <!-- Skip compilation tests -->
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-compiler-plugin</artifactId>
+        <executions>
+          <execution>
+            <id>default-testCompile</id>
+            <phase>process-test-sources</phase>
+            <goals>
+              <goal>testCompile</goal>
+            </goals>
+            <configuration>
+              <skip>true</skip>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+
+      <plugin>
+        <!-- Skip test execution -->
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-surefire-plugin</artifactId>
+        <configuration>
+          <skipTests>true</skipTests>
+        </configuration>
+      </plugin>      
+      
+    </plugins>
+  </build>
+
+</project>
+

Property changes on: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.app/org.gvsig.complexlegend.app.mainplugin/pom.xml
___________________________________________________________________
Added: svn:mime-type
   + text/plain


Property changes on: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.app/org.gvsig.complexlegend.app.mainplugin
___________________________________________________________________
Added: svn:ignore
   + .settings

.classpath

target

.project



Property changes on: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/org.gvsig.complexlegend.app
___________________________________________________________________
Added: svn:ignore
   + .project

.settings


Index: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/pom.xml
===================================================================
--- org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/pom.xml	(revision 0)
+++ org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/pom.xml	(revision 147)
@@ -0,0 +1,115 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+	<modelVersion>4.0.0</modelVersion>
+	<artifactId>org.gvsig.complexlegend</artifactId>
+	<packaging>pom</packaging>
+	<version>1.0.3</version>
+	<name>org.gvsig.complexlegend</name>
+	<description>complex legend extension</description>
+	<parent>
+		<groupId>org.gvsig</groupId>
+		<artifactId>org.gvsig.desktop</artifactId>
+		<version>2.0.90</version>
+	</parent>
+    <url>http://devel.gvsig.org/sites/org.gvsig.complexlegend/${project.version}</url>
+ 	<scm>
+        <connection>scm:svn:http://devel.gvsig.org/svn/gvsig-base-legends/org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3</connection>
+        <developerConnection>scm:svn:http://devel.gvsig.org/svn/gvsig-base-legends/org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3</developerConnection>
+        <url>http://devel.gvsig.org/svn/gvsig-base-legends/org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3</url>
+    </scm>
+	<developers>
+		<developer>
+			<id>jjdelcerro</id>
+			<name>Joaquin Jose del Cerro</name>
+			<email>jjdelcerro@gvsig.org</email>
+			<roles>
+				<role>Architect</role>
+				<role>Developer</role>
+			</roles>
+		</developer>
+		<developer>
+			<id>jbadia</id>
+			<name>Jose Badia</name>
+			<email>badia_jos@gva.es</email>
+			<roles>
+				<role>Developer</role>
+			</roles>
+		</developer>
+	</developers>
+	<distributionManagement>
+		<site>
+			<id>gvsig-repository</id>
+            <url>dav:https://devel.gvsig.org/sites/org.gvsig.complexlegend/${project.version}</url>
+		</site>
+	</distributionManagement>
+	<repositories>
+		<repository>
+			<id>gvsig-public-http-repository</id>
+			<name>gvSIG maven public HTTP repository</name>
+			<url>http://devel.gvsig.org/m2repo/j2se</url>
+			<releases>
+				<enabled>true</enabled>
+				<updatePolicy>daily</updatePolicy>
+				<checksumPolicy>warn</checksumPolicy>
+			</releases>
+			<snapshots>
+				<enabled>true</enabled>
+				<updatePolicy>daily</updatePolicy>
+				<checksumPolicy>warn</checksumPolicy>
+			</snapshots>
+		</repository>
+	</repositories>
+	<build>
+		<plugins>
+			<plugin>
+				<groupId>org.apache.maven.plugins</groupId>
+				<artifactId>maven-release-plugin</artifactId>
+				<configuration>
+					<tagBase>http://devel.gvsig.org/svn/gvsig-base-legends/org.gvsig.complexlegend/tags</tagBase>
+				</configuration>
+			</plugin>
+		</plugins>
+	</build>
+	<dependencyManagement>
+		<dependencies>
+			<dependency>
+				<groupId>org.gvsig</groupId>
+				<artifactId>org.gvsig.complexlegend.lib.api</artifactId>
+				<version>1.0.3</version>
+			</dependency>
+			<dependency>
+				<groupId>org.gvsig</groupId>
+				<artifactId>org.gvsig.complexlegend.lib.api</artifactId>
+				<version>1.0.3</version>
+				<type>test-jar</type>
+			</dependency>
+			<dependency>
+				<groupId>org.gvsig</groupId>
+				<artifactId>org.gvsig.complexlegend.lib.impl</artifactId>
+				<version>1.0.3</version>
+			</dependency>
+			<dependency>
+				<groupId>org.gvsig</groupId>
+				<artifactId>org.gvsig.complexlegend.swing.api</artifactId>
+				<version>1.0.3</version>
+			</dependency>
+			<dependency>
+				<groupId>org.gvsig</groupId>
+				<artifactId>org.gvsig.complexlegend.swing.api</artifactId>
+				<version>1.0.3</version>
+				<type>test-jar</type>
+			</dependency>
+			<dependency>
+				<groupId>org.gvsig</groupId>
+				<artifactId>org.gvsig.complexlegend.swing.impl</artifactId>
+				<version>1.0.3</version>
+			</dependency>
+		</dependencies>
+	</dependencyManagement>
+	<modules>
+		<module>org.gvsig.complexlegend.lib</module>
+		<module>org.gvsig.complexlegend.swing</module>
+		<module>org.gvsig.complexlegend.main</module>
+		<module>org.gvsig.complexlegend.app</module>
+	</modules>
+</project>
\ No newline at end of file

Property changes on: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend/pom.xml
___________________________________________________________________
Added: svn:mime-type
   + text/plain


Property changes on: org.gvsig.complexlegend/tags/org.gvsig.complexlegend-1.0.3/org.gvsig.complexlegend
___________________________________________________________________
Added: svn:ignore
   + .settings

.project


