commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brit...@apache.org
Subject svn commit: r935812 [13/46] - in /websites/production/commons/content/proper/commons-imaging: ./ apidocs/ apidocs/org/apache/commons/imaging/ apidocs/org/apache/commons/imaging/class-use/ apidocs/org/apache/commons/imaging/color/ apidocs/org/apache/com...
Date Sun, 11 Jan 2015 12:33:28 GMT
Modified: websites/production/commons/content/proper/commons-imaging/apidocs/src-html/org/apache/commons/imaging/color/ColorHunterLab.html
==============================================================================
--- websites/production/commons/content/proper/commons-imaging/apidocs/src-html/org/apache/commons/imaging/color/ColorHunterLab.html
(original)
+++ websites/production/commons/content/proper/commons-imaging/apidocs/src-html/org/apache/commons/imaging/color/ColorHunterLab.html
Sun Jan 11 12:33:25 2015
@@ -26,21 +26,107 @@
 <span class="sourceLineNo">018</span><a name="line.18"></a>
 <span class="sourceLineNo">019</span>public final class ColorHunterLab {<a
name="line.19"></a>
 <span class="sourceLineNo">020</span><a name="line.20"></a>
-<span class="sourceLineNo">021</span>    public final double L;<a name="line.21"></a>
-<span class="sourceLineNo">022</span>    public final double a;<a name="line.22"></a>
-<span class="sourceLineNo">023</span>    public final double b;<a name="line.23"></a>
-<span class="sourceLineNo">024</span><a name="line.24"></a>
-<span class="sourceLineNo">025</span>    public ColorHunterLab(final double L,
final double a, final double b) {<a name="line.25"></a>
-<span class="sourceLineNo">026</span>        this.L = L;<a name="line.26"></a>
-<span class="sourceLineNo">027</span>        this.a = a;<a name="line.27"></a>
-<span class="sourceLineNo">028</span>        this.b = b;<a name="line.28"></a>
-<span class="sourceLineNo">029</span>    }<a name="line.29"></a>
+<span class="sourceLineNo">021</span>    /**<a name="line.21"></a>
+<span class="sourceLineNo">022</span>     * A constant for color black. Color
components are:<a name="line.22"></a>
+<span class="sourceLineNo">023</span>     * &lt;pre&gt;<a name="line.23"></a>
+<span class="sourceLineNo">024</span>     *     L: 0<a name="line.24"></a>
+<span class="sourceLineNo">025</span>     *     a: 0<a name="line.25"></a>
+<span class="sourceLineNo">026</span>     *     b: 0<a name="line.26"></a>
+<span class="sourceLineNo">027</span>     * &lt;/pre&gt;<a name="line.27"></a>
+<span class="sourceLineNo">028</span>     */<a name="line.28"></a>
+<span class="sourceLineNo">029</span>    public static final ColorHunterLab BLACK
= new ColorHunterLab(0, 0, 0);<a name="line.29"></a>
 <span class="sourceLineNo">030</span><a name="line.30"></a>
-<span class="sourceLineNo">031</span>    @Override<a name="line.31"></a>
-<span class="sourceLineNo">032</span>    public String toString() {<a name="line.32"></a>
-<span class="sourceLineNo">033</span>        return "{L: " + L + ", a: " + a
+ ", b: " + b + "}";<a name="line.33"></a>
-<span class="sourceLineNo">034</span>    }<a name="line.34"></a>
-<span class="sourceLineNo">035</span>}<a name="line.35"></a>
+<span class="sourceLineNo">031</span>    /**<a name="line.31"></a>
+<span class="sourceLineNo">032</span>     * A constant for color white. Color
components are:<a name="line.32"></a>
+<span class="sourceLineNo">033</span>     * &lt;pre&gt;<a name="line.33"></a>
+<span class="sourceLineNo">034</span>     *     L: 100.000<a name="line.34"></a>
+<span class="sourceLineNo">035</span>     *     a:  -5.336<a name="line.35"></a>
+<span class="sourceLineNo">036</span>     *     b:   5.433<a name="line.36"></a>
+<span class="sourceLineNo">037</span>     * &lt;/pre&gt;<a name="line.37"></a>
+<span class="sourceLineNo">038</span>     */<a name="line.38"></a>
+<span class="sourceLineNo">039</span>    public static final ColorHunterLab WHITE
= new ColorHunterLab(100, -5.336, 5.433);<a name="line.39"></a>
+<span class="sourceLineNo">040</span><a name="line.40"></a>
+<span class="sourceLineNo">041</span>    /**<a name="line.41"></a>
+<span class="sourceLineNo">042</span>     * A constant for color red. Color components
are:<a name="line.42"></a>
+<span class="sourceLineNo">043</span>     * &lt;pre&gt;<a name="line.43"></a>
+<span class="sourceLineNo">044</span>     *     L: 46.109<a name="line.44"></a>
+<span class="sourceLineNo">045</span>     *     a: 78.962<a name="line.45"></a>
+<span class="sourceLineNo">046</span>     *     b: 29.794<a name="line.46"></a>
+<span class="sourceLineNo">047</span>     * &lt;/pre&gt;<a name="line.47"></a>
+<span class="sourceLineNo">048</span>     */<a name="line.48"></a>
+<span class="sourceLineNo">049</span>    public static final ColorHunterLab RED
= new ColorHunterLab(46.109, 78.962, 29.794);<a name="line.49"></a>
+<span class="sourceLineNo">050</span><a name="line.50"></a>
+<span class="sourceLineNo">051</span>    /**<a name="line.51"></a>
+<span class="sourceLineNo">052</span>     * A constant for color green. Color
components are:<a name="line.52"></a>
+<span class="sourceLineNo">053</span>     * &lt;pre&gt;<a name="line.53"></a>
+<span class="sourceLineNo">054</span>     *     L:  84.569<a name="line.54"></a>
+<span class="sourceLineNo">055</span>     *     a: -72.518<a name="line.55"></a>
+<span class="sourceLineNo">056</span>     *     b:  50.842<a name="line.56"></a>
+<span class="sourceLineNo">057</span>     * &lt;/pre&gt;<a name="line.57"></a>
+<span class="sourceLineNo">058</span>     */<a name="line.58"></a>
+<span class="sourceLineNo">059</span>    public static final ColorHunterLab GREEN
= new ColorHunterLab(84.569, -72.518, 50.842);<a name="line.59"></a>
+<span class="sourceLineNo">060</span><a name="line.60"></a>
+<span class="sourceLineNo">061</span>    /**<a name="line.61"></a>
+<span class="sourceLineNo">062</span>     * A constant for color blue. Color
components are:<a name="line.62"></a>
+<span class="sourceLineNo">063</span>     * &lt;pre&gt;<a name="line.63"></a>
+<span class="sourceLineNo">064</span>     *     L:   26.870<a name="line.64"></a>
+<span class="sourceLineNo">065</span>     *     a:   72.885<a name="line.65"></a>
+<span class="sourceLineNo">066</span>     *     b: -190.923<a name="line.66"></a>
+<span class="sourceLineNo">067</span>     * &lt;/pre&gt;<a name="line.67"></a>
+<span class="sourceLineNo">068</span>     */<a name="line.68"></a>
+<span class="sourceLineNo">069</span>    public static final ColorHunterLab BLUE
= new ColorHunterLab(26.870, 72.885, -190.923);<a name="line.69"></a>
+<span class="sourceLineNo">070</span><a name="line.70"></a>
+<span class="sourceLineNo">071</span>    public final double L;<a name="line.71"></a>
+<span class="sourceLineNo">072</span>    public final double a;<a name="line.72"></a>
+<span class="sourceLineNo">073</span>    public final double b;<a name="line.73"></a>
+<span class="sourceLineNo">074</span><a name="line.74"></a>
+<span class="sourceLineNo">075</span>    public ColorHunterLab(final double L,
final double a, final double b) {<a name="line.75"></a>
+<span class="sourceLineNo">076</span>        this.L = L;<a name="line.76"></a>
+<span class="sourceLineNo">077</span>        this.a = a;<a name="line.77"></a>
+<span class="sourceLineNo">078</span>        this.b = b;<a name="line.78"></a>
+<span class="sourceLineNo">079</span>    }<a name="line.79"></a>
+<span class="sourceLineNo">080</span><a name="line.80"></a>
+<span class="sourceLineNo">081</span>    @Override<a name="line.81"></a>
+<span class="sourceLineNo">082</span>    public String toString() {<a name="line.82"></a>
+<span class="sourceLineNo">083</span>        return "{L: " + L + ", a: " + a
+ ", b: " + b + "}";<a name="line.83"></a>
+<span class="sourceLineNo">084</span>    }<a name="line.84"></a>
+<span class="sourceLineNo">085</span><a name="line.85"></a>
+<span class="sourceLineNo">086</span>    @Override<a name="line.86"></a>
+<span class="sourceLineNo">087</span>    public boolean equals(Object o) {<a
name="line.87"></a>
+<span class="sourceLineNo">088</span>        if (this == o) {<a name="line.88"></a>
+<span class="sourceLineNo">089</span>            return true;<a name="line.89"></a>
+<span class="sourceLineNo">090</span>        }<a name="line.90"></a>
+<span class="sourceLineNo">091</span>        if (o == null || getClass() != o.getClass())
{<a name="line.91"></a>
+<span class="sourceLineNo">092</span>            return false;<a name="line.92"></a>
+<span class="sourceLineNo">093</span>        }<a name="line.93"></a>
+<span class="sourceLineNo">094</span><a name="line.94"></a>
+<span class="sourceLineNo">095</span>        ColorHunterLab that = (ColorHunterLab)
o;<a name="line.95"></a>
+<span class="sourceLineNo">096</span>        if (Double.compare(that.L, L) !=
0) {<a name="line.96"></a>
+<span class="sourceLineNo">097</span>            return false;<a name="line.97"></a>
+<span class="sourceLineNo">098</span>        }<a name="line.98"></a>
+<span class="sourceLineNo">099</span>        if (Double.compare(that.a, a) !=
0) {<a name="line.99"></a>
+<span class="sourceLineNo">100</span>            return false;<a name="line.100"></a>
+<span class="sourceLineNo">101</span>        }<a name="line.101"></a>
+<span class="sourceLineNo">102</span>        if (Double.compare(that.b, b) !=
0) {<a name="line.102"></a>
+<span class="sourceLineNo">103</span>            return false;<a name="line.103"></a>
+<span class="sourceLineNo">104</span>        }<a name="line.104"></a>
+<span class="sourceLineNo">105</span><a name="line.105"></a>
+<span class="sourceLineNo">106</span>        return true;<a name="line.106"></a>
+<span class="sourceLineNo">107</span>    }<a name="line.107"></a>
+<span class="sourceLineNo">108</span><a name="line.108"></a>
+<span class="sourceLineNo">109</span>    @Override<a name="line.109"></a>
+<span class="sourceLineNo">110</span>    public int hashCode() {<a name="line.110"></a>
+<span class="sourceLineNo">111</span>        int result;<a name="line.111"></a>
+<span class="sourceLineNo">112</span>        long temp;<a name="line.112"></a>
+<span class="sourceLineNo">113</span>        temp = Double.doubleToLongBits(L);<a
name="line.113"></a>
+<span class="sourceLineNo">114</span>        result = (int) (temp ^ (temp &gt;&gt;&gt;
32));<a name="line.114"></a>
+<span class="sourceLineNo">115</span>        temp = Double.doubleToLongBits(a);<a
name="line.115"></a>
+<span class="sourceLineNo">116</span>        result = 31 * result + (int) (temp
^ (temp &gt;&gt;&gt; 32));<a name="line.116"></a>
+<span class="sourceLineNo">117</span>        temp = Double.doubleToLongBits(b);<a
name="line.117"></a>
+<span class="sourceLineNo">118</span>        result = 31 * result + (int) (temp
^ (temp &gt;&gt;&gt; 32));<a name="line.118"></a>
+<span class="sourceLineNo">119</span>        return result;<a name="line.119"></a>
+<span class="sourceLineNo">120</span>    }<a name="line.120"></a>
+<span class="sourceLineNo">121</span>}<a name="line.121"></a>
 
 
 

Modified: websites/production/commons/content/proper/commons-imaging/apidocs/src-html/org/apache/commons/imaging/color/ColorXyz.html
==============================================================================
--- websites/production/commons/content/proper/commons-imaging/apidocs/src-html/org/apache/commons/imaging/color/ColorXyz.html
(original)
+++ websites/production/commons/content/proper/commons-imaging/apidocs/src-html/org/apache/commons/imaging/color/ColorXyz.html
Sun Jan 11 12:33:25 2015
@@ -26,21 +26,107 @@
 <span class="sourceLineNo">018</span><a name="line.18"></a>
 <span class="sourceLineNo">019</span>public final class ColorXyz {<a name="line.19"></a>
 <span class="sourceLineNo">020</span><a name="line.20"></a>
-<span class="sourceLineNo">021</span>    public final double X;<a name="line.21"></a>
-<span class="sourceLineNo">022</span>    public final double Y;<a name="line.22"></a>
-<span class="sourceLineNo">023</span>    public final double Z;<a name="line.23"></a>
-<span class="sourceLineNo">024</span><a name="line.24"></a>
-<span class="sourceLineNo">025</span>    public ColorXyz(final double X, final
double Y, final double Z) {<a name="line.25"></a>
-<span class="sourceLineNo">026</span>        this.X = X;<a name="line.26"></a>
-<span class="sourceLineNo">027</span>        this.Y = Y;<a name="line.27"></a>
-<span class="sourceLineNo">028</span>        this.Z = Z;<a name="line.28"></a>
-<span class="sourceLineNo">029</span>    }<a name="line.29"></a>
+<span class="sourceLineNo">021</span>    /**<a name="line.21"></a>
+<span class="sourceLineNo">022</span>     * A constant for color black. Color
components are:<a name="line.22"></a>
+<span class="sourceLineNo">023</span>     * &lt;pre&gt;<a name="line.23"></a>
+<span class="sourceLineNo">024</span>     *     X: 0<a name="line.24"></a>
+<span class="sourceLineNo">025</span>     *     Y: 0<a name="line.25"></a>
+<span class="sourceLineNo">026</span>     *     Z: 0<a name="line.26"></a>
+<span class="sourceLineNo">027</span>     * &lt;/pre&gt;<a name="line.27"></a>
+<span class="sourceLineNo">028</span>     */<a name="line.28"></a>
+<span class="sourceLineNo">029</span>    public static final ColorXyz BLACK =
new ColorXyz(0, 0, 0);<a name="line.29"></a>
 <span class="sourceLineNo">030</span><a name="line.30"></a>
-<span class="sourceLineNo">031</span>    @Override<a name="line.31"></a>
-<span class="sourceLineNo">032</span>    public String toString() {<a name="line.32"></a>
-<span class="sourceLineNo">033</span>        return "{X: " + X + ", Y: " + Y
+ ", Z: " + Z + "}";<a name="line.33"></a>
-<span class="sourceLineNo">034</span>    }<a name="line.34"></a>
-<span class="sourceLineNo">035</span>}<a name="line.35"></a>
+<span class="sourceLineNo">031</span>    /**<a name="line.31"></a>
+<span class="sourceLineNo">032</span>     * A constant for color white. Color
components are:<a name="line.32"></a>
+<span class="sourceLineNo">033</span>     * &lt;pre&gt;<a name="line.33"></a>
+<span class="sourceLineNo">034</span>     *     X:  95.05<a name="line.34"></a>
+<span class="sourceLineNo">035</span>     *     Y: 100.00<a name="line.35"></a>
+<span class="sourceLineNo">036</span>     *     Z: 108.90<a name="line.36"></a>
+<span class="sourceLineNo">037</span>     * &lt;/pre&gt;<a name="line.37"></a>
+<span class="sourceLineNo">038</span>     */<a name="line.38"></a>
+<span class="sourceLineNo">039</span>    public static final ColorXyz WHITE =
new ColorXyz(95.05, 100, 108.9);<a name="line.39"></a>
+<span class="sourceLineNo">040</span><a name="line.40"></a>
+<span class="sourceLineNo">041</span>    /**<a name="line.41"></a>
+<span class="sourceLineNo">042</span>     * A constant for color red. Color components
are:<a name="line.42"></a>
+<span class="sourceLineNo">043</span>     * &lt;pre&gt;<a name="line.43"></a>
+<span class="sourceLineNo">044</span>     *     X: 41.24<a name="line.44"></a>
+<span class="sourceLineNo">045</span>     *     Y: 21.26<a name="line.45"></a>
+<span class="sourceLineNo">046</span>     *     Z:  1.93<a name="line.46"></a>
+<span class="sourceLineNo">047</span>     * &lt;/pre&gt;<a name="line.47"></a>
+<span class="sourceLineNo">048</span>     */<a name="line.48"></a>
+<span class="sourceLineNo">049</span>    public static final ColorXyz RED = new
ColorXyz(41.24, 21.26, 1.93);<a name="line.49"></a>
+<span class="sourceLineNo">050</span><a name="line.50"></a>
+<span class="sourceLineNo">051</span>    /**<a name="line.51"></a>
+<span class="sourceLineNo">052</span>     * A constant for color green. Color
components are:<a name="line.52"></a>
+<span class="sourceLineNo">053</span>     * &lt;pre&gt;<a name="line.53"></a>
+<span class="sourceLineNo">054</span>     *     X: 35.76<a name="line.54"></a>
+<span class="sourceLineNo">055</span>     *     Y: 71.52<a name="line.55"></a>
+<span class="sourceLineNo">056</span>     *     Z: 11.92<a name="line.56"></a>
+<span class="sourceLineNo">057</span>     * &lt;/pre&gt;<a name="line.57"></a>
+<span class="sourceLineNo">058</span>     */<a name="line.58"></a>
+<span class="sourceLineNo">059</span>    public static final ColorXyz GREEN =
new ColorXyz(35.76, 71.52, 11.92);<a name="line.59"></a>
+<span class="sourceLineNo">060</span><a name="line.60"></a>
+<span class="sourceLineNo">061</span>    /**<a name="line.61"></a>
+<span class="sourceLineNo">062</span>     * A constant for color blue. Color
components are:<a name="line.62"></a>
+<span class="sourceLineNo">063</span>     * &lt;pre&gt;<a name="line.63"></a>
+<span class="sourceLineNo">064</span>     *     X: 18.05<a name="line.64"></a>
+<span class="sourceLineNo">065</span>     *     Y:  7.22<a name="line.65"></a>
+<span class="sourceLineNo">066</span>     *     Z: 95.05<a name="line.66"></a>
+<span class="sourceLineNo">067</span>     * &lt;/pre&gt;<a name="line.67"></a>
+<span class="sourceLineNo">068</span>     */<a name="line.68"></a>
+<span class="sourceLineNo">069</span>    public static final ColorXyz BLUE =
new ColorXyz(18.05, 7.22, 95.05);<a name="line.69"></a>
+<span class="sourceLineNo">070</span><a name="line.70"></a>
+<span class="sourceLineNo">071</span>    public final double X;<a name="line.71"></a>
+<span class="sourceLineNo">072</span>    public final double Y;<a name="line.72"></a>
+<span class="sourceLineNo">073</span>    public final double Z;<a name="line.73"></a>
+<span class="sourceLineNo">074</span><a name="line.74"></a>
+<span class="sourceLineNo">075</span>    public ColorXyz(final double X, final
double Y, final double Z) {<a name="line.75"></a>
+<span class="sourceLineNo">076</span>        this.X = X;<a name="line.76"></a>
+<span class="sourceLineNo">077</span>        this.Y = Y;<a name="line.77"></a>
+<span class="sourceLineNo">078</span>        this.Z = Z;<a name="line.78"></a>
+<span class="sourceLineNo">079</span>    }<a name="line.79"></a>
+<span class="sourceLineNo">080</span><a name="line.80"></a>
+<span class="sourceLineNo">081</span>    @Override<a name="line.81"></a>
+<span class="sourceLineNo">082</span>    public String toString() {<a name="line.82"></a>
+<span class="sourceLineNo">083</span>        return "{X: " + X + ", Y: " + Y
+ ", Z: " + Z + "}";<a name="line.83"></a>
+<span class="sourceLineNo">084</span>    }<a name="line.84"></a>
+<span class="sourceLineNo">085</span><a name="line.85"></a>
+<span class="sourceLineNo">086</span>    @Override<a name="line.86"></a>
+<span class="sourceLineNo">087</span>    public boolean equals(Object o) {<a
name="line.87"></a>
+<span class="sourceLineNo">088</span>        if (this == o) {<a name="line.88"></a>
+<span class="sourceLineNo">089</span>            return true;<a name="line.89"></a>
+<span class="sourceLineNo">090</span>        }<a name="line.90"></a>
+<span class="sourceLineNo">091</span>        if (o == null || getClass() != o.getClass())
{<a name="line.91"></a>
+<span class="sourceLineNo">092</span>            return false;<a name="line.92"></a>
+<span class="sourceLineNo">093</span>        }<a name="line.93"></a>
+<span class="sourceLineNo">094</span><a name="line.94"></a>
+<span class="sourceLineNo">095</span>        ColorXyz colorXyz = (ColorXyz) o;<a
name="line.95"></a>
+<span class="sourceLineNo">096</span>        if (Double.compare(colorXyz.X, X)
!= 0) {<a name="line.96"></a>
+<span class="sourceLineNo">097</span>            return false;<a name="line.97"></a>
+<span class="sourceLineNo">098</span>        }<a name="line.98"></a>
+<span class="sourceLineNo">099</span>        if (Double.compare(colorXyz.Y, Y)
!= 0) {<a name="line.99"></a>
+<span class="sourceLineNo">100</span>            return false;<a name="line.100"></a>
+<span class="sourceLineNo">101</span>        }<a name="line.101"></a>
+<span class="sourceLineNo">102</span>        if (Double.compare(colorXyz.Z, Z)
!= 0) {<a name="line.102"></a>
+<span class="sourceLineNo">103</span>            return false;<a name="line.103"></a>
+<span class="sourceLineNo">104</span>        }<a name="line.104"></a>
+<span class="sourceLineNo">105</span><a name="line.105"></a>
+<span class="sourceLineNo">106</span>        return true;<a name="line.106"></a>
+<span class="sourceLineNo">107</span>    }<a name="line.107"></a>
+<span class="sourceLineNo">108</span><a name="line.108"></a>
+<span class="sourceLineNo">109</span>    @Override<a name="line.109"></a>
+<span class="sourceLineNo">110</span>    public int hashCode() {<a name="line.110"></a>
+<span class="sourceLineNo">111</span>        int result;<a name="line.111"></a>
+<span class="sourceLineNo">112</span>        long temp;<a name="line.112"></a>
+<span class="sourceLineNo">113</span>        temp = Double.doubleToLongBits(X);<a
name="line.113"></a>
+<span class="sourceLineNo">114</span>        result = (int) (temp ^ (temp &gt;&gt;&gt;
32));<a name="line.114"></a>
+<span class="sourceLineNo">115</span>        temp = Double.doubleToLongBits(Y);<a
name="line.115"></a>
+<span class="sourceLineNo">116</span>        result = 31 * result + (int) (temp
^ (temp &gt;&gt;&gt; 32));<a name="line.116"></a>
+<span class="sourceLineNo">117</span>        temp = Double.doubleToLongBits(Z);<a
name="line.117"></a>
+<span class="sourceLineNo">118</span>        result = 31 * result + (int) (temp
^ (temp &gt;&gt;&gt; 32));<a name="line.118"></a>
+<span class="sourceLineNo">119</span>        return result;<a name="line.119"></a>
+<span class="sourceLineNo">120</span>    }<a name="line.120"></a>
+<span class="sourceLineNo">121</span>}<a name="line.121"></a>
 
 
 



Mime
View raw message