org.jdrawing.graphics
Class PolygonOperation

java.lang.Object
  extended byorg.jdrawing.graphics.GraphicsElement
      extended byorg.jdrawing.graphics.GraphicsOperation
          extended byorg.jdrawing.graphics.PolygonOperation
All Implemented Interfaces:
DrawingElement
Direct Known Subclasses:
DrawPolygon, FillPolygon

public abstract class PolygonOperation
extends GraphicsOperation

Base class for operations, which get Polygon as argument.


Field Summary
 
Fields inherited from class org.jdrawing.graphics.GraphicsElement
BACKGROUND, COLOR, COMPOSITE, FONT, PAINT, parent, position, STROKE, TRANSFORM
 
Constructor Summary
PolygonOperation(java.awt.Polygon polygon)
          Returns ShapeOperation with given polygon.
 
Method Summary
 java.awt.Polygon getPolygon()
          Returns polygon currentily used by this operation.
 void setPolygon(java.awt.Polygon polygon)
          Sets polygon for this operation.
 
Methods inherited from class org.jdrawing.graphics.GraphicsOperation
paint, paintOperation, update
 
Methods inherited from class org.jdrawing.graphics.GraphicsElement
addStyle, getParent, getStyle, getStyles, getTransform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jdrawing.DrawingElement
contains, getBounds, getBounds2D, intersects
 

Constructor Detail

PolygonOperation

public PolygonOperation(java.awt.Polygon polygon)
Returns ShapeOperation with given polygon.

Parameters:
polygon - polygon to be used for this operation
Method Detail

setPolygon

public void setPolygon(java.awt.Polygon polygon)
Sets polygon for this operation.

Parameters:
polygon - polygon to be used for this operation

getPolygon

public java.awt.Polygon getPolygon()
Returns polygon currentily used by this operation.

Returns:
polygon currently used by this operation