org.netbeans.api.visual 2.23.1

org.netbeans.api.visual.export
Class WidgetPolygonalCoordinates

java.lang.Object
  extended by org.netbeans.api.visual.export.WidgetPolygonalCoordinates

public final class WidgetPolygonalCoordinates
extends Object

The purpose of this class is to provide a framework for holding a Widget and the Polygon that encompasses it. Can be used for creating HTML image maps. For the ConnectionWidgets, a Polygon is created that follows the contour of the connection with a pixel buffer equal to the defined margin.


Constructor Summary
WidgetPolygonalCoordinates(Widget widget, Polygon polygon)
          Creates an instance of a WidgetPolygonalCoordinates object.
 
Method Summary
 Polygon getPolygon()
          Returns the Polygon stored in this class.
 Widget getWidget()
          Returns the Widget stored in this class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WidgetPolygonalCoordinates

public WidgetPolygonalCoordinates(Widget widget,
                                  Polygon polygon)
Creates an instance of a WidgetPolygonalCoordinates object.

Parameters:
widget - The Widget (may be a ConnectionWidget) being encompassed by the polygon.
polygon - The Polygon surrounding the respective Widget.
Method Detail

getWidget

public Widget getWidget()
Returns the Widget stored in this class.

Returns:
the Widget stored in this class.

getPolygon

public Polygon getPolygon()
Returns the Polygon stored in this class.

Returns:
the Polygon stored in this class.

org.netbeans.api.visual 2.23.1

Built on July 5 2011.  |  Portions Copyright 1997-2011 Sun Microsystems, Inc. All rights reserved.