|
From: <be...@us...> - 2006-10-23 21:23:06
|
Revision: 57
http://svn.sourceforge.net/jtreemap/?rev=57&view=rev
Author: benoitx
Date: 2006-10-23 14:22:42 -0700 (Mon, 23 Oct 2006)
Log Message:
-----------
Moved remotely
Added Paths:
-----------
trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/Value.java
Removed Paths:
-------------
trunk/JTreeMap/src/main/java/org/jense/swing/jtreemap/Value.java
Copied: trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/Value.java (from rev 56, trunk/JTreeMap/src/main/java/org/jense/swing/jtreemap/Value.java)
===================================================================
--- trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/Value.java (rev 0)
+++ trunk/JTreeMap/src/main/java/net/sf/jtreemap/swing/Value.java 2006-10-23 21:22:42 UTC (rev 57)
@@ -0,0 +1,64 @@
+package org.jense.swing.jtreemap;
+
+
+/**
+ * Class who permits to associate a double value to a label
+ *
+ * @author Laurent DUTHEIL
+ */
+
+public abstract class Value implements Comparable {
+ /**
+ * get the double value.
+ *
+ *@return the double value
+ */
+ public abstract double getValue();
+
+ /**
+ * get the formatedValue.
+ *
+ *@return the label of the value
+ */
+ public abstract String getLabel();
+
+ /**
+ * set the double value.
+ *
+ *@param value the new double value
+ */
+ public abstract void setValue(double value);
+
+ /**
+ * set the new label.
+ *
+ *@param newLabel the new label
+ */
+ public abstract void setLabel(String newLabel);
+
+ /* (non-Javadoc)
+ * @see java.lang.Object#equals(java.lang.Object)
+ */
+ @Override
+ public boolean equals(Object value) {
+ if (value != null && value instanceof Value) {
+ Value value2 = (Value) value;
+ return value2.getValue() == this.getValue();
+ }
+ return false;
+ }
+
+ /* (non-Javadoc)
+ * @see java.lang.Comparable#compareTo(java.lang.Object)
+ */
+ public int compareTo(Object value) {
+ if (value != null && value instanceof Value) {
+ Value value2 = (Value) value;
+ if (this.getValue() < value2.getValue()) {
+ return -1;
+ }
+ return this.getValue() > value2.getValue() ? 1 : 0;
+ }
+ throw new IllegalArgumentException();
+ }
+}
Deleted: trunk/JTreeMap/src/main/java/org/jense/swing/jtreemap/Value.java
===================================================================
--- trunk/JTreeMap/src/main/java/org/jense/swing/jtreemap/Value.java 2006-10-23 21:21:20 UTC (rev 56)
+++ trunk/JTreeMap/src/main/java/org/jense/swing/jtreemap/Value.java 2006-10-23 21:22:42 UTC (rev 57)
@@ -1,64 +0,0 @@
-package org.jense.swing.jtreemap;
-
-
-/**
- * Class who permits to associate a double value to a label
- *
- * @author Laurent DUTHEIL
- */
-
-public abstract class Value implements Comparable {
- /**
- * get the double value.
- *
- *@return the double value
- */
- public abstract double getValue();
-
- /**
- * get the formatedValue.
- *
- *@return the label of the value
- */
- public abstract String getLabel();
-
- /**
- * set the double value.
- *
- *@param value the new double value
- */
- public abstract void setValue(double value);
-
- /**
- * set the new label.
- *
- *@param newLabel the new label
- */
- public abstract void setLabel(String newLabel);
-
- /* (non-Javadoc)
- * @see java.lang.Object#equals(java.lang.Object)
- */
- @Override
- public boolean equals(Object value) {
- if (value != null && value instanceof Value) {
- Value value2 = (Value) value;
- return value2.getValue() == this.getValue();
- }
- return false;
- }
-
- /* (non-Javadoc)
- * @see java.lang.Comparable#compareTo(java.lang.Object)
- */
- public int compareTo(Object value) {
- if (value != null && value instanceof Value) {
- Value value2 = (Value) value;
- if (this.getValue() < value2.getValue()) {
- return -1;
- }
- return this.getValue() > value2.getValue() ? 1 : 0;
- }
- throw new IllegalArgumentException();
- }
-}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|