26272829303132
protected ColoredShape() { } public ColoredShape(Point position, Color color) { super(position); this.color = new ColorWrapper(color); }
363738394041424344
} public void setColor(Color color) { Color oldValue = this.color.getColor(); if (notifyRemote(PROP_COLOR_PROPERTY, oldValue, color)) { this.color = new ColorWrapper(color); notifyLocal(PROP_COLOR_PROPERTY, oldValue, color); } }
3031323334353637
public Player(String name, Boolean mj, Color color) { super(); this.name = name; this.dm = mj; this.color = new ColorWrapper(color); this.connected = false; }
63646566676869
public Color getRealColor() { return getColor().getColor(); } public void changeColor(Color color) { setColor(new ColorWrapper(color)); }
7172737475767778798081
public ColorWrapper getColor() { return color; } public void setColor(ColorWrapper color) { ColorWrapper oldValue = this.color; if (notifyRemote(PROP_COLOR_PROPERTY, oldValue, color)) { this.color = color; notifyLocal(PROP_COLOR_PROPERTY, oldValue, color); } }