153 |
ColorableVob cloneColored(List); // for List |
ColorableVob cloneColored(List); // for List |
154 |
ColorableVob cloneColored(Color); // for single color |
ColorableVob cloneColored(Color); // for single color |
155 |
|
|
156 |
RE-RESOLVED: Previously introduced methods add the new colors |
RE-RESOLVED: Previously introduced methods replace the old |
157 |
(parameters) next to old ones (the colors of the original vob). |
colors (the colors of the original vob) with new ones (parameter |
158 |
Actually, the methods are only overloading methods for ones |
colors). The following methods are used to add the new colors |
159 |
with overriding flag:: |
next to old ones:: |
160 |
|
|
161 |
ColorableVob cloneColored(Color[], boolean); |
ColorableVob cloneColorAdded(Color[]); |
162 |
ColorableVob cloneColored(List), boolean; |
ColorableVob cloneColorAdded(List); |
163 |
ColorableVob cloneColored(Color, boolean); |
ColorableVob cloneColorAdded(Color); |
|
|
|
|
When flag is set, old colors will |
|
|
be replaced when cloning, if unset, the new colors |
|
|
will be added next to old ones. ? |
|
164 |
|
|
165 |
|
They could be implemented as shorthands to the cloneColored(color[]) |
166 |
|
method. I.e. ``return cloneColored(getColors().clone().append(color))``. |
167 |
|
|
168 |
- Should SolidBgVob be inherited from Colorable Vob? |
- Should SolidBgVob be inherited from Colorable Vob? |
169 |
|
|
209 |
+ColorableVob cloneColored(Color[] colors) |
+ColorableVob cloneColored(Color[] colors) |
210 |
+ColorableVob cloneColored(List colors) |
+ColorableVob cloneColored(List colors) |
211 |
+ColorableVob cloneColored(Color c) |
+ColorableVob cloneColored(Color c) |
212 |
+ColorableVob cloneColored(Color[] colors, boolean override) |
+ColorableVob cloneColorAdded(Color[] colors) |
213 |
+ColorableVob cloneColored(List colors, boolean override) |
+ColorableVob cloneColorAdded(List colors) |
214 |
+ColorableVob cloneColored(Color c, boolean override) |
+ColorableVob cloneColorAdded(Color c) |
215 |
+Color[] getColors() |
+Color[] getColors() |
216 |
|
|
217 |
class java.lang.Cloneable "interface" |
class java.lang.Cloneable "interface" |