GridPanelConstraint.java

/*
 * Copyright (C) 1998-2018  Gerwin Klein <lsf@jflex.de>
 * SPDX-License-Identifier: BSD-3-Clause
 */
package jflex.gui;

import java.awt.Component;

/**
 * Constraints for layout elements of GridLayout
 *
 * @author Gerwin Klein
 * @version JFlex 1.10.0-SNAPSHOT
 */
public class GridPanelConstraint {

  final int x;
  final int y;
  final int width;
  final int height;
  final int handle;
  final Component component;

  /**
   * Constructor for GridPanelConstraint.
   *
   * @param x horizontal position.
   * @param y vertical position.
   * @param width width in pixels.
   * @param height height in pixels.
   * @param handle a int.
   * @param component a {@link java.awt.Component} object.
   */
  public GridPanelConstraint(int x, int y, int width, int height, int handle, Component component) {
    this.x = x;
    this.y = y;
    this.width = width;
    this.height = height;
    this.handle = handle;
    this.component = component;
  }
}