org.shapelogic.color
Class BaseAreaFactory

java.lang.Object
  extended by org.shapelogic.color.BaseAreaFactory
All Implemented Interfaces:
ValueAreaFactory
Direct Known Subclasses:
ColorAreaFactory, GrayAreaFactory

public abstract class BaseAreaFactory
extends java.lang.Object
implements ValueAreaFactory

BaseAreaFactory the base for GrayAreaFactory and ColorAreaFactory, it is a factory and store for IColorAndVariance.

Author:
Sami Badawi

Constructor Summary
BaseAreaFactory()
           
 
Method Summary
 int areasGreaterThan(int minSize)
           
 int getBackgroundColor()
          Returns the biggest color.
 java.util.List<IColorAndVariance> getStore()
           
abstract  IColorAndVariance makePixelArea(int x, int y, int startColor)
           
 void sort()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseAreaFactory

public BaseAreaFactory()
Method Detail

getStore

public java.util.List<IColorAndVariance> getStore()
Specified by:
getStore in interface ValueAreaFactory

makePixelArea

public abstract IColorAndVariance makePixelArea(int x,
                                                int y,
                                                int startColor)
Specified by:
makePixelArea in interface ValueAreaFactory

getBackgroundColor

public int getBackgroundColor()
Returns the biggest color.

Specified by:
getBackgroundColor in interface ValueAreaFactory

sort

public void sort()
Specified by:
sort in interface ValueAreaFactory

areasGreaterThan

public int areasGreaterThan(int minSize)
Specified by:
areasGreaterThan in interface ValueAreaFactory


Copyright © 2009. All Rights Reserved.