anar

Class RenderPtShape

java.lang.Object
  extended by anar.RenderP5
      extended by anar.RenderPt
          extended by anar.RenderPtShape
All Implemented Interfaces:
Render
Direct Known Subclasses:
RenderPtEllipse, RenderPtShapeConstant, RenderPtShapeOriented

public class RenderPtShape
extends RenderPt

Render a point like the given shape. If no shape are defined, the shape is a circle by default.

See Also:
RenderPtShapeOriented

Field Summary
static Face defaultShape
           
 Face shape
          Shape is the displayed face for each points.
 
Fields inherited from class anar.RenderP5
p5
 
Constructor Summary
RenderPtShape()
           
RenderPtShape(AColor c)
           
RenderPtShape(AColor c1, AColor c2)
           
RenderPtShape(Face shape)
           
RenderPtShape(Face shape, AColor c1, AColor c2)
           
 
Method Summary
 void draw(Pt p)
           
 void fill(AColor color)
           
 float getAccuracy()
          change the accuracy of points displayed.
 Face getShape()
           
 void setAccuracy(int accuracy)
          change the accuracy of points displayed.
 RenderPtShape setShape(Face shape)
           
 void setSz(float sz)
          Change size of displayed points.
 void stroke(AColor color)
           
 
Methods inherited from class anar.RenderPt
draw
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

defaultShape

public static Face defaultShape

shape

public Face shape
Shape is the displayed face for each points.

Constructor Detail

RenderPtShape

public RenderPtShape()

RenderPtShape

public RenderPtShape(AColor c1,
                     AColor c2)

RenderPtShape

public RenderPtShape(Face shape)

RenderPtShape

public RenderPtShape(Face shape,
                     AColor c1,
                     AColor c2)

RenderPtShape

public RenderPtShape(AColor c)
Parameters:
c -
Method Detail

setSz

public void setSz(float sz)
Change size of displayed points.

Parameters:
sz -

getAccuracy

public float getAccuracy()
change the accuracy of points displayed. (Number of sides)

Returns:
the accuracy

setAccuracy

public void setAccuracy(int accuracy)
change the accuracy of points displayed. (Number of sides)

Parameters:
accuracy - the accuracy to set

getShape

public Face getShape()
Returns:
the shape

setShape

public RenderPtShape setShape(Face shape)
Parameters:
shape - the shape to set

draw

public void draw(Pt p)
Specified by:
draw in class RenderPt

stroke

public void stroke(AColor color)

fill

public void fill(AColor color)