/******************************************************************************* * Copyright (c) 2010 Oak Ridge National Laboratory. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html ******************************************************************************/ package org.eclipse.nebula.visualization.widgets.figures; import org.eclipse.draw2d.Figure; import org.eclipse.nebula.visualization.widgets.datadefinition.IManualValueChangeListener; import org.eclipse.nebula.visualization.widgets.figures.ScaledSliderFigure; /** * @author Xihui Chen * */ public class ScaledSliderTest extends AbstractMarkedWidgetTest{ @Override public Figure createTestWidget() { ScaledSliderFigure slider = new ScaledSliderFigure(); slider.addManualValueChangeListener(new IManualValueChangeListener() { public void manualValueChanged(double newValue) { System.out.println("slider Dragged: " + newValue); } }); return slider; } @Override public String[] getPropertyNames() { String[] superProps = super.getPropertyNames(); String[] myProps = new String[]{ "fillColor", "fillBackgroundColor", "effect3D", "horizontal", "thumbColor", "stepIncrement", "pageIncrement" }; return concatenateStringArrays(superProps, myProps); } @Override public boolean isAutoTest() { return true; } }