org.cybertory.MSS
Class SquareFeatureShapeFactory

java.lang.Object
  extended byorg.cybertory.MSS.SquareFeatureShapeFactory
All Implemented Interfaces:
FeatureShapeFactory

public class SquareFeatureShapeFactory
extends java.lang.Object
implements FeatureShapeFactory

This interface is for classes that determine the shape of a feature on the image, given the location of the center of the feature.


Constructor Summary
SquareFeatureShapeFactory()
           
 
Method Summary
 java.awt.Shape createFeatureShape(float featurePixelSize, java.awt.geom.Point2D featureCenter)
          Generates a shape for the feature at the given location.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SquareFeatureShapeFactory

public SquareFeatureShapeFactory()
Method Detail

createFeatureShape

public java.awt.Shape createFeatureShape(float featurePixelSize,
                                         java.awt.geom.Point2D featureCenter)
Generates a shape for the feature at the given location.

Specified by:
createFeatureShape in interface FeatureShapeFactory
Parameters:
featurePixelSize - pixel size of feature
featureCenter - the location of the center of the feature in pixel coordinates
Returns:
a Shape object