Examples of refine()


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

 
  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

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

 
  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

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

    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

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

    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

Examples of net.lucidviews.geoalgo.limb.refine.PositionAssignmentLimbRefiner.refine()

   
    Options options = new Options();
    options.setScreenSize( this.halfScreenSize );
   
    PositionAssignmentLimbRefiner testObj = new PositionAssignmentLimbRefiner();
    testObj.refine( limb, this.defaultView, options );
   
    assertNotNull( limb.getPosition() );
    Geometry position = limb.getPosition();
    assertTrue( position instanceof Point );
    assertEquals( expectedScreenX, ((Point)position).getCoordinate().x, DOUBLE_TOLERANCE );
View Full Code Here

Examples of net.lucidviews.geoalgo.limb.refine.PositionAssignmentLimbRefiner.refine()

   
    Options options = new Options();
    options.setScreenSize( this.trebleScreenSize );
   
    PositionAssignmentLimbRefiner testObj = new PositionAssignmentLimbRefiner();
    testObj.refine( limb, this.defaultView, options );
   
    assertNotNull( limb.getPosition() );
    Geometry position = limb.getPosition();
    assertTrue( position instanceof Point );
    assertEquals( expectedScreenX, ((Point)position).getCoordinate().x, DOUBLE_TOLERANCE );
View Full Code Here

Examples of net.lucidviews.geoalgo.limb.refine.PositionAssignmentLimbRefiner.refine()

   
    Options options = new Options();
    options.setScreenSize( this.halfScreenSize );
   
    PositionAssignmentLimbRefiner testObj = new PositionAssignmentLimbRefiner();
    testObj.refine( limb, this.defaultView, options );
   
    assertTrue( limb.getPosition() instanceof GeometryCollection );
    GeometryCollection position = (GeometryCollection)limb.getPosition();
    assertTrue( position.getGeometryN( 0 ) instanceof MultiLineString );
    MultiLineString position1 = (MultiLineString)position.getGeometryN( 0 );
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.