Package net.lucidviews.geoalgo.limb.refine

Examples of net.lucidviews.geoalgo.limb.refine.LeanBeanLimbRefiner


  }
 
 
  public void testNominal() throws Exception
  {
    LeanBeanLimbRefiner testObj = new LeanBeanLimbRefiner();
    testObj.setDefaultBeanProperties( "edges,label,position" );
    testObj.refine( this.limb, null, null );
   
    assertNotNull( this.limb.getEdges() );
    assertNull( this.limb.getFeature() );
    assertNull( this.limb.getIntersection() );
    assertNotNull( this.limb.getLabel() );
View Full Code Here


    assertNotNull( this.limb.getPosition() );
  }
 
  public void testNullPropertyList() throws Exception
  {
    LeanBeanLimbRefiner testObj = new LeanBeanLimbRefiner();
    testObj.setDefaultBeanProperties( null );
    testObj.refine( this.limb, null, null );
   
    assertNotNull( this.limb.getEdges() );
    assertNotNull( this.limb.getFeature() );
    assertNotNull( this.limb.getIntersection() );
    assertNotNull( this.limb.getLabel() );
View Full Code Here

    assertNotNull( this.limb.getPosition() );
  }
 
  public void testDefaultPropertyListIsUsedWhenOptionsIsNull() throws Exception
  {
    LeanBeanLimbRefiner testObj = new LeanBeanLimbRefiner();
    testObj.setDefaultBeanProperties( "edges,label,position" );
    testObj.refine( this.limb, null, null );
   
    assertNotNull( this.limb.getEdges() );
    assertNull( this.limb.getFeature() );
    assertNull( this.limb.getIntersection() );
    assertNotNull( this.limb.getLabel() );
View Full Code Here

  public void testDefaultPropertyListIsUsedWhenListInOptionsIsNull() throws Exception
  {
    Options options = new Options();
    options.setLimbPropertiesToKeep( null );
   
    LeanBeanLimbRefiner testObj = new LeanBeanLimbRefiner();
    testObj.setDefaultBeanProperties( "edges,label,position" );
    testObj.refine( this.limb, null, options );
   
    assertNotNull( this.limb.getEdges() );
    assertNull( this.limb.getFeature() );
    assertNull( this.limb.getIntersection() );
    assertNotNull( this.limb.getLabel() );
View Full Code Here

  public void testPropertyListInOptionsOverridesDefaultList() throws Exception
  {
    Options options = new Options();
    options.setLimbPropertiesToKeep( "feature,intersection,label" );
   
    LeanBeanLimbRefiner testObj = new LeanBeanLimbRefiner();
    testObj.setDefaultBeanProperties( "edges,label,position" );
    testObj.refine( this.limb, null, options );
   
    assertNull( this.limb.getEdges() );
    assertNotNull( this.limb.getFeature() );
    assertNotNull( this.limb.getIntersection() );
    assertNotNull( this.limb.getLabel() );
View Full Code Here

    testObj.setIntersectionGeneratorClass( SimpleIntersectionGenerator.class );
    testObj.setIntersectionProcessors( Arrays.asList( new DiscardNegligibleIntersectionProcessor(),
                                                      new DiscardSmallerLineSegmentsIntersectionProcessor() ) );
    testObj.setLimbRefiners( Arrays.asList( new EdgeAssigmentLimbRefiner(),
                                            new LabelAssignmentLimbRefiner().using( new SimpleFeatureLabelFormatter() ),
                                            new LeanBeanLimbRefiner() ) );
   
    List<Limb> limbs = testObj.computeLimbs( view, this.polygons, options );
    //System.out.println( limbs );
   
    Collection<Geometry> intersections = new ArrayList<Geometry>();
View Full Code Here

TOP

Related Classes of net.lucidviews.geoalgo.limb.refine.LeanBeanLimbRefiner

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.