/* * Copyright 2003-2010 Tufts University Licensed under the * Educational Community License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. You may * obtain a copy of the License at * * http://www.osedu.org/licenses/ECL-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an "AS IS" * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing * permissions and limitations under the License. */ package tufts.vue.gui; import java.awt.Graphics; import java.awt.Rectangle; import javax.swing.JCheckBox; public class CheckBoxRenderer extends JCheckBox { boolean visible; public CheckBoxRenderer() { setBorderPainted(false); } public void paint(Graphics g) { if (visible) super.paint(g); } public boolean getVisibility() { return visible; } public void setVisibility(boolean vis) { visible = vis; } public boolean isOpaque() { return false; } public void validate() {} public void invalidate() {} public void repaint() {} public void revalidate() {} public void repaint(long tm, int x, int y, int width, int height) {} public void repaint(Rectangle r) {} protected void firePropertyChange(String propertyName, Object oldValue, Object newValue) {} public void firePropertyChange(String propertyName, byte oldValue, byte newValue) {} public void firePropertyChange(String propertyName, char oldValue, char newValue) {} public void firePropertyChange(String propertyName, short oldValue, short newValue) {} public void firePropertyChange(String propertyName, int oldValue, int newValue) {} public void firePropertyChange(String propertyName, long oldValue, long newValue) {} public void firePropertyChange(String propertyName, float oldValue, float newValue) {} public void firePropertyChange(String propertyName, double oldValue, double newValue) {} public void firePropertyChange(String propertyName, boolean oldValue, boolean newValue) {} }