com.vividsolutions.jts.awt
Class SqarePointShapeFactory

java.lang.Object
  extended bycom.vividsolutions.jts.awt.SqarePointShapeFactory
All Implemented Interfaces:
PointShapeFactory

public class SqarePointShapeFactory
extends java.lang.Object
implements PointShapeFactory

A factory for generating square shapes to represent points.

Author:
Martin Davis

Field Summary
static double DEFAULT_SIZE
          The default length of the square's side.
 
Constructor Summary
SqarePointShapeFactory()
          Creates a new factory for squares with default size.
SqarePointShapeFactory(double squareSize)
          Creates a factory for squares of given size.
 
Method Summary
 java.awt.Shape createPoint(java.awt.geom.Point2D point)
          Creates a shape representing a point.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_SIZE

public static double DEFAULT_SIZE
The default length of the square's side.

Constructor Detail

SqarePointShapeFactory

public SqarePointShapeFactory()
Creates a new factory for squares with default size.


SqarePointShapeFactory

public SqarePointShapeFactory(double squareSize)
Creates a factory for squares of given size.

Parameters:
squareSize - the length of the side of the square
Method Detail

createPoint

public java.awt.Shape createPoint(java.awt.geom.Point2D point)
Creates a shape representing a point.

Specified by:
createPoint in interface PointShapeFactory
Parameters:
point - the location of the point
Returns:
a shape