package jdraw.ui;

import java.awt.Frame;
import java.awt.Insets;
import jdraw.graphicobjects.GraphicObject;

/**
 *
 * A property dialog for graphic objects.
 *
 */
public class GraphicObjectProperties
  extends javax.swing.JDialog
{
    /**
     *
     * Private inner class used to store messages.
     *
     */
    private static final class Messages
    {
      /***** *****/
      public final static String  strPositionAndColor = "Position and color";
      public final static String  strPositionX        = "X-axis:";
      public final static String  strPositionY        = "Y-axis:";
      public final static String  strColor            = "Color:";
      public final static String  strChooseColor      = "Choose color";
      /***** buttons *****/
      public final static String  strCancel           = "Cancel";
      public final static String  strOK               = "OK";
    }


  /***************************************** "constants" *****************************************/

  /** The number of columns in position fields. */
  private static final int COLUMNS_IN_POSITION_FIELDS= 5;

  /** The path of the color palette image. */
  private static final String IMAGE_PALETTE_PATH= "/jdraw/images/ColorPalette.gif";

  /** The default insets for components. */
  protected static final Insets COMPONENT_INSETS= new Insets( 5, 5, 5, 5 );

  /** The default insets used to separate components on the same row. */
  protected static final Insets ADDITIONAL_COMPONENT_INSETS= new Insets( 5, 25, 5, 5 );


  /************************************* private attributes **************************************/

  /** The graphic objects managed. */
  private GraphicObject graphic_object;


  /************************************* public constructor **************************************/

  /**
   * Creates a new <code>GraphicObjectProperties</code> object.
   * This dialog window is neither packed nor visible.
   */
  public GraphicObjectProperties( final Frame          owner_frame,
                                  final GraphicObject  graphic_object )
  {
    super( owner_frame, graphic_object.getFriendlyName(), true );

    this.graphic_object= graphic_object;

    // !!!!! TO DO !!!!!
    System.err.println( "TO DO :  GraphicObjectProperties !!!!!" );
  }
}

