JiscMail Logo
Email discussion lists for the UK Education and Research communities

Help for DAWN Archives


DAWN Archives

DAWN Archives


DAWN@JISCMAIL.AC.UK


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

DAWN Home

DAWN Home

DAWN  July 2012

DAWN July 2012

Options

Subscribe or Unsubscribe

Subscribe or Unsubscribe

Log In

Log In

Get Password

Get Password

Subject:

InfoPixelTool does not compile (master branch)

From:

Gábor Náray <[log in to unmask]>

Reply-To:

Main mail list for the dawn collaboration <[log in to unmask]>

Date:

Tue, 31 Jul 2012 10:23:50 +0200

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (40 lines)

Hi,

In the code below (org.dawb.workbench.plotting.tools.InfoPixelTool), the 
point.getCoordinateSystem() does not compile, there is no such method in 
org.dawb.common.ui.plot.region.IRegion. Is the newest file missing from 
github, or is something wrong in my workspace?

Gábor

     @Override
     public void mousePressed(MouseEvent evt) {

         if (!isActive()) return;

         final Collection<IRegion> regions = 
getPlottingSystem().getRegions();
         if (regions==null || regions.isEmpty()) logger.debug("no region 
selected");

         try {
             // add a point region
             final IRegion point = 
getPlottingSystem().createRegion(RegionUtils.getUniqueName("Point", 
getPlottingSystem()), RegionType.POINT);
             final PointROI regionBounds= new PointROI();
             double[] values = 
point.getCoordinateSystem().getPositionValue(evt.x, evt.y);
             regionBounds.setPoint(values);
             point.setROI(regionBounds);
             point.setMobile(true);
             point.setTrackMouse(true);

             getPlottingSystem().addRegion(point);


      } catch (Exception e) {
             logger.error("Cannot create point!", e);
      }
     }

Top of Message | Previous Page | Permalink

JiscMail Tools


RSS Feeds and Sharing


Advanced Options


Archives

May 2024
September 2023
July 2023
December 2022
April 2022
March 2022
November 2021
November 2019
March 2019
June 2018
May 2018
December 2016
November 2016
October 2016
September 2016
July 2016
June 2016
March 2016
January 2016
September 2015
July 2015
April 2015
March 2015
December 2014
October 2014
September 2014
July 2014
May 2014
April 2014
February 2014
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
January 2012
March 2011
February 2011


JiscMail is a Jisc service.

View our service policies at https://www.jiscmail.ac.uk/policyandsecurity/ and Jisc's privacy policy at https://www.jisc.ac.uk/website/privacy-notice

For help and support help@jisc.ac.uk

Secured by F-Secure Anti-Virus CataList Email List Search Powered by the LISTSERV Email List Manager