com.rolemodelsoft.drawlet
Interface PolygonFigure
- All Known Implementing Classes:
- PolygonShape
- public interface PolygonFigure
- extends Figure
This interface defines protocols for Figures
whose boundaries are defined by a polygon.
|
Method Summary |
java.awt.Polygon |
getPolygon()
Answer a Polygon associated with the figure |
void |
setPolygon(java.awt.Polygon polygon)
Set the Polygon associated with the figure |
| Methods inherited from interface com.rolemodelsoft.drawlet.Figure |
addPropertyChangeListener,
addRelatedLocationListener,
contains,
contains,
contains,
disconnect,
editTool,
getHandles,
getLocator,
getStyle,
intersects,
intersects,
isObsolete,
isWithin,
isWithin,
locatorAt,
move,
move,
relatedLocationListeners,
removePropertyChangeListener,
removeRelatedLocationListener,
requestConnection,
setBounds,
setSize,
setSize,
setStyle,
translate |
getPolygon
public java.awt.Polygon getPolygon()
- Answer a Polygon associated with the figure
- Returns:
- the Polygon associated with the figure
setPolygon
public void setPolygon(java.awt.Polygon polygon)
- Set the Polygon associated with the figure
- Parameters:
polygon - the Polygon