Package org.djutils.swing.multislider
Class LinearMultiSliderTest
java.lang.Object
org.djutils.swing.multislider.LinearMultiSliderTest
@ExtendWith(com.github.caciocavallosilano.cacio.ctc.junit.CacioExtension.class)
public class LinearMultiSliderTest
extends Object
LinearMultiSliderTest tests the functions of the LinearMultiSlider.
 
Copyright (c) 2024-2025 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information https://djutils.org. The DJUTILS project is distributed under a three-clause BSD-style license, which can be found at https://djutils.org/docs/license.html.
- Author:
 - Alexander Verbraeck
 
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) class(package private) class - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidTest errors in creating and using sliders.voidCreate a LinearMultiSlider with three underlying sliders and test the basic getters and setters.voidTest label panel of a multislider with a horizontal orientation.voidTest making labels.voidTest listeners.voidTest mouse clicks for a multislider with a horizontal and vertical orientation and an inverted and non-inverted direction.voidtestMouseClicks(int orientation, boolean inverted) Test mouse clicks for a multislider with the given orientation.voidtestUI()Test font and UI. 
- 
Constructor Details
- 
LinearMultiSliderTest
public LinearMultiSliderTest() 
 - 
 - 
Method Details
- 
testGetSetDouble
Create a LinearMultiSlider with three underlying sliders and test the basic getters and setters. - 
testMouseClicks
@Test public void testMouseClicks() throws AWTException, InterruptedException, InvocationTargetExceptionTest mouse clicks for a multislider with a horizontal and vertical orientation and an inverted and non-inverted direction.- Throws:
 AWTException- on AWT or Swing errorInterruptedException- when sleep is interruptedInvocationTargetException- on error in invokeAndWait
 - 
testMouseClicks
public void testMouseClicks(int orientation, boolean inverted) throws AWTException, InterruptedException, InvocationTargetException Test mouse clicks for a multislider with the given orientation.- Parameters:
 orientation- the orientationinverted- whether the scale is inverted or not- Throws:
 AWTException- on AWT or Swing errorInterruptedException- when sleep is interruptedInvocationTargetException- on error in invokeAndWait
 - 
testLabelPanelHorizontal
Test label panel of a multislider with a horizontal orientation.- Throws:
 AWTException- on AWT or Swing errorInterruptedException- when sleep is interrupted
 - 
testUI
@Test public void testUI() throws InterruptedException, ClassNotFoundException, InstantiationException, IllegalAccessException, UnsupportedLookAndFeelExceptionTest font and UI.- Throws:
 InterruptedException- when sleep is interruptedUnsupportedLookAndFeelException- when MetalLookAndFeel unavailableIllegalAccessException- when MetalLookAndFeel unavailableInstantiationException- when MetalLookAndFeel unavailableClassNotFoundException- when MetalLookAndFeel unavailable
 - 
testErrors
Test errors in creating and using sliders. - 
testLabelTable
Test making labels. - 
testListeners
Test listeners. 
 -