/[gzz]/gzz/doc/pegboard/vob_colorable--humppake/peg.rst
ViewVC logotype

Diff of /gzz/doc/pegboard/vob_colorable--humppake/peg.rst

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.6 by humppake, Fri Mar 14 09:50:03 2003 UTC revision 1.7 by humppake, Fri Mar 14 14:22:49 2003 UTC
# Line 153  Issues Line 153  Issues
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    
# Line 211  diagram: Line 209  diagram:
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"

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26