|
From: <be...@us...> - 2006-10-23 22:00:15
|
Revision: 61
http://svn.sourceforge.net/jtreemap/?rev=61&view=rev
Author: benoitx
Date: 2006-10-23 14:58:57 -0700 (Mon, 23 Oct 2006)
Log Message:
-----------
Move to net.sf.jtreemap as the root package name for everything.
Modified Paths:
--------------
trunk/JTreeMap/build.xml
trunk/JTreeMap/project.xml
trunk/JTreeMap/qalab.xml
trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/ColorProvider.java
trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/DefaultToolTip.java
trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/DefaultToolTipBuilder.java
trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/DefaultValue.java
trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/IToolTipBuilder.java
trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/JTreeMap.java
trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/SplitByNumber.java
trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/SplitBySlice.java
trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/SplitBySortedWeight.java
trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/SplitByWeight.java
trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/SplitSquarified.java
trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/SplitStrategy.java
trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/TreeMapNode.java
trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/TreeMapNodeBuilder.java
trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/UniqueColorProvider.java
trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/Value.java
trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/example/BuilderTM3.java
trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/example/BuilderXML.java
trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/example/HSBTreeMapColorProvider.java
trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/example/JTreeMapAppletExample.java
trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/example/JTreeMapExample.java
trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/example/RandomColorProvider.java
trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/example/RedGreenColorProvider.java
trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/example/ValuePercent.java
trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/example/ZoomPopupMenu.java
trunk/JTreeMap/src/site/navigation.xml
trunk/KTreeMap/.project
trunk/KTreeMap/META-INF/MANIFEST.MF
trunk/KTreeMap/project.xml
trunk/KTreeMap/qalab.xml
trunk/KTreeMap/src/main/conf/meta-inf/manifest.mf
trunk/KTreeMap/src/main/conf/plugin.xml
trunk/KTreeMap/src/main/java/net/sf/jtreemap/ktreemap/ITreeMapColorProvider.java
trunk/KTreeMap/src/main/java/net/sf/jtreemap/ktreemap/ITreeMapProvider.java
trunk/KTreeMap/src/main/java/net/sf/jtreemap/ktreemap/KTreeMap.java
trunk/KTreeMap/src/main/java/net/sf/jtreemap/ktreemap/SplitByNumber.java
trunk/KTreeMap/src/main/java/net/sf/jtreemap/ktreemap/SplitBySlice.java
trunk/KTreeMap/src/main/java/net/sf/jtreemap/ktreemap/SplitBySortedWeight.java
trunk/KTreeMap/src/main/java/net/sf/jtreemap/ktreemap/SplitByWeight.java
trunk/KTreeMap/src/main/java/net/sf/jtreemap/ktreemap/SplitSquarified.java
trunk/KTreeMap/src/main/java/net/sf/jtreemap/ktreemap/SplitStrategy.java
trunk/KTreeMap/src/main/java/net/sf/jtreemap/ktreemap/TreeMapNode.java
trunk/KTreeMap/src/main/java/net/sf/jtreemap/ktreemap/TreeMapNodeBuilder.java
trunk/KTreeMap/src/main/java/net/sf/jtreemap/ktreemap/example/BuilderTM3.java
trunk/KTreeMap/src/main/java/net/sf/jtreemap/ktreemap/example/BuilderXML.java
trunk/KTreeMap/src/main/java/net/sf/jtreemap/ktreemap/example/HSBTreeMapColorProvider.java
trunk/KTreeMap/src/main/java/net/sf/jtreemap/ktreemap/example/KTreeMapView.java
trunk/KTreeMap/src/main/java/net/sf/jtreemap/ktreemap/example/ResourceManager.java
trunk/KTreeMap/src/main/java/net/sf/jtreemap/ktreemap/example/TM3Bean.java
trunk/KTreeMap/src/main/java/net/sf/jtreemap/ktreemap/example/TM3TreeMapProvider.java
trunk/KTreeMap/src/main/java/net/sf/jtreemap/ktreemap/example/XMLBean.java
trunk/KTreeMap/src/main/java/net/sf/jtreemap/ktreemap/example/XMLTreeMapProvider.java
trunk/common-build/project.xml
trunk/project.properties
trunk/src/site/generic-appletsample.xml
trunk/src/site/generic-jtreemap.jnlp
trunk/src/site/navigation.xml
Modified: trunk/JTreeMap/build.xml
===================================================================
--- trunk/JTreeMap/build.xml 2006-10-23 21:45:31 UTC (rev 60)
+++ trunk/JTreeMap/build.xml 2006-10-23 21:58:57 UTC (rev 61)
@@ -35,7 +35,7 @@
<include name="**/*.gif" />
</fileset>
<manifest>
- <attribute name="Main-Class" value="org.jense.swing.jtreemap.example.JTreeMapExample" />
+ <attribute name="Main-Class" value="net.sf.jtreemap.swing.example.JTreeMapExample" />
</manifest>
</jar>
</target>
@@ -60,7 +60,7 @@
</target>
<target name="javadoc">
- <javadoc packagenames="org.jense.swing.jtreemap.*,org.jense.swing.jtreemap.example.*" sourcepath="src" defaultexcludes="yes" destdir="doc" author="true" version="true" use="true" windowtitle="JTreeMap">
+ <javadoc packagenames="net.sf.jtreemap.swing.*,net.sf.jtreemap.swing.example.*" sourcepath="src" defaultexcludes="yes" destdir="doc" author="true" version="true" use="true" windowtitle="JTreeMap">
<doctitle>
<![CDATA[<h1>JTreeMap</h1>]]></doctitle>
<tag name="todo" scope="all" description="To do:" />
Modified: trunk/JTreeMap/project.xml
===================================================================
--- trunk/JTreeMap/project.xml 2006-10-23 21:45:31 UTC (rev 60)
+++ trunk/JTreeMap/project.xml 2006-10-23 21:58:57 UTC (rev 61)
@@ -26,7 +26,7 @@
<extend>../common-build/project.xml</extend>
<name>JTreeMap</name>
<artifactId>jtreemap</artifactId>
- <package>org.jense.swing.jtreemap</package>
+ <package>net.sf.jtreemap</package>
<shortDescription>JTreeMap is a Java Swing component which reprensents hierarchical structure in a Treemap.</shortDescription>
<description>
JTreeMap is a Java Swing component which reprensents hierarchical structure in a Treemap
Modified: trunk/JTreeMap/qalab.xml
===================================================================
--- trunk/JTreeMap/qalab.xml 2006-10-23 21:45:31 UTC (rev 60)
+++ trunk/JTreeMap/qalab.xml 2006-10-23 21:58:57 UTC (rev 61)
@@ -23,6 +23,9 @@
<summaryresult date="2006-10-18" filecount="27" statvalue="307" type="checkstyle"/>
<summaryresult date="2006-10-18" filecount="14" statvalue="35" type="findbugs"/>
<summaryresult date="2006-10-18" filecount="4" statvalue="280" type="simian"/>
+ <summaryresult date="2006-10-23" filecount="27" statvalue="307" type="checkstyle"/>
+ <summaryresult date="2006-10-23" filecount="14" statvalue="35" type="findbugs"/>
+ <summaryresult date="2006-10-23" filecount="4" statvalue="280" type="simian"/>
</summary>
<file id="org_jense_swing_jtreemap_package.html" path="org/jense/swing/jtreemap/package.html">
<result date="2006-10-17" statvalue="1" type="checkstyle"/>
@@ -129,6 +132,8 @@
<result date="2006-10-18" statvalue="2" type="findbugs"/>
<result date="2006-10-18" statvalue="2" type="findbugs"/>
<result date="2006-10-18" statvalue="2" type="findbugs"/>
+ <result date="2006-10-18" statvalue="2" type="findbugs"/>
+ <result date="2006-10-18" statvalue="2" type="findbugs"/>
<result date="2006-10-18" statvalue="75" type="checkstyle"/>
<result date="2006-10-18" statvalue="2" type="findbugs"/>
<result date="2006-10-18" statvalue="2" type="findbugs"/>
@@ -159,4 +164,82 @@
<result date="2006-10-18" statvalue="7" type="checkstyle"/>
<result date="2006-10-18" statvalue="2" type="findbugs"/>
</file>
+ <file id="net_sf_jtreemap_swing_package.html" path="net/sf/jtreemap/swing/package.html">
+ <result date="2006-10-23" statvalue="1" type="checkstyle"/>
+ </file>
+ <file id="net_sf_jtreemap_swing_example_package.html" path="net/sf/jtreemap/swing/example/package.html">
+ <result date="2006-10-23" statvalue="1" type="checkstyle"/>
+ </file>
+ <file id="net_sf_jtreemap_swing_DefaultToolTip.java" path="net/sf/jtreemap/swing/DefaultToolTip.java">
+ <result date="2006-10-23" statvalue="7" type="checkstyle"/>
+ </file>
+ <file id="net_sf_jtreemap_swing_DefaultToolTipBuilder.java" path="net/sf/jtreemap/swing/DefaultToolTipBuilder.java">
+ <result date="2006-10-23" statvalue="1" type="checkstyle"/>
+ </file>
+ <file id="net_sf_jtreemap_swing_DefaultValue.java" path="net/sf/jtreemap/swing/DefaultValue.java">
+ <result date="2006-10-23" statvalue="1" type="checkstyle"/>
+ <result date="2006-10-23" statvalue="1" type="findbugs"/>
+ </file>
+ <file id="net_sf_jtreemap_swing_IToolTipBuilder.java" path="net/sf/jtreemap/swing/IToolTipBuilder.java">
+ <result date="2006-10-23" statvalue="1" type="checkstyle"/>
+ </file>
+ <file id="net_sf_jtreemap_swing_JTreeMap.java" path="net/sf/jtreemap/swing/JTreeMap.java">
+ <result date="2006-10-23" statvalue="23" type="checkstyle"/>
+ <result date="2006-10-23" statvalue="5" type="findbugs"/>
+ </file>
+ <file id="net_sf_jtreemap_swing_SplitSquarified.java" path="net/sf/jtreemap/swing/SplitSquarified.java">
+ <result date="2006-10-23" statvalue="12" type="checkstyle"/>
+ </file>
+ <file id="net_sf_jtreemap_swing_SplitStrategy.java" path="net/sf/jtreemap/swing/SplitStrategy.java">
+ <result date="2006-10-23" statvalue="3" type="checkstyle"/>
+ </file>
+ <file id="net_sf_jtreemap_swing_TreeMapNode.java" path="net/sf/jtreemap/swing/TreeMapNode.java">
+ <result date="2006-10-23" statvalue="17" type="checkstyle"/>
+ <result date="2006-10-23" statvalue="1" type="findbugs"/>
+ </file>
+ <file id="net_sf_jtreemap_swing_UniqueColorProvider.java" path="net/sf/jtreemap/swing/UniqueColorProvider.java">
+ <result date="2006-10-23" statvalue="7" type="checkstyle"/>
+ <result date="2006-10-23" statvalue="2" type="findbugs"/>
+ </file>
+ <file id="net_sf_jtreemap_swing_Value.java" path="net/sf/jtreemap/swing/Value.java">
+ <result date="2006-10-23" statvalue="1" type="checkstyle"/>
+ <result date="2006-10-23" statvalue="2" type="findbugs"/>
+ </file>
+ <file id="net_sf_jtreemap_swing_example_BuilderTM3.java" path="net/sf/jtreemap/swing/example/BuilderTM3.java">
+ <result date="2006-10-23" statvalue="1" type="checkstyle"/>
+ <result date="2006-10-23" statvalue="1" type="findbugs"/>
+ </file>
+ <file id="net_sf_jtreemap_swing_example_BuilderXML.java" path="net/sf/jtreemap/swing/example/BuilderXML.java">
+ <result date="2006-10-23" statvalue="2" type="checkstyle"/>
+ </file>
+ <file
+ id="net_sf_jtreemap_swing_example_HSBTreeMapColorProvider.java" path="net/sf/jtreemap/swing/example/HSBTreeMapColorProvider.java">
+ <result date="2006-10-23" statvalue="61" type="checkstyle"/>
+ <result date="2006-10-23" statvalue="5" type="findbugs"/>
+ </file>
+ <file id="net_sf_jtreemap_swing_example_JTreeMapAppletExample.java" path="net/sf/jtreemap/swing/example/JTreeMapAppletExample.java">
+ <result date="2006-10-23" statvalue="60" type="checkstyle"/>
+ </file>
+ <file id="net_sf_jtreemap_swing_example_JTreeMapExample.java" path="net/sf/jtreemap/swing/example/JTreeMapExample.java">
+ <result date="2006-10-23" statvalue="75" type="checkstyle"/>
+ <result date="2006-10-23" statvalue="2" type="findbugs"/>
+ <result date="2006-10-23" statvalue="2" type="findbugs"/>
+ <result date="2006-10-23" statvalue="2" type="findbugs"/>
+ </file>
+ <file id="net_sf_jtreemap_swing_example_RandomColorProvider.java" path="net/sf/jtreemap/swing/example/RandomColorProvider.java">
+ <result date="2006-10-23" statvalue="10" type="checkstyle"/>
+ <result date="2006-10-23" statvalue="4" type="findbugs"/>
+ </file>
+ <file id="net_sf_jtreemap_swing_example_RedGreenColorProvider.java" path="net/sf/jtreemap/swing/example/RedGreenColorProvider.java">
+ <result date="2006-10-23" statvalue="15" type="checkstyle"/>
+ <result date="2006-10-23" statvalue="5" type="findbugs"/>
+ </file>
+ <file id="net_sf_jtreemap_swing_example_ValuePercent.java" path="net/sf/jtreemap/swing/example/ValuePercent.java">
+ <result date="2006-10-23" statvalue="1" type="checkstyle"/>
+ <result date="2006-10-23" statvalue="1" type="findbugs"/>
+ </file>
+ <file id="net_sf_jtreemap_swing_example_ZoomPopupMenu.java" path="net/sf/jtreemap/swing/example/ZoomPopupMenu.java">
+ <result date="2006-10-23" statvalue="7" type="checkstyle"/>
+ <result date="2006-10-23" statvalue="2" type="findbugs"/>
+ </file>
</qalab>
Modified: trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/ColorProvider.java
===================================================================
--- trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/ColorProvider.java 2006-10-23 21:45:31 UTC (rev 60)
+++ trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/ColorProvider.java 2006-10-23 21:58:57 UTC (rev 61)
@@ -1,10 +1,10 @@
-package org.jense.swing.jtreemap;
+package net.sf.jtreemap.swing;
import javax.swing.JPanel;
import java.awt.Color;
/**
- * Abstract class with the methods who attribute color to the elements of
+ * Abstract class with the methods who attribute color to the elements of
* JTreeMap.
*
* @author Laurent DUTHEIL
Modified: trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/DefaultToolTip.java
===================================================================
--- trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/DefaultToolTip.java 2006-10-23 21:45:31 UTC (rev 60)
+++ trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/DefaultToolTip.java 2006-10-23 21:58:57 UTC (rev 61)
@@ -1,7 +1,7 @@
/*
* Created on 28 sept. 2005
*/
-package org.jense.swing.jtreemap;
+package net.sf.jtreemap.swing;
import java.awt.Color;
import java.awt.Dimension;
@@ -12,7 +12,7 @@
/**
* Default ToolTip for the jTreeMap.
- *
+ *
* @author Laurent DUTHEIL
*/
public class DefaultToolTip extends JToolTip {
@@ -23,7 +23,7 @@
/**
* Constructor.
- *
+ *
* @param jTreeMap the jTreeMap who display the tooltip
*/
public DefaultToolTip(JTreeMap jTreeMap) {
Modified: trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/DefaultToolTipBuilder.java
===================================================================
--- trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/DefaultToolTipBuilder.java 2006-10-23 21:45:31 UTC (rev 60)
+++ trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/DefaultToolTipBuilder.java 2006-10-23 21:58:57 UTC (rev 61)
@@ -1,24 +1,24 @@
/**
- *
+ *
*/
-package org.jense.swing.jtreemap;
+package net.sf.jtreemap.swing;
import javax.swing.JToolTip;
/**
* Default class to build the DefaultToolTip displayed by the JTreeMap.<BR>
- *
- * @see org.jense.swing.jtreemap.DefaultToolTip
+ *
+ * @see net.sf.jtreemap.swing.DefaultToolTip
* @author Laurent DUTHEIL
*
*/
public class DefaultToolTipBuilder implements IToolTipBuilder {
private static JToolTip instance = null;
private JTreeMap jTreeMap;
-
+
/**
* Constructor.
- *
+ *
* @param jTreeMap the linked JTreeMap
*/
public DefaultToolTipBuilder(JTreeMap jTreeMap) {
@@ -26,7 +26,7 @@
}
/* (non-Javadoc)
- * @see org.jense.swing.jtreemap.IToolTipBuilder#getToolTip()
+ * @see net.sf.jtreemap.swing.IToolTipBuilder#getToolTip()
*/
public JToolTip getToolTip() {
if (instance == null) {
Modified: trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/DefaultValue.java
===================================================================
--- trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/DefaultValue.java 2006-10-23 21:45:31 UTC (rev 60)
+++ trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/DefaultValue.java 2006-10-23 21:58:57 UTC (rev 61)
@@ -1,12 +1,12 @@
/*
* Created on 10 oct. 2005
*/
-package org.jense.swing.jtreemap;
+package net.sf.jtreemap.swing;
/**
* Default Value <BR>
* The getLabel() method returns the "" + getValue()
- *
+ *
* @author Laurent DUTHEIL
*/
public class DefaultValue extends Value {
@@ -21,7 +21,7 @@
/**
* Constructor.
- *
+ *
* @param value double value
*/
public DefaultValue(double value) {
@@ -30,8 +30,8 @@
/*
* (non-Javadoc)
- *
- * @see org.jense.swing.jtreemap.Value#getValue()
+ *
+ * @see net.sf.jtreemap.swing.Value#getValue()
*/
@Override
public double getValue() {
@@ -40,8 +40,8 @@
/*
* (non-Javadoc)
- *
- * @see org.jense.swing.jtreemap.Value#getLabel()
+ *
+ * @see net.sf.jtreemap.swing.Value#getLabel()
*/
@Override
public String getLabel() {
@@ -50,8 +50,8 @@
/*
* (non-Javadoc)
- *
- * @see org.jense.swing.jtreemap.Value#setValue(double)
+ *
+ * @see net.sf.jtreemap.swing.Value#setValue(double)
*/
@Override
public void setValue(double value) {
@@ -60,8 +60,8 @@
/*
* (non-Javadoc)
- *
- * @see org.jense.swing.jtreemap.Value#setLabel(java.lang.String)
+ *
+ * @see net.sf.jtreemap.swing.Value#setLabel(java.lang.String)
*/
@Override
public void setLabel(String newLabel) {
Modified: trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/IToolTipBuilder.java
===================================================================
--- trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/IToolTipBuilder.java 2006-10-23 21:45:31 UTC (rev 60)
+++ trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/IToolTipBuilder.java 2006-10-23 21:58:57 UTC (rev 61)
@@ -2,14 +2,14 @@
* Created on 6 mars 2006
*
*/
-package org.jense.swing.jtreemap;
+package net.sf.jtreemap.swing;
import javax.swing.JToolTip;
/**
* Interface used to build your own JToolTip for the jTreeMap.
- *
- * @see org.jense.swing.jtreemap.JTreeMap#setToolTipBuilder(IToolTipBuilder)
+ *
+ * @see net.sf.jtreemap.swing.JTreeMap#setToolTipBuilder(IToolTipBuilder)
* @author Laurent DUTHEIL
*/
public interface IToolTipBuilder {
@@ -17,7 +17,7 @@
/**
* Return the instance of the JToolTip.<BR>
* Override this method to build your own JToolTip
- *
+ *
* @return the instance of the JToolTip
*/
public abstract JToolTip getToolTip();
Modified: trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/JTreeMap.java
===================================================================
--- trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/JTreeMap.java 2006-10-23 21:45:31 UTC (rev 60)
+++ trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/JTreeMap.java 2006-10-23 21:58:57 UTC (rev 61)
@@ -1,4 +1,4 @@
-package org.jense.swing.jtreemap;
+package net.sf.jtreemap.swing;
import java.util.Enumeration;
import java.awt.Color;
@@ -27,8 +27,8 @@
* <p>
* So, in a JTreeMap, you can see the size and the value of an element in a
* tree.
- *
- * @see org.jense.swing.jtreemap.TreeMapNode
+ *
+ * @see net.sf.jtreemap.swing.TreeMapNode
* @author Laurent Dutheil
*/
public class JTreeMap extends JComponent {
@@ -53,7 +53,7 @@
* Constructor of JTreeMap. <BR>
* The chosen strategy is SplitSquarified. <BR>
* The chosen color provider is UniqueColorProvider.
- *
+ *
* @see SplitSquarified
* @see UniqueColorProvider
* @param root the root of the tree to display
@@ -65,7 +65,7 @@
/**
* Constructor of JTreeMap. <BR>
* The chosen color provider is UniqueColorProvider.
- *
+ *
* @see UniqueColorProvider
* @param root the root of the tree to display
* @param strategy the split strategy
@@ -109,7 +109,7 @@
/**
* draw the item.
- *
+ *
* @param g Graphics where you have to draw
* @param item item to draw
*/
@@ -129,7 +129,7 @@
* You have first to define the font of the Graphics. <BR>
* You may override this method to change the position or the color of the
* label.
- *
+ *
* @param g Graphics where you have to draw
* @param item TreeMapNode to draw
*/
@@ -178,7 +178,7 @@
* You may override this method to draw the labels you want. <BR>
* For exemples, all the leaves, or all the first level children, or all of
* them...
- *
+ *
* @param g Graphics where you have to draw
* @param item TreeMapNode to draw
*/
@@ -214,7 +214,7 @@
/**
* get the active leaf (the one under the mouse).
- *
+ *
* @return Returns the activeLeaf.
*/
public TreeMapNode getActiveLeaf() {
@@ -223,7 +223,7 @@
/**
* get the ColorProvider.
- *
+ *
* @return the ColorProvider
*/
public ColorProvider getColorProvider() {
@@ -236,7 +236,7 @@
* This may be not the root of the jTreeMap. After a zoom, the displayed root
* can be the root of an under-tree.
* </p>
- *
+ *
* @return the displayed root
*/
public TreeMapNode getDisplayedRoot() {
@@ -245,7 +245,7 @@
/**
* get the root.
- *
+ *
* @return the root
*/
public TreeMapNode getRoot() {
@@ -254,7 +254,7 @@
/**
* get the SplitStrategy.
- *
+ *
* @return the SplitStrategy
*/
public SplitStrategy getStrategy() {
@@ -293,7 +293,7 @@
/*
* (non-Javadoc)
- *
+ *
* @see javax.swing.JComponent#paintComponent(java.awt.Graphics)
*/
@Override
@@ -313,7 +313,7 @@
- insets.left - insets.right, height - border - insets.top
- insets.bottom);
}
-
+
this.calculatePositions();
if (this.displayedRoot.children().hasMoreElements()) {
@@ -337,7 +337,7 @@
/**
* reveal the item.
- *
+ *
* @param g Graphics where you have to draw
* @param item TreeMapNode to reveal
*/
@@ -350,7 +350,7 @@
/**
* set the active leaf.
- *
+ *
* @param newActiveLeaf the new active leaf
*/
public void setActiveLeaf(TreeMapNode newActiveLeaf) {
@@ -361,7 +361,7 @@
/*
* (non-Javadoc)
- *
+ *
* @see javax.swing.JComponent#setBorder(javax.swing.border.Border)
*/
@Override
@@ -385,7 +385,7 @@
/**
* set the ColorProvider.
- *
+ *
* @param newColorProvider the new ColorPorvider
*/
public void setColorProvider(ColorProvider newColorProvider) {
@@ -398,7 +398,7 @@
* This may be not the root of the jTreeMap. After a zoom, the displayed root
* can be the root of an under-tree.
* </p>
- *
+ *
* @param newDisplayedRoot new DiplayedRoot
*/
public void setDisplayedRoot(TreeMapNode newDisplayedRoot) {
@@ -407,7 +407,7 @@
/**
* set the new root.
- *
+ *
* @param newRoot the new root to set
*/
public void setRoot(TreeMapNode newRoot) {
@@ -421,7 +421,7 @@
/**
* set the new strategy.
- *
+ *
* @param newStrat the new strategy to set
*/
public void setStrategy(SplitStrategy newStrat) {
@@ -430,7 +430,7 @@
/**
* Set the builder of the toolTip.<BR>
- *
+ *
* @param toolTipBuilder The toolTipBuilder to set.
*/
public void setToolTipBuilder(IToolTipBuilder toolTipBuilder) {
@@ -439,7 +439,7 @@
/**
* When you zoom the jTreeMap, you have the choice to keep proportions or not.
- *
+ *
* @param keepProportion true if you want to keep proportions, else false
*/
public void setZoomKeepProportion(boolean keepProportion) {
@@ -455,7 +455,7 @@
/**
* Zoom the JTreeMap to the dest node.
- *
+ *
* @param dest node we want to zoom
*/
public void zoom(TreeMapNode dest) {
@@ -467,7 +467,7 @@
/**
* Listener who define the active leaf and set the tooltip text.
- *
+ *
* @author Laurent Dutheil
*/
protected class HandleMouseMotion extends MouseMotionAdapter {
@@ -488,10 +488,10 @@
}
}
}
-
+
/**
* Class who zoom and unzoom the JTreeMap.
- *
+ *
* @author Laurent Dutheil
*/
private class Zoom {
Modified: trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/SplitByNumber.java
===================================================================
--- trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/SplitByNumber.java 2006-10-23 21:45:31 UTC (rev 60)
+++ trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/SplitByNumber.java 2006-10-23 21:58:57 UTC (rev 61)
@@ -1,4 +1,4 @@
-package org.jense.swing.jtreemap;
+package net.sf.jtreemap.swing;
import java.util.Vector;
@@ -23,7 +23,7 @@
v2.addElement(v.elementAt(index));
}
}
-
+
@Override
public double sumWeight(Vector<TreeMapNode> v) {
//all the elements must have the same weight
Modified: trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/SplitBySlice.java
===================================================================
--- trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/SplitBySlice.java 2006-10-23 21:45:31 UTC (rev 60)
+++ trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/SplitBySlice.java 2006-10-23 21:58:57 UTC (rev 61)
@@ -1,20 +1,20 @@
/*
* Created on 3 nov. 2005
*/
-package org.jense.swing.jtreemap;
+package net.sf.jtreemap.swing;
import java.util.Vector;
/**
* Split the treemap by slice
- *
+ *
* @author Laurent DUTHEIL
*/
public class SplitBySlice extends SplitStrategy {
/**
* Calculate the dimension of the elements of the Vector.
- *
+ *
* @param x0 x-coordinate
* @param y0 y-coordinate
* @param w0 width
@@ -57,8 +57,8 @@
/*
* (non-Javadoc)
- *
- * @see org.jense.swing.jtreemap.SplitStrategy#splitElements(java.util.Vector,
+ *
+ * @see net.sf.jtreemap.swing.SplitStrategy#splitElements(java.util.Vector,
* java.util.Vector, java.util.Vector)
*/
@Override
@@ -70,8 +70,8 @@
/*
* (non-Javadoc)
- *
- * @see org.jense.swing.jtreemap.SplitStrategy#calculatePositionsRec(int, int,
+ *
+ * @see net.sf.jtreemap.swing.SplitStrategy#calculatePositionsRec(int, int,
* int, int, double, java.util.Vector)
*/
@Override
Modified: trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/SplitBySortedWeight.java
===================================================================
--- trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/SplitBySortedWeight.java 2006-10-23 21:45:31 UTC (rev 60)
+++ trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/SplitBySortedWeight.java 2006-10-23 21:58:57 UTC (rev 61)
@@ -1,4 +1,4 @@
-package org.jense.swing.jtreemap;
+package net.sf.jtreemap.swing;
import java.util.Iterator;
import java.util.Vector;
@@ -11,7 +11,7 @@
* <p>
* The heaviest elements are on the top left of the JTreeMap. The lightest
* elements are on the bottom right of the JTreeMap
- *
+ *
* @author Laurent Dutheil
*/
Modified: trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/SplitByWeight.java
===================================================================
--- trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/SplitByWeight.java 2006-10-23 21:45:31 UTC (rev 60)
+++ trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/SplitByWeight.java 2006-10-23 21:58:57 UTC (rev 61)
@@ -1,11 +1,11 @@
-package org.jense.swing.jtreemap;
+package net.sf.jtreemap.swing;
import java.util.Iterator;
import java.util.Vector;
/**
* Strategy who split the elements in 2 groups of equivalent weight.
- *
+ *
* @author Laurent Dutheil
*/
Modified: trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/SplitSquarified.java
===================================================================
--- trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/SplitSquarified.java 2006-10-23 21:45:31 UTC (rev 60)
+++ trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/SplitSquarified.java 2006-10-23 21:58:57 UTC (rev 61)
@@ -1,13 +1,13 @@
/*
* Created on 3 nov. 2005
*/
-package org.jense.swing.jtreemap;
+package net.sf.jtreemap.swing;
import java.util.Vector;
/**
* The Squarified split strategy
- *
+ *
* @author Laurent DUTHEIL
*/
public class SplitSquarified extends SplitStrategy {
@@ -75,8 +75,8 @@
/*
* (non-Javadoc)
- *
- * @see org.jense.swing.jtreemap.SplitStrategy#calculatePositionsRec(int, int,
+ *
+ * @see net.sf.jtreemap.swing.SplitStrategy#calculatePositionsRec(int, int,
* int, int, double, java.util.Vector)
*/
@Override
@@ -116,7 +116,7 @@
/**
* Execute the recurence for the children of the elements of the vector.<BR>
* Add also the borders if necessary
- *
+ *
* @param v Vector with the elements to calculate
*/
private void calculateChildren(Vector<TreeMapNode> v) {
@@ -144,7 +144,7 @@
} else {
bSub = 0;
}
-
+
int w = node.getWidth() - bSub;
if (w < 0) {
w = 0;
@@ -153,7 +153,7 @@
if (h < 0) {
h = 0;
}
-
+
TreeMapNode.setBorder(TreeMapNode.getBorder() - bSub);
calculatePositionsRec(node.getX() + bSub, node.getY() + bSub, w, h, node.getWeight(), node
.getChildren());
Modified: trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/SplitStrategy.java
===================================================================
--- trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/SplitStrategy.java 2006-10-23 21:45:31 UTC (rev 60)
+++ trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/SplitStrategy.java 2006-10-23 21:58:57 UTC (rev 61)
@@ -1,4 +1,4 @@
-package org.jense.swing.jtreemap;
+package net.sf.jtreemap.swing;
import java.util.Vector;
@@ -8,14 +8,14 @@
* The split is done by dichotomy. We split the elements in 2 groups with a
* defined strategy (for example : take care of the weight of the elements)
* <p>
- *
+ *
* @author Laurent Dutheil
*/
public abstract class SplitStrategy {
/**
* calculate the positions for all the elements of the root.
- *
+ *
* @param root the root to calculate
*/
public void calculatePositions(TreeMapNode root) {
@@ -32,7 +32,7 @@
/**
* split the elements of a JTreeMap.
- *
+ *
* @param v Vector with the elements to split (arg IN)
* @param v1 first Vector of the split (arg OUT)
* @param v2 second Vector of the split (arg OUT)
@@ -44,7 +44,7 @@
* Sum the weight of elements. <BR>
* You can override this method if you want to apply a coef on the weights or
* to cancel the effect of weight on the strategy.
- *
+ *
* @param v Vector with the elements to sum
* @return the sum of the weight of elements
*/
@@ -142,7 +142,7 @@
/**
* Sort the elements by descending weight.
- *
+ *
* @param v Vector with the elements to be sorted
*/
protected void sortVector(Vector<TreeMapNode> v) {
Modified: trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/TreeMapNode.java
===================================================================
--- trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/TreeMapNode.java 2006-10-23 21:45:31 UTC (rev 60)
+++ trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/TreeMapNode.java 2006-10-23 21:58:57 UTC (rev 61)
@@ -1,4 +1,4 @@
-package org.jense.swing.jtreemap;
+package net.sf.jtreemap.swing;
import java.util.Enumeration;
import java.util.Vector;
@@ -7,12 +7,12 @@
/**
* Node of a JTreeMap.<BR>
- *
+ *
* If the node is a branch, only the label is set.<BR>
* If the node is a leaf, we need a label, a weight and a value.
* <p>
* You can also use a TreeMapNode in a JTree.
- *
+ *
* @author Laurent Dutheil
*/
@@ -26,10 +26,10 @@
private int width;
private int x;
private int y;
-
+
/**
* Get the max border between two nodes of the same level.
- *
+ *
* @return Returns the border.
*/
public static int getBorder() {
@@ -38,7 +38,7 @@
/**
* Set the max border between two nodes of the same level.
- *
+ *
* @param border The border to set.
*/
public static void setBorder(int border) {
@@ -48,7 +48,7 @@
/**
* Constructor for a branch.
- *
+ *
* @param label label of the branch.
*/
public TreeMapNode(String label) {
@@ -58,7 +58,7 @@
/**
* Constructor for a leaf.
- *
+ *
* @param label label of the leaf.
* @param weight weight of the leaf (if negative, we take the absolute value).
* @param value Value associ\xE9e \xE0 la feuille
@@ -73,7 +73,7 @@
/**
* add a new child to the node.
- *
+ *
* @param newChild new child
*/
public void add(TreeMapNode newChild) {
@@ -84,7 +84,7 @@
/**
* get the active leaf.<BR>
* null if the passed position is not in this tree.
- *
+ *
* @param x x-coordinate
* @param y y-coordinate
* @return active leaf
@@ -107,11 +107,11 @@
}
return null;
}
-
+
/**
* get the first child which fits the position.<BR>
* null if the passed position is not in this tree.
- *
+ *
* @param x x-coordinate
* @param y y-coordinate
* @return the first child which fits the position.
@@ -125,14 +125,14 @@
return node;
}
}
-
+
}
return null;
}
/**
* get a Vector with the children.
- *
+ *
* @return Vector with the children
*/
@SuppressWarnings("unchecked")
@@ -142,7 +142,7 @@
/**
* get the height.
- *
+ *
* @return the height
*/
public int getHeight() {
@@ -151,7 +151,7 @@
/**
* get the label.
- *
+ *
* @return the label
*/
public String getLabel() {
@@ -160,7 +160,7 @@
/**
* get the label of the Value.
- *
+ *
* @return the label of the Value
*/
public String getLabelValue() {
@@ -169,7 +169,7 @@
/**
* get the Value.
- *
+ *
* @return the value
*/
public Value getValue() {
@@ -178,7 +178,7 @@
/**
* get the double Value.
- *
+ *
* @return the double value
*/
public double getDoubleValue() {
@@ -187,7 +187,7 @@
/**
* get the weight.
- *
+ *
* @return the weight
*/
public double getWeight() {
@@ -196,7 +196,7 @@
/**
* get the width.
- *
+ *
* @return the width
*/
public int getWidth() {
@@ -205,7 +205,7 @@
/**
* get the x-coordinate.
- *
+ *
* @return the x-coordinate
*/
public int getX() {
@@ -214,7 +214,7 @@
/**
* get the y-coordinate.
- *
+ *
* @return the y-coordinate
*/
public int getY() {
@@ -223,7 +223,7 @@
/**
* set the position and the size.
- *
+ *
* @param x x-coordinate
* @param y y-coordinate
* @param width the new width
@@ -238,7 +238,7 @@
/**
* set the height.
- *
+ *
* @param height la nouvelle valeur de height
*/
public void setHeight(int height) {
@@ -247,7 +247,7 @@
/**
* set the label.
- *
+ *
* @param label the new label
*/
public void setLabel(String label) {
@@ -256,7 +256,7 @@
/**
* set the position.
- *
+ *
* @param x x-coordinate
* @param y y-coordinate
*/
@@ -267,7 +267,7 @@
/**
* set size.
- *
+ *
* @param width the new width
* @param height the new height
*/
@@ -278,7 +278,7 @@
/**
* set the Value.
- *
+ *
* @param value the new Value
*/
public void setValue(Value value) {
@@ -287,7 +287,7 @@
/**
* set the weight of the node and update the parents.
- *
+ *
* @param weight the new weight
*/
public void setWeight(double weight) {
@@ -301,7 +301,7 @@
/**
* set the width.
- *
+ *
* @param width la nouvelle valeur de width
*/
public void setWidth(int width) {
@@ -310,7 +310,7 @@
/**
* set the x-coordinate.
- *
+ *
* @param x the new x-coordinate
*/
public void setX(int x) {
@@ -319,7 +319,7 @@
/**
* set the y-coordinate.
- *
+ *
* @param y the new y-coordinate
*/
public void setY(int y) {
Modified: trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/TreeMapNodeBuilder.java
===================================================================
--- trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/TreeMapNodeBuilder.java 2006-10-23 21:45:31 UTC (rev 60)
+++ trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/TreeMapNodeBuilder.java 2006-10-23 21:58:57 UTC (rev 61)
@@ -1,8 +1,8 @@
-package org.jense.swing.jtreemap;
+package net.sf.jtreemap.swing;
/**
* Tree builder for a JTreeMap.
- *
+ *
* @author Laurent Dutheil
*/
@@ -14,7 +14,7 @@
* If the parent is null, the build node become the root if and only if the
* tree have no root yet. If the parent is null and if the root is already
* build, the node will NOT be added to the tree.
- *
+ *
* @param label label of the node
* @param parent father of the node
* @return the created node
@@ -34,7 +34,7 @@
* If the parent is null, the build node become the root if and only if the
* tree have no root yet. If the parent is null and if the root is already
* build, the node will NOT be added to the tree.
- *
+ *
* @param label label of the leaf
* @param weight weight of the leaf
* @param value Value of the leaf
@@ -54,7 +54,7 @@
/**
* get the build tree.
- *
+ *
* @return the root of the tree
*/
public TreeMapNode getRoot() {
Modified: trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/UniqueColorProvider.java
===================================================================
--- trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/UniqueColorProvider.java 2006-10-23 21:45:31 UTC (rev 60)
+++ trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/UniqueColorProvider.java 2006-10-23 21:58:57 UTC (rev 61)
@@ -2,7 +2,7 @@
* Created on 7 oct. 2005
*
*/
-package org.jense.swing.jtreemap;
+package net.sf.jtreemap.swing;
import java.awt.Color;
import java.awt.Graphics;
@@ -12,7 +12,7 @@
/**
* Color Provider by default.<BR>
* All values are associated to a unique color.
- *
+ *
* @author Laurent DUTHEIL
*
*/
@@ -20,7 +20,7 @@
private final static Color defaultColor = new Color(153,153,51);
private Color color;
private JPanel legend;
-
+
/**
* Constructor.
*/
@@ -35,9 +35,9 @@
public UniqueColorProvider(Color color) {
this.color = color;
}
-
+
/* (non-Javadoc)
- * @see org.jense.swing.jtreemap.ColorProvider#getColor(double)
+ * @see net.sf.jtreemap.swing.ColorProvider#getColor(double)
*/
@Override
public Color getColor(Value value) {
@@ -45,7 +45,7 @@
}
/* (non-Javadoc)
- * @see org.jense.swing.jtreemap.ColorProvider#getLegendPanel()
+ * @see net.sf.jtreemap.swing.ColorProvider#getLegendPanel()
*/
@Override
public JPanel getLegendPanel() {
@@ -56,13 +56,13 @@
}
/**
* Panel with the legend.
- *
+ *
* @author Laurent Dutheil
*/
private class Legend extends JPanel {
private static final long serialVersionUID = -8046211081305644785L;
private String text = "Unique Color Provider";
-
+
/**
* Constructor.
*/
@@ -70,7 +70,7 @@
this.setPreferredSize(new java.awt.Dimension(100, 40));
}
-
+
@Override
public void paint(Graphics g) {
g.setColor(Color.black);
Modified: trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/Value.java
===================================================================
--- trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/Value.java 2006-10-23 21:45:31 UTC (rev 60)
+++ trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/Value.java 2006-10-23 21:58:57 UTC (rev 61)
@@ -1,4 +1,4 @@
-package org.jense.swing.jtreemap;
+package net.sf.jtreemap.swing;
/**
@@ -35,7 +35,7 @@
*@param newLabel the new label
*/
public abstract void setLabel(String newLabel);
-
+
/* (non-Javadoc)
* @see java.lang.Object#equals(java.lang.Object)
*/
@@ -47,7 +47,7 @@
}
return false;
}
-
+
/* (non-Javadoc)
* @see java.lang.Comparable#compareTo(java.lang.Object)
*/
Modified: trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/example/BuilderTM3.java
===================================================================
--- trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/example/BuilderTM3.java 2006-10-23 21:45:31 UTC (rev 60)
+++ trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/example/BuilderTM3.java 2006-10-23 21:58:57 UTC (rev 61)
@@ -1,7 +1,7 @@
/*
* Created on 22 nov. 2005
*/
-package org.jense.swing.jtreemap.example;
+package net.sf.jtreemap.swing.example;
import java.io.BufferedReader;
import java.io.File;
@@ -16,15 +16,15 @@
import java.util.StringTokenizer;
import java.util.TreeSet;
-import org.jense.swing.jtreemap.DefaultValue;
-import org.jense.swing.jtreemap.TreeMapNode;
-import org.jense.swing.jtreemap.TreeMapNodeBuilder;
+import net.sf.jtreemap.swing.DefaultValue;
+import net.sf.jtreemap.swing.TreeMapNode;
+import net.sf.jtreemap.swing.TreeMapNodeBuilder;
/**
* Parse a TM3 file to build the tree. <BR>
* See <a href=http://www.cs.umd.edu/hcil/treemap/doc4.1/create_TM3_file.html>
* how to create your own TM3 data file </a> from hcil Treemap site.
- *
+ *
* @author Laurent DUTHEIL
*/
public class BuilderTM3 {
@@ -53,7 +53,7 @@
/**
* Constructor
- *
+ *
* @param tm3File tm3 file
* @throws IOException
*/
@@ -78,7 +78,7 @@
/**
* get the build root.
- *
+ *
* @return the build root
*/
public TreeMapNode getRoot() {
Modified: trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/example/BuilderXML.java
===================================================================
--- trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/example/BuilderXML.java 2006-10-23 21:45:31 UTC (rev 60)
+++ trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/example/BuilderXML.java 2006-10-23 21:58:57 UTC (rev 61)
@@ -1,4 +1,4 @@
-package org.jense.swing.jtreemap.example;
+package net.sf.jtreemap.swing.example;
import java.io.File;
import java.io.IOException;
@@ -8,7 +8,7 @@
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
-import org.jense.swing.jtreemap.*;
+import net.sf.jtreemap.swing.*;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
@@ -17,7 +17,7 @@
/**
* Parse a XML file to build the tree. <BR>
- *
+ *
* @author Laurent Dutheil
*/
@@ -32,7 +32,7 @@
/**
* Constructor
- *
+ *
* @param stFileName XML file name
* @throws ParseException if the file don't correspond to the TreeMap.dtd
*/
@@ -43,7 +43,7 @@
/**
* get the build root
- *
+ *
* @return the build root
*/
public TreeMapNode getRoot() {
Modified: trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/example/HSBTreeMapColorProvider.java
===================================================================
--- trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/example/HSBTreeMapColorProvider.java 2006-10-23 21:45:31 UTC (rev 60)
+++ trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/example/HSBTreeMapColorProvider.java 2006-10-23 21:58:57 UTC (rev 61)
@@ -1,7 +1,7 @@
/*
* HSBTreeMapColorProvider.java Created on Feb 17, 2006
*/
-package org.jense.swing.jtreemap.example;
+package net.sf.jtreemap.swing.example;
import java.awt.Color;
import java.awt.Graphics;
@@ -9,18 +9,18 @@
import javax.swing.JPanel;
-import org.jense.swing.jtreemap.ColorProvider;
-import org.jense.swing.jtreemap.DefaultValue;
-import org.jense.swing.jtreemap.JTreeMap;
-import org.jense.swing.jtreemap.TreeMapNode;
-import org.jense.swing.jtreemap.Value;
+import net.sf.jtreemap.swing.ColorProvider;
+import net.sf.jtreemap.swing.DefaultValue;
+import net.sf.jtreemap.swing.JTreeMap;
+import net.sf.jtreemap.swing.TreeMapNode;
+import net.sf.jtreemap.swing.Value;
/**
* An HSB color space color provider for JTreeMap. Uses a specified function to
* map the values onto the HSB color space. The default is a linear function,
* but in my experience one of the logarithmic ones works best for this color
* space.
- *
+ *
* @author Andy Adamczak
*/
public class HSBTreeMapColorProvider extends ColorProvider {
@@ -29,23 +29,23 @@
*/
public enum ColorDistributionTypes {
/**
- *
+ *
*/
Linear,
/**
- *
+ *
*/
Log,
/**
- *
+ *
*/
Exp,
/**
- *
+ *
*/
SquareRoot,
/**
- *
+ *
*/
CubicRoot
}
@@ -145,8 +145,8 @@
/*
* (non-Javadoc)
- *
- * @see org.jense.swing.jtreemap.ColorProvider#getLegendPanel()
+ *
+ * @see net.sf.jtreemap.swing.ColorProvider#getLegendPanel()
*/
@Override
public JPanel getLegendPanel()
@@ -176,7 +176,7 @@
// hue/saturation
// constructions for grey scales.
float[] hsbvals = new float[3];
-
+
hsbvals = Color.RGBtoHSB(positiveColor.getRed(), positiveColor.getGreen(), positiveColor.getBlue(), hsbvals);
m_positiveHue = hsbvals[0];
m_positiveSaturation = 1f;
@@ -211,8 +211,8 @@
/*
* (non-Javadoc)
- *
- * @see org.jense.swing.jtreemap.ColorProvider#getColor(org.jense.swing.jtreemap.Value)
+ *
+ * @see net.sf.jtreemap.swing.ColorProvider#getColor(net.sf.jtreemap.swing.Value)
*/
@Override
public Color getColor(Value value)
@@ -245,7 +245,7 @@
/**
* Given a value, maps that value to a new value using the specified math function
- *
+ *
* @param value
* the value to convert
* @return the converted value
@@ -269,7 +269,7 @@
/**
* Set the max and the min values in the tree map
- *
+ *
* @param root
* root of the JTreeMap
*/
@@ -336,7 +336,7 @@
private ColorDistributionTypes m_colorDistribution = ColorDistributionTypes.Linear;
/**
* Panel with the legend
- *
+ *
* @author Laurent Dutheil
*/
private class Legend extends JPanel {
Modified: trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/example/JTreeMapAppletExample.java
===================================================================
--- trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/example/JTreeMapAppletExample.java 2006-10-23 21:45:31 UTC (rev 60)
+++ trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/example/JTreeMapAppletExample.java 2006-10-23 21:58:57 UTC (rev 61)
@@ -1,22 +1,22 @@
/*
* Created on 28 oct. 2005
*/
-package org.jense.swing.jtreemap.example;
+package net.sf.jtreemap.swing.example;
import java.awt.BorderLayout;
import java.awt.Font;
import javax.swing.JApplet;
-import org.jense.swing.jtreemap.JTreeMap;
-import org.jense.swing.jtreemap.SplitBySortedWeight;
-import org.jense.swing.jtreemap.TreeMapNode;
-import org.jense.swing.jtreemap.TreeMapNodeBuilder;
-import org.jense.swing.jtreemap.Value;
+import net.sf.jtreemap.swing.JTreeMap;
+import net.sf.jtreemap.swing.SplitBySortedWeight;
+import net.sf.jtreemap.swing.TreeMapNode;
+import net.sf.jtreemap.swing.TreeMapNodeBuilder;
+import net.sf.jtreemap.swing.Value;
/**
* Test of JTreeMap in a JApplet
- *
+ *
* @author Laurent Dutheil
*/
public class JTreeMapAppletExample extends JApplet {
@@ -34,7 +34,7 @@
/*
* (non-Javadoc)
- *
+ *
* @see java.applet.Applet#start()
*/
@Override
@@ -50,7 +50,7 @@
new ZoomPopupMenu(this.jTreeMap);
getJContentPane().add(this.jTreeMap, BorderLayout.CENTER);
-
+
}
/**
@@ -64,7 +64,7 @@
/**
* This method initializes jContentPane
- *
+ *
* @return javax.swing.JPanel
*/
private javax.swing.JPanel getJContentPane() {
@@ -84,7 +84,7 @@
*/
private TreeMapNode getRoot() {
TreeMapNodeBuilder builder = new TreeMapNodeBuilder();
-
+
TreeMapNode root = builder.buildBranch("Root", null);
TreeMapNode tmn1 = builder.buildBranch("branch1", root);
TreeMapNode tmn11 = builder.buildBranch("branch11", tmn1);
@@ -214,7 +214,7 @@
builder.buildLeaf("leaf433",0.5, value, tmn43);
value = new ValuePercent(0.0);
builder.buildLeaf("leaf434",3.0, value, tmn43);
-
+
return builder.getRoot();
}
}
Modified: trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/example/JTreeMapExample.java
===================================================================
--- trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/example/JTreeMapExample.java 2006-10-23 21:45:31 UTC (rev 60)
+++ trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/example/JTreeMapExample.java 2006-10-23 21:58:57 UTC (rev 61)
@@ -1,4 +1,4 @@
-package org.jense.swing.jtreemap.example;
+package net.sf.jtreemap.swing.example;
import java.awt.*;
import javax.swing.*;
@@ -16,11 +16,11 @@
import javax.swing.filechooser.FileFilter;
import javax.swing.tree.DefaultTreeModel;
-import org.jense.swing.jtreemap.*;
+import net.sf.jtreemap.swing.*;
/**
* Test of JTreeMap
- *
+ *
* @author Laurent Dutheil
*/
public class JTreeMapExample extends JFrame implements ActionListener {
@@ -63,7 +63,7 @@
* same level
*/
// TreeMapNode.setBorder(5);
-
+
// add a popup menu to zoom the JTreeMap
this.zoomPopup = new ZoomPopupMenu(this.jTreeMap);
@@ -78,7 +78,7 @@
/**
* main
- *
+ *
* @param args command line
*/
public static void main(String[] args) {
@@ -89,7 +89,7 @@
/*
* (non-Javadoc)
- *
+ *
* @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
*/
public void actionPerformed(ActionEvent e) {
@@ -129,7 +129,7 @@
/**
* Set the tm3 file
- *
+ *
* @param path the path of the tm3 file
*/
public void setTm3File(String path) {
@@ -151,7 +151,7 @@
/**
* Set the xml file corresponding to the TreeMap.dtd
- *
+ *
* @param xmlFileName xml file name
*/
public void setXmlFile(String xmlFileName) {
@@ -173,7 +173,7 @@
/**
* Code to execute before closing the window
- *
+ *
* @param e WindowEvent
*/
protected void this_windowClosing(WindowEvent e) {
@@ -410,12 +410,12 @@
* This method build a default TreeMap root. <BR>
* This methode may be replaced by one who get the root from a servlet or a
* jdbc client or something else...
- *
+ *
* @return the root of the TreeMap.
*/
private TreeMapNode getDefaultRoot() {
TreeMapNodeBuilder builder = new TreeMapNodeBuilder();
-
+
TreeMapNode root = builder.buildBranch("Root", null);
TreeMapNode tmn1 = builder.buildBranch("branch1", root);
TreeMapNode tmn11 = builder.buildBranch("branch11", tmn1);
@@ -547,13 +547,13 @@
builder.buildLeaf("leaf434", 3.0, value, tmn43);
value = new ValuePercent(0.0);
builder.buildLeaf("leaf5", 5.0, value, root);
-
+
return builder.getRoot();
}
/**
* init the window
- *
+ *
* @throws Exception
*/
private void initGUI() throws Exception {
Modified: trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/example/RandomColorProvider.java
===================================================================
--- trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/example/RandomColorProvider.java 2006-10-23 21:45:31 UTC (rev 60)
+++ trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/example/RandomColorProvider.java 2006-10-23 21:58:57 UTC (rev 61)
@@ -1,7 +1,7 @@
/*
* Created on 4 nov. 2005
*/
-package org.jense.swing.jtreemap.example;
+package net.sf.jtreemap.swing.example;
import java.awt.Color;
import java.awt.Dimension;
@@ -12,10 +12,10 @@
import javax.swing.JPanel;
-import org.jense.swing.jtreemap.ColorProvider;
-import org.jense.swing.jtreemap.JTreeMap;
-import org.jense.swing.jtreemap.TreeMapNode;
-import org.jense.swing.jtreemap.Value;
+import net.sf.jtreemap.swing.ColorProvider;
+import net.sf.jtreemap.swing.JTreeMap;
+import net.sf.jtreemap.swing.TreeMapNode;
+import net.sf.jtreemap.swing.Value;
/**
* <p>
@@ -32,13 +32,13 @@
new Color(0, 255, 0), new Color(0, 0, 255), new Color(255, 255, 0),
new Color(255, 0, 255), new Color(0, 255, 255), new Color(102, 102, 51),
new Color(255, 51, 153), new Color(255, 153, 51),
- new Color(204, 204, 51), new Color(205, 102, 204),
+ new Color(204, 204, 51), new Color(205, 102, 204),
new Color(51, 153, 255), new Color(153, 102, 0) };
private int cursor = 0;
protected TreeMap<Value, Color> mapping = new TreeMap<Value, Color>();
private JPanel legend;
protected JTreeMap jTreeMap;
-
+
/**
* Constructor
* @param jTreeMap jTreeMap to color
@@ -48,8 +48,8 @@
}
/*
* (non-Javadoc)
- *
- * @see org.jense.swing.jtreemap.ColorProvider#getColor(double)
+ *
+ * @see net.sf.jtreemap.swing.ColorProvider#getColor(double)
*/
@Override
public Color getColor(Value value) {
@@ -78,8 +78,8 @@
/*
* (non-Javadoc)
- *
- * @see org.jense.swing.jtreemap.ColorProvider#getLegendPanel()
+ *
+ * @see net.sf.jtreemap.swing.ColorProvider#getLegendPanel()
*/
@Override
public JPanel getLegendPanel() {
@@ -91,7 +91,7 @@
/**
* Panel with the legend
- *
+ *
* @author Laurent Dutheil
*/
protected class Legend extends JPanel {
Modified: trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/example/RedGreenColorProvider.java
===================================================================
--- trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/example/RedGreenColorProvider.java 2006-10-23 21:45:31 UTC (rev 60)
+++ trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/example/RedGreenColorProvider.java 2006-10-23 21:58:57 UTC (rev 61)
@@ -1,11 +1,11 @@
-package org.jense.swing.jtreemap.example;
+package net.sf.jtreemap.swing.example;
import javax.swing.JPanel;
-import org.jense.swing.jtreemap.ColorProvider;
-import org.jense.swing.jtreemap.JTreeMap;
-import org.jense.swing.jtreemap.TreeMapNode;
-import org.jense.swing.jtreemap.Value;
+import net.sf.jtreemap.swing.ColorProvider;
+import net.sf.jtreemap.swing.JTreeMap;
+import net.sf.jtreemap.swing.TreeMapNode;
+import net.sf.jtreemap.swing.Value;
import java.awt.Color;
import java.awt.Graphics;
@@ -13,7 +13,7 @@
/**
* ColorProvider who, with a max absolute value M, choose the color between
* values -M and M.
- *
+ *
* @author Laurent Dutheil
*/
@@ -27,7 +27,7 @@
/**
* Constructor
- *
+ *
* @param jTreeMap the JTreeMap to color
*/
public RedGreenColorProvider(JTreeMap jTreeMap) {
@@ -106,7 +106,7 @@
/**
* Panel with the legend
- *
+ *
* @author Laurent Dutheil
*/
private class Legend extends JPanel {
Modified: trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/example/ValuePercent.java
===================================================================
--- trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/example/ValuePercent.java 2006-10-23 21:45:31 UTC (rev 60)
+++ trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/example/ValuePercent.java 2006-10-23 21:58:57 UTC (rev 61)
@@ -1,12 +1,12 @@
-package org.jense.swing.jtreemap.example;
+package net.sf.jtreemap.swing.example;
import java.text.NumberFormat;
-import org.jense.swing.jtreemap.Value;
+import net.sf.jtreemap.swing.Value;
/**
* class who can display the values of elements of a JTreeMap with pourcent
- *
+ *
* @author Laurent Dutheil
*/
@@ -26,7 +26,7 @@
/**
* Constructor of ValuePercent
- *
+ *
* @param value double value
*/
public ValuePercent(double value) {
Modified: trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/example/ZoomPopupMenu.java
===================================================================
--- trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/example/ZoomPopupMenu.java 2006-10-23 21:45:31 UTC (rev 60)
+++ trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/example/ZoomPopupMenu.java 2006-10-23 21:58:57 UTC (rev 61)
@@ -1,7 +1,7 @@
/*
* Created on 28 oct. 2005
*/
-package org.jense.swing.jtreemap.example;
+package net.sf.jtreemap.swing.example;
import java.awt.event.ActionEvent;
import java.awt.event.MouseAdapter;
@@ -13,14 +13,14 @@
import javax.swing.ImageIcon;
import javax.swing.JPopupMenu;
-import org.jense.swing.jtreemap.JTreeMap;
-import org.jense.swing.jtreemap.TreeMapNode;
+import net.sf.jtreemap.swing.JTreeMap;
+import net.sf.jtreemap.swing.TreeMapNode;
/**
* PopupMenu which permits to zoom the JTreeMap<BR>
* The menuItems are the ancestors and the children of the displayed TreeMapNode
* of the JTreeMap
- *
+ *
* @author Laurent Dutheil
*/
public class ZoomPopupMenu extends JPopupMenu {
@@ -53,7 +53,7 @@
/*
* (non-Javadoc)
- *
+ *
* @see java.awt.event.MouseListener#mouseClicked(java.awt.event.MouseEvent)
*/
@Override
@@ -114,7 +114,7 @@
/*
* (non-Javadoc)
- *
+ *
* @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
*/
public void actionPerformed(ActionEvent e) {
@@ -125,7 +125,7 @@
/*
* (non-Javadoc)
- *
+ *
* @see javax.swing.Action#isEnabled()
*/
@Override
Modified: trunk/JTreeMap/src/site/navigation.xml
===================================================================
--- trunk/JTreeMap/src/site/navigation.xml 2006-10-23 21:45:31 UTC (rev 60)
+++ trunk/JTreeMap/src/site/navigation.xml 2006-10-23 21:58:57 UTC (rev 61)
@@ -9,7 +9,7 @@
<links>
<item name="Page on Sourceforge" href="http://jtreemap.sourceforge.net" />
<item name="Main Page" href="../../index.html" />
- <item name="KTreeMap" href="../org.jense.ktreemap/index.html" />
+ <item name="KTreeMap" href="../net.sf.jtreemap.ktreemap/index.html" />
</links>
<sitemap/>
<search/>
Modified: trunk/KTreeMap/.project
===================================================================
--- trunk/KTreeMap/.project 2006-10-23 21:45:31 UTC (rev 60)
+++ trunk/KTreeMap/.project 2006-10-23 21:58:57 UTC (rev 61)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
- <name>org.jense.ktreemap</name>
+ <name>net.sf.jtreemap.ktreemap</name>
<comment></comment>
<projects>
</projects>
Modified: trunk/KTreeMap/META-INF/MANIFEST.MF
===================================================================
--- trunk/KTreeMap/META-INF/MANIFEST.MF 2006-10-23 21:45:31 UTC (rev 60)
+++ trunk/KTreeMap/META-INF/MANIFEST.MF 2006-10-23 21:58:57 UTC (rev 61)
@@ -1,7 +1,7 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: KTreeMap Plug-in
-Bundle-SymbolicName: org.jense.ktreemap;singleton:=true
+Bundle-SymbolicName: net.sf.jtreemap.ktreemap;singleton:=true
Bundle-Version: 1.0.0
Bundle-Vendor: Jense
Bundle-Localization: plugin
Modified: trunk/KTreeMap/project.xml
===================================================================
--- trunk/KTreeMap/project.xml 2006-10-23 21:45:31 UTC (rev 60)
+++ trunk/KTreeMap/project.xml 2006-10-23 21:58:57 UTC (rev 61)
@@ -25,8 +25,8 @@
<project>
<extend>../common-build/project.xml</extend>
<name>KTreeMap</name>
- <artifactId>org.jense.ktreemap</artifactId>
- <package>org.jense.ktreemap</package>
+ <artifactId>net.sf.jtreemap.ktreemap</artifactId>
+ <package>net.sf.jtreemap.ktreemap</package>
<shortDescription>KTreeMap is a Java SWT component which reprensents hierarchical structure in a Treemap.</shortDescription>
<description>
KTreeMap is a Java SWT component which represents hierarchical structure in a Treemap
Modified: trunk/KTreeMap/qalab.xml
===================================================================
--- trunk/KTreeMap/qalab.xml 2006-10-23 21:45:31 UTC (rev 60)
+++ trunk/KTreeMap/qalab.xml 2006-10-23 21:58:57 UTC (rev 61)
@@ -21,6 +21,10 @@
<summaryresult date="2006-10-18" filecount="1" statvalue="4" type="pmd"/>
<summaryresult date="2006-10-18" filecount="6" statvalue="7" type="findbugs"/>
<summaryresult date="2006-10-18" filecount="2" statvalue="34" type="simian"/>
+ <summaryresult date="2006-10-23" filecount="22" statvalue="136" type="checkstyle"/>
+ <summaryresult date="2006-10-23" filecount="1" statvalue="4" type="pmd"/>
+ <summaryresult date="2006-10-23" filecount="6" sta...
[truncated message content] |