Package chunmap.data.feature

Examples of chunmap.data.feature.Shape


  }

  @Override
  public void execute(Feature obj) {
    if (obj instanceof Shape) {
      Shape feature = (Shape) obj;
      Geometry g = feature.getGeometry();
//      if(Log.isDubug()){
//        Log.log(Logger.Debug, "geometry =" +g.getEnvelop()+"envelope="+env.toString());
//      }
      if (g == null)
        return;
View Full Code Here


  public int labelHide = 100;
 
  @Override
  public void draw(Graphics g, Feature f, View view) {
    if(f instanceof Shape){
      Shape shp=(Shape)f;
      drawLabel(g,shp.getGeometry(),shp.getLabel(),view);
    }
  }
View Full Code Here

        {
            if (!envelope.hasIntersect(f.getEnvelop())) continue;

            if (f instanceof Shape)
            {
                Shape shape = (Shape)f;
                if (envelope.hasIntersect(shape.getEnvelop()))
                {
                    fun.execute(f);
                }
            }
            else
View Full Code Here

   
    this.g=(Graphics2D)g;
    this.view=view;
   
    if(data instanceof Shape){
      Shape shp=(Shape)data;
      drawShape(shp);
    }else if(data instanceof Raster){
      Raster shp=(Raster)data;
      drawRaster(shp);
    }
View Full Code Here

TOP

Related Classes of chunmap.data.feature.Shape

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.