void put(String name, Box b, Object value) { put(b, value); }
static {
- //#repeat fillcolor/strokecolor
- specialBoxProperties.put("fillcolor", new SpecialBoxProperty() {
+ //#repeat fill/stroke fillcolor/strokecolor
+ specialBoxProperties.put("fill", new SpecialBoxProperty() {
public Object get(Box b) {
if ((b.fillcolor & 0xFF000000) == 0) return null;
String red = Integer.toHexString((b.fillcolor & 0x00FF0000) >> 16);
//#end
specialBoxProperties.put("color", new SpecialBoxProperty() {
- public Object get(Box b) { return b.get("fillcolor"); }
- public void put(Box b, Object value) { b.put("fillcolor", value); }
+ public Object get(Box b) { return b.get("fill"); }
+ public void put(Box b, Object value) { b.put("fill", value); }
});
specialBoxProperties.put("textcolor", new SpecialBoxProperty() {
- public Object get(Box b) { return b.get("strokecolor"); }
- public void put(Box b, Object value) { b.put("strokecolor", value); }
+ public Object get(Box b) { return b.get("stroke"); }
+ public void put(Box b, Object value) { b.put("stroke", value); }
});
specialBoxProperties.put("text", new SpecialBoxProperty() {