org.shapelogic.polygon
Class MultiLineDirectionAnnotator

java.lang.Object
  extended by org.shapelogic.polygon.MultiLineDirectionAnnotator
All Implemented Interfaces:
Calc<Polygon>, LazyCalc<Polygon>, Improver<Polygon>, ObjectAnnotator<Polygon>

public class MultiLineDirectionAnnotator
extends java.lang.Object
implements ObjectAnnotator<Polygon>

Not this functionality is in ChainCodeHandler But this is interesting on its own, now there are no annotation going on, I need to move this in too

Author:
Sami Badawi

Constructor Summary
MultiLineDirectionAnnotator(Polygon calcValue, java.util.List<PointProperties> pointPropertiesList, java.util.List<LineProperties> linePropertiesList)
           
 
Method Summary
 Polygon calc()
           
 boolean createdNewVersion()
           
 Polygon getCalcValue()
          If dirty do calc() else return cached value.
 Polygon getInput()
           
 boolean isAnnotationsFound()
          Try if there is anything that can be annotated.
 boolean isDirty()
           
 void setInput(Polygon input)
           
 void setup()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiLineDirectionAnnotator

public MultiLineDirectionAnnotator(Polygon calcValue,
                                   java.util.List<PointProperties> pointPropertiesList,
                                   java.util.List<LineProperties> linePropertiesList)
Method Detail

isAnnotationsFound

public boolean isAnnotationsFound()
Description copied from interface: ObjectAnnotator
Try if there is anything that can be annotated. return true if there is.

Specified by:
isAnnotationsFound in interface ObjectAnnotator<Polygon>

createdNewVersion

public boolean createdNewVersion()
Specified by:
createdNewVersion in interface Improver<Polygon>

isDirty

public boolean isDirty()
Specified by:
isDirty in interface LazyCalc<Polygon>

setup

public void setup()
Specified by:
setup in interface LazyCalc<Polygon>

calc

public Polygon calc()
Specified by:
calc in interface Calc<Polygon>

getCalcValue

public Polygon getCalcValue()
Description copied from interface: Calc
If dirty do calc() else return cached value. This should maybe be moved up in the hierarchy

Specified by:
getCalcValue in interface Calc<Polygon>

getInput

public Polygon getInput()
Specified by:
getInput in interface Improver<Polygon>

setInput

public void setInput(Polygon input)
Specified by:
setInput in interface Improver<Polygon>


Copyright © 2007. All Rights Reserved.