author | Anton Epple <toni.epple@eppleton.de> |
Mon, 27 May 2013 10:00:12 +0200 | |
branch | canvas |
changeset 1148 | 6ef06b72bb06 |
permissions | -rw-r--r-- |
toni@1148 | 1 |
/* |
toni@1148 | 2 |
* To change this template, choose Tools | Templates |
toni@1148 | 3 |
* and open the template in the editor. |
toni@1148 | 4 |
*/ |
toni@1148 | 5 |
package net.java.html.canvas; |
toni@1148 | 6 |
|
toni@1148 | 7 |
/** |
toni@1148 | 8 |
* |
toni@1148 | 9 |
* @author antonepple |
toni@1148 | 10 |
*/ |
toni@1148 | 11 |
public class Color extends Style{ |
toni@1148 | 12 |
|
toni@1148 | 13 |
String web; |
toni@1148 | 14 |
|
toni@1148 | 15 |
/** |
toni@1148 | 16 |
* Creates an RGB color specified with an HTML or CSS attribute string. |
toni@1148 | 17 |
* @param webColor Colordefined as |
toni@1148 | 18 |
*/ |
toni@1148 | 19 |
Color(String webColor) { |
toni@1148 | 20 |
this.web = web; |
toni@1148 | 21 |
} |
toni@1148 | 22 |
|
toni@1148 | 23 |
public String getAsString(){ |
toni@1148 | 24 |
return web; |
toni@1148 | 25 |
} |
toni@1148 | 26 |
|
toni@1148 | 27 |
} |