001 // GraphLab Project: http://graphlab.sharif.edu 002 // Copyright (C) 2008 Mathematical Science Department of Sharif University of Technology 003 // Distributed under the terms of the GNU General Public License (GPL): http://www.gnu.org/licenses/ 004 package graphlab.ui.components.gpropertyeditor.renderers; 005 006 import graphlab.platform.lang.BoundedInteger; 007 import graphlab.ui.components.gpropertyeditor.GBasicCellRenderer; 008 import graphlab.ui.components.utils.LabledSlider; 009 010 import java.awt.*; 011 012 /** 013 * @author azin azadi 014 */ 015 public class BoundedIntegerRenderer implements GBasicCellRenderer<BoundedInteger> { 016 017 public Component getRendererComponent(BoundedInteger value) { 018 return new LabledSlider(value); 019 } 020 021 }