This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 203403 - Scene2Image#getSceneImageMapCoordinates doesn't work when scale isn't set
Summary: Scene2Image#getSceneImageMapCoordinates doesn't work when scale isn't set
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: Graph (show other bugs)
Version: 7.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: issues@platform
Depends on:
Reported: 2011-10-10 02:09 UTC by plorenz
Modified: 2011-10-10 02:09 UTC (History)
0 users

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description plorenz 2011-10-10 02:09:15 UTC
I'm using Scene2Image#getSceneImageMapCoordinates on its own, but it doesn't work when scale isn't set. The scale can't be set, so I've had to add a setScale method. 

I'm using this to generate an html area map on it's own, as I"m generating the image separately. 

My usage looks like this:

  Scene2Image s = new Scene2Image( this, null );
  s.setScale( 1 );
  List<WidgetPolygonalCoordinates> coords = s.getSceneImageMapCoordinates( 0 );

Can this be made work? Could add a setScale method, or have getSceneImageMapCoordinates take a scale parameter or even just make scale protected, rather than private, so it can be called by a subclass.

I'm happy to provide a patch with whatever approach would be deemed acceptable.

Thank you.

(I'm using this in Sarasvati, an open-source workflow engine,