/*
 * @(#)PolygonDotsShape.java    2.4.0   6 September 2005
 *
 * Copyright 2005
 * College of Computer and Information Science
 * Northeastern University
 * Boston, MA  02115
 *
 * The Java Power Tools software may be used for educational
 * purposes as long as this copyright notice is retained intact
 * at the top of all source files.
 *
 * To discuss possible commercial use of this software, 
 * contact Richard Rasala at Northeastern University, 
 * College of Computer and Information Science,
 * 617-373-2462 or rasala@ccs.neu.edu.
 *
 * The Java Power Tools software has been designed and built
 * in collaboration with Viera Proulx and Jeff Raab.
 *
 * Should this software be modified, the words "Modified from 
 * Original" must be included as a comment below this notice.
 *
 * All publication rights are retained.  This software or its 
 * documentation may not be published in any media either
 * in whole or in part without explicit permission.
 *
 * This software was created with support from Northeastern 
 * University and from NSF grant DUE-9950829.
 */

package edu.neu.ccs.gui;

import edu.neu.ccs.util.*;

import java.awt.*;
import java.awt.geom.*;
import java.beans.*;


/**
 * <p>Class <code>PolygonDotsShape</code> defines a shape that
 * consists of the vertex dots of a polygon.</p>
 *
 * <p>This class is a <code>BaseVertexShape</code> whose
 * <code>Path.Strategy</code> is fixed to be
 * <code>Path.POLYGON_DOTS</code>.</p>
 *
 * <p>This class does not use the tangent array inherited from
 * <code>BaseShape</code>.</p>
 *
 * @author  Richard Rasala
 * @version 2.4.0
 * @since   2.4.0
 */
public class PolygonDotsShape
    extends BaseVertexShape
{
    /** Bound property name to set the vertex data. */
    public static final String SET_VERTEX_DATA      = "set.vertex.data";
    
    /** Bound property name to set one vertex. */
    public static final String SET_VERTEX           = "set.vertex";
    
    /** Bound property name to add one vertex. */
    public static final String ADD_VERTEX           = "add.vertex";
    
    /** Bound property name to remove one vertex. */
    public static final String REMOVE_VERTEX        = "remove.vertex";
    

    /**
     * <p>The default constructor that creates an empty polygon dots shape.</p>
     */
    public PolygonDotsShape() { this(null); }
    
    
    /**
     * <p>The constructor that creates a polygon dots shape with the given
     * vertex array.</p>
     *
     * @param vertex the vertex data
     */
    public PolygonDotsShape(float[][] vertex)
    {
        super.setPathStrategy(Path.POLYGON_DOTS);
        setVertexData(vertex);
    }
    
    
    /**
     * <p>Since the <code>Path.Strategy</code> of this class is fixed
     * to be <code>Path.POLYGON</code>, this method overrides the
     * inherited method to do nothing.</p>
     */
    public final void setPathStrategy(Path.Strategy pathstrategy) { }
    
}

