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

Summary: Scene2Image#getSceneImageMapCoordinates doesn't work when scale isn't set
Product: platform Reporter: plorenz
Component: GraphAssignee: issues@platform <issues>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 7.1   
Hardware: PC   
OS: Linux   
Issue Type: ENHANCEMENT Exception Reporter:

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, http://sarasvati.googlecode.com)