00001 /* 00002 * This file is part of JXClient, the Fullscreen Java Crossfire Client. 00003 * 00004 * JXClient is free software; you can redistribute it and/or modify 00005 * it under the terms of the GNU General Public License as published by 00006 * the Free Software Foundation; either version 2 of the License, or 00007 * (at your option) any later version. 00008 * 00009 * JXClient is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU General Public License 00015 * along with JXClient; if not, write to the Free Software 00016 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 00017 * 00018 * Copyright (C) 2005-2008 Yann Chachkoff. 00019 * Copyright (C) 2006-2011 Andreas Kirschbaum. 00020 */ 00021 00022 package com.realtime.crossfire.jxclient.gui.log; 00023 00028 public abstract class AbstractSegment implements Segment { 00029 00034 private int x = -1; 00035 00040 private int y = -1; 00041 00046 private int width = -1; 00047 00051 @Override 00052 public void setX(final int x) { 00053 this.x = x; 00054 } 00055 00060 protected int getX() { 00061 return x; 00062 } 00063 00067 @Override 00068 public void setY(final int y) { 00069 this.y = y; 00070 } 00071 00076 protected int getY() { 00077 return y; 00078 } 00079 00083 @Override 00084 public void setWidth(final int width) { 00085 this.width = width; 00086 } 00087 00092 protected int getWidth() { 00093 return width; 00094 } 00095 00096 }