Main Page | Packages | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

StyledWrapper.java

Go to the documentation of this file.
00001 /*
00002  * StyledWrapper.java
00003  *
00004  * Copyright (C) 2005 Project SQUID, http://www.cs.helsinki.fi/group/squid/
00005  *
00006  * This file is part of Ikayaki.
00007  *
00008  * Ikayaki is free software; you can redistribute it and/or modify
00009  * it under the terms of the GNU General Public License as published by
00010  * the Free Software Foundation; either version 2 of the License, or
00011  * (at your option) any later version.
00012  *
00013  * Ikayaki is distributed in the hope that it will be useful,
00014  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00016  * GNU General Public License for more details.
00017  *
00018  * You should have received a copy of the GNU General Public License
00019  * along with Ikayaki; if not, write to the Free Software
00020  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
00021  */
00022 
00023 package ikayaki.gui;
00024 
00025 import javax.swing.*;
00026 import javax.swing.border.Border;
00027 import java.awt.*;
00028 
00035 public class StyledWrapper implements Cloneable {
00036 
00040     public Object value;
00041 
00046     public int horizontalAlignment = SwingConstants.LEADING;
00047 
00052     public int verticalAlignment = SwingConstants.CENTER;
00053 
00058     public boolean opaque = true;
00059 
00063     public Border border = null;
00064 
00068     public Border selectedBorder = null;
00069 
00073     public Border focusBorder = null;
00074 
00078     public Border selectedFocusBorder = null;
00079 
00080 //        public Insets insets = null; // TODO: is this also necessary?
00081 
00085     public Color background = null;
00086 
00090     public Color selectedBackground = null;
00091 
00095     public Color focusBackground = null;
00096 
00101     public Color selectedFocusBackground = null;
00102 
00106     public Color foreground = null;
00107 
00111     public Font font = null;
00112 
00116     @Override public Object clone() {
00117         try {
00118             StyledWrapper copy = (StyledWrapper) super.clone();
00119             copy.value = null;
00120             return copy;
00121         } catch (CloneNotSupportedException e) {
00122             assert false;
00123             e.printStackTrace();
00124             return null;
00125         }
00126     }
00127 }

Generated on Fri May 6 16:00:32 2005 for Squid by  doxygen 1.4.1