Package org.geoforge.worldwind.builder.factory

Source Code of org.geoforge.worldwind.builder.factory.GfrFactoryObjShpPlnAbs

/*
*  Copyright (C) 2011-2014 GeoForge Project
*
*  This program is free software: you can redistribute it and/or modify
*  it under the terms of the GNU Lesser General Public License as published by
*  the Free Software Foundation, either version 3 of the License, or
*  (at your option) any later version.
*
*  This program is distributed in the hope that it will be useful,
*  but WITHOUT ANY WARRANTY; without even the implied warranty of
*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
*  GNU Lesser General Public License for more details.
*
*  You should have received a copy of the GNU Lesser General Public License
*  along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
package org.geoforge.worldwind.builder.factory;

import gov.nasa.worldwind.render.BasicShapeAttributes;
import gov.nasa.worldwind.render.Material;
import gov.nasa.worldwind.render.ShapeAttributes;
import java.awt.Color;

/**
*
* @author bantchao
*/
abstract public class GfrFactoryObjShpPlnAbs extends GfrFactoryObjAbs
{
   // beg static
  
   static protected final double _DBL_DEFAULT_SHAPE_SIZE_METERS = 20000.0; // 20 km
  
   static protected ShapeAttributes _s_getDefaultAttributes()
   {
        ShapeAttributes attributes = new BasicShapeAttributes();
       
        attributes.setInteriorMaterial(new Material(Color.BLACK, Color.LIGHT_GRAY, Color.DARK_GRAY, Color.BLACK, 0.0f));
       
        attributes.setOutlineMaterial(Material.DARK_GRAY);
        attributes.setDrawOutline(true);
       
        //attributes.setInteriorOpacity(0.95);
        attributes.setInteriorOpacity(0.1);
       
        attributes.setOutlineOpacity(.95);
        attributes.setOutlineWidth(2);
        return attributes;
   }
  
   // end static
  
   protected GfrFactoryObjShpPlnAbs()
   {
      super();
   }
  
  
}
TOP

Related Classes of org.geoforge.worldwind.builder.factory.GfrFactoryObjShpPlnAbs

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.