org.shapelogic.color
Class BaseAreaFactory
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaseAreaFactory
public BaseAreaFactory()
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.