When you have your OMGraphicList, if you are working in an object
derived fom the AbstractGraphicLoader, you should be able to obtain a
OMGraphicHandler calling the method getReceiver(); the OMGraphicHandler
has a method setList().
> > OMGraphicHandler receiver = getReceiver();
> > if (receiver != null) {
> > receiver.setList(myOMGraphicList);
> > }
If you can't get a valid OMGraphicHandler probably you have to setup
correctly your loader class.
On Tue, 2003-03-04 at 13:05, CHAKIRI HOUDA wrote:
> Hi
> i was trying to do somethink similar to what you are doing using the
> graphic loader package.. but i am lost with all the classes i just wonder
> after filling my omgraphiclist with the omgraphics how to paint it on the
> mapbean.. i appreciate your help..
> thanks
> houda
>
> On 24 Feb 2003, silviapg@tiscali.it wrote:
>
> > Let me try to better explain what I'm doing.
> >
> > The GraphicLoader interface describes objects that provides items to
> > draw on a GraphicLoaderPlagin, as well as updates to the OMGraphics on
> > the plugin.
> >
> > The AbstractGraphicLoader class implements this interface and provide
> > some utilities as a timer for periodic update of the data displayed.
> > There are oter classes descending from the this abstract and
> > implementing more facilities: for example I use the MMLGraphicLoader
> > that allow mouse events management.
> >
> > I did a class derived from the MMLGraphicLoader and I implement the
> > abstract method manageGraphics(); in this method I just fill a
> > OMGraphicList with all the items I want to draw (e.g. an OMPoint and an
> > OMText for each vehicle). Then I call
> >
> > OMGraphicHandler receiver = getReceiver();
> > if (receiver != null) {
> > receiver.setList(myOMGraphicList);
> > }
> >
> > I also implemented a minimal actionPerformed method:
> >
> > public void actionPerformed(ActionEvent ae) {
> > manageGraphics();
> > }
> >
> > Setting a timer of 1000ms with
> >
> > setTimer(1000)
> >
> > the framwork calls the method manageGraphics once a second and displays
> > my moving vehicles.
> >
> > Look at the source of the class AnimationTester for a more complete
> > example.
> >
> > I also implement the method mouseClicked() and using the
> > OMGraphicList::findClosest I can capture the mouse click on a vehicle
> > and display further data about the selected vehicle.
> >
> > I don't know if this is the best way to implement vehicle tracking, but
> > it works.
> >
> > Bye
> > Pg
> >
> > On Sat, 2003-02-22 at 14:26, CHAKIRI HOUDA wrote:
> > > Hi,
> > > i am trying to run graphicloader to see what it does exactly i didn't
> > > manage to do it can you please help me to come out of that..
> > > thanks
> > > houda
> > >
> > > On 21 Feb 2003, silviapg@tiscali.it wrote:
> > >
> > > > Hi,
> > > >
> > > > I'm doing the same. I don't know if this is the best solution, but I
> > > > decided to use a graphicLoader (see the package
> > > > com.bbn.openmap.plugin.graphicLoader in 4.5.4). I'm following the
> > > > example of the AnimationTester class. I'm writing a class implementing
> > > > the GraphicLoader interface that periodically (every second, using the
> > > > swing.Timer) reads the positions of all my vehicles and update the
> > > > position of the vehicle icons.
> > > >
> > > > Bye
> > > > Pg
> > > >
> > > >
> > > > On Tue, 2003-02-18 at 11:34, CHAKIRI HOUDA wrote:
> > > > > Hi,
> > > > > I am working on a vehicule tracking application and i need a bit of
> > > > > guidance, when the user wants to see the vehicule moving he has just to
> > > > > add a symbol to the map corresponding to the vehicule and the position of
> > > > > the vehicule will be updated from the gps.my application will be runing on
> > > > > the a server.. what i need to know is how can we add an event using
> > > > > opanmap and making change its position while the cordinates change..
> > > > > thanks in advance
> > > > > Houda
> > > > >
> > > > > --
> > > > > [To unsubscribe to this list send an email to "majdart@bbn.com"
> > > > > with the following text in the BODY of the message "unsubscribe openmap-users"]
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> > > **************************************************************************************************
> > > The contents of this email and any attachments are confidential.
> > > It is intended for the named recipient(s) only.
> > > If you have received this email in error please notify the system manager by sending
> > > an email to ITS Helpdesk at helpdesk@alakhawayn.ma or the sender immediately
> > > and do not disclose the contents to anyone or make copies.
> > > ITS antivirus gateway has scanned this email for viruses, vandals and malicious
> > > content.
> > > **************************************************************************************************
> > >
> >
> >
> > --
> > [To unsubscribe to this list send an email to "majdart@bbn.com"
> > with the following text in the BODY of the message "unsubscribe openmap-users"]
> >
>
>
> **************************************************************************************************
> The contents of this email and any attachments are confidential.
> It is intended for the named recipient(s) only.
> If you have received this email in error please notify the system manager by sending
> an email to ITS Helpdesk at helpdesk@alakhawayn.ma or the sender immediately
> and do not disclose the contents to anyone or make copies.
> ITS antivirus gateway has scanned this email for viruses, vandals and malicious
> content.
> **************************************************************************************************
>
-- [To unsubscribe to this list send an email to "majdart@bbn.com" with the following text in the BODY of the message "unsubscribe openmap-users"]Received on Thu Mar 6 19:02:15 2003
This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:35 EDT