swarm-support
[Top][All Lists]
Advanced

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

Re: setGraphWindowGeometryRecordName:


From: Ken Cline
Subject: Re: setGraphWindowGeometryRecordName:
Date: Sat, 3 Jan 1998 14:39:41 -0500 (EST)

Rick,

It appears to me that ArchivedGeometryWidget (which is a
superclass of BLTGraph, but *not* of EZBin) supports a
method called `setWindowGeometryRecordName' but not a method
called `setGraphWindowGeometryRecordName'.

Have you tried just `setWindowGeometryRecordName'?

I'm not sure you'll be able to use `setWindowGeometryRecordName'
feature with instances of the EZBin class since (1) EZBin is
a type of probe and (2) the "aHisto" ivar is an instance of
the Histo class which does not subclass the ArchivedGeometryWidget
class. (The Histo class subclasses Widget directly, btw.)

Oh, now I see the confusion... If you look at EZGraph you'll
notice that *it* has the method called `setGraphWindowGeometryRecordName'.
Also note that when `createEnd' is called then it in turn calls
`setWindowGeometryRecordName' for the `theGraph' ivar which
is an instance of BLTGraph.

Perhaps all that is needed is make the Histo class subclass
ArchivedGeometryWidget (instead of Widget) and then make
additions to EZBin similar to those in EZGraph.  Although I
doubt it could be that easy. =:-)

Hope that helps.

Ken.


On Fri, 2 Jan 1998, Rick Riolo wrote:

> 
> I noticed this great new feature in swarm-1.0.4 (to make it
> easily to save and restore window positions), and I see
> it works fine for heatbugs widgets/windows like the 
> ZoomRaster worldRaster, and the EZGraph unhappyGraph.
> 
> I tried to use it with a BLTGraph as follows:
>    BGraph = [BLTGraph createBegin: [self getZone]];
>    [BGraph setGraphWindowGeometryRecordName : "tempHeatGraphWindow"];
>    BGraph = [BGraph createEnd];
> 
> But then I get this error:
> 
> HeatbugObserverSwarm.m:181: warning: `BLTGraph' does not respond to 
> `setGraphWindowGeometryRecordName:'
> 
> In the release notes for 1.0.4 it says of the
> ArchivedGeometryWidget (which provides the method above):
>   "...which many widgets now inherit."
> 
> I get a similar message for an EZBin, where from:
> 
>   unhappyBin = [EZBin createBegin: globalZone];
>   [unhappyBin setGraphics: 1]; [unhappyBin setFileOutput: 0]; 
>   [unhappyBin setTitle: "unHappinessDistribution"];
>   [unhappyBin setGraphWindowGeometryRecordName : "unhappyBinWindow"];
> 
> I get the message:
> 
> HeatbugObserverSwarm.m:222: warning: `EZBin' does not respond to 
> `setGraphWindowGeometryRecordName:'
> 
> 
> Does this mean BLTGraph and EZBin do not inherit the 
> ArchivedGeometyWidget? 
> If not, are there plans for that (so that their positions can be
> saved/restored, too)?
> 
> Or maybe I'm not using it correctly for a BLTGraph/EZBin and all its 
> parts?
> 
> thanks!
>  - r
> 
> Rick Riolo                           address@hidden
> Program for Study of Complex Systems (PSCS)
> 4068 Randall Lab                
> University of Michigan         Ann Arbor MI 48109-1120
> Phone: 313 763 3323                  Fax: 313 763 9267
> http://pscs.physics.lsa.umich.edu/PEOPLE/rlr-home.html
> http://pscs.physics.lsa.umich.edu//pscs.html
> 

_________________________________________________________
Ken Cline                             address@hidden
SAIC                                 VOICE (410) 571-0413
Annapolis, MD                          FAX (301) 261-8427



                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.
                  ==================================


reply via email to

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