gzz-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gzz] PEG ``vob_bgvob--humppake``: Background Vob interface


From: Asko Soukka
Subject: Re: [Gzz] PEG ``vob_bgvob--humppake``: Background Vob interface
Date: Thu, 6 Mar 2003 01:16:43 +0200 (EET)

Wed, 5 Mar 2003, Benja Fallenstein wrote:
> > "Background + solid colors" sounds more like a description of BgVob to me?
> Or hmm. Actually the sector circles used in ball&stick aren't a 
> background. But then again, they do have a border... :-)

Hmm... this is getting tricky now :) If I can't have variables in 
interfaces and all methods I've proposed are only related to those 
variables I can't have, should I create only AbstractBgVob (with all 
the methods/variables I've proposed) and no interfaces?

Or would the following be correct?

   Interface BgVob:
                                                                                
        public void setBorderColor(Color c) {}
        public Color getBorderColor() {}
                                                                                
        public void setBgColor(Color c) {}
        public Color getBgColor() {}
                                                                                
   Interface ColoredVob:
                                                                                
        public void addColor(Color c) {}
        public Color[] getColors() {}


   AbstractBgVob implements ColoredVob, BgVob:

        public boolean drawBorder = true;
        protected List colors = new List(5);
        protected Color bg = Color.white;
                                                                               
-- 
Asko Soukka <address@hidden>
<http://www.iki.fi/asko.soukka/>







reply via email to

[Prev in Thread] Current Thread [Next in Thread]