    001package org.vishia.gral.ifc;
    002
    003/**A GralRectangle is a commonly use-able data class to hold any x,y and size values in integer.
    004 * It is used for some return data, often it is pixel units.
    005 * <br><br>
    006 * See {@link GralPoint}.
    007 * @author Hartmut Schorrig
    008 *
    009 */
    010public class GralRectangle
    011{
    012  /**Version, history and license.
    013   * <ul>
    014   * <li>2011-06-00 Hartmut created
    015   * </ul>
    016   *
    017   * <b>Copyright/Copyleft</b>:<br>
    018   * For this source the LGPL Lesser General Public License,
    019   * published by the Free Software Foundation is valid.
    020   * It means:
    021   * <ol>
    022   * <li> You can use this source without any restriction for any desired purpose.
    023   * <li> You can redistribute copies of this source to everybody.
    024   * <li> Every user of this source, also the user of redistribute copies
    025   *    with or without payment, must accept this license for further using.
    026   * <li> But the LPGL is not appropriate for a whole software product,
    027   *    if this source is only a part of them. It means, the user
    028   *    must publish this part of source,
    029   *    but doesn't need to publish the whole source of the own product.
    030   * <li> You can study and modify (improve) this source
    031   *    for own using or for redistribution, but you have to license the
    032   *    modified sources likewise under this LGPL Lesser General Public License.
    033   *    You mustn't delete this Copyright/Copyleft inscription in this source file.
    034   * </ol>
    035   * If you intent to use this source without publishing its usage, you can get
    036   * a second license subscribing a special contract with the author.
    037   *
    038   * @author Hartmut Schorrig = hartmut.schorrig@vishia.de
    039   */
    040  public static final int version = 20120303;
    041
    042  public int x,y,dx,dy;
    043
    044  public GralRectangle(int x, int y, int dx, int dy)
    045  { this.x = x; this.y = y; this.dx = dx; this.dy = dy;
    046  }
    047
    048  @Override public String toString(){
    049    return "GralRectangle(" + x + " + " + dx + ", " + y + " + " + dy + ")";
    050  }
    051}