Package org.geoforge.jfreechart.util.shape

Source Code of org.geoforge.jfreechart.util.shape.GfrShpDiamond

/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.geoforge.jfreechart.util.shape;

import java.awt.Polygon;
import java.awt.Shape;

/**
*
* @author robert
*/
public class GfrShpDiamond extends GfrShpAbs
{
   final static private int _INT_SIZE_ = ((int) GfrShpAbs._DBL_DELTA) + 1;
  
   static public Shape s_get()
   {   
      int[] intsX =
      {
        0,
        GfrShpDiamond._INT_SIZE_,
        0,
        -GfrShpDiamond._INT_SIZE_
      };
     
      int[] intsY =
      {
        -GfrShpDiamond._INT_SIZE_,
        0,
        GfrShpDiamond._INT_SIZE_,
        0,
      };
     
      return new Polygon(intsX, intsY, intsX.length);
  
  
   private GfrShpDiamond()
   {
      super();
   }
          
}
TOP

Related Classes of org.geoforge.jfreechart.util.shape.GfrShpDiamond

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.