|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectNGP.Graphics.Shape
cs015.SketchySupport.PolygonShape
cs015.SketchySupport.FramedPolygonShape
Used for defining non-rectangular geometric shapes that are drawn without being filled in.
Field Summary |
Fields inherited from class NGP.Graphics.Shape |
_awtShape, _dpanel |
Fields inherited from interface NGP.Colorable |
DEFAULT_GRAY |
Constructor Summary | |
FramedPolygonShape(DrawingPanel dp,
java.awt.Polygon p)
Create a FramedPolygonShape in the specified drawing panel with the given polygon as its outline and show the shape. |
Method Summary | |
void |
actualPaint(java.awt.Graphics2D g)
Normal users don't use this method |
float |
getThickness()
Get the thickness of the lines used for drawing the outline of this shape |
void |
setThickness(float thickness)
Set the thickness of the lines used for drawing the outline of this shape |
Methods inherited from class cs015.SketchySupport.PolygonShape |
getCenterLocation, getDimension, setCenterLocation, setDimension, show |
Methods inherited from class NGP.Graphics.Shape |
contains, drag, getBounds, getColor, getDrawingPanel, getRotation, hide, intersects, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, paint, react, setColor, setDrawingPanel, setRotation |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FramedPolygonShape(DrawingPanel dp, java.awt.Polygon p)
dp
- the DrawingPanel for this shapep
- the Polygon that describes this shapeMethod Detail |
public float getThickness()
public void setThickness(float thickness)
thickness
- the new thicknesspublic void actualPaint(java.awt.Graphics2D g)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |