Documentation of 'vgp.tutor.slider.PjSlider' Java class
PjSlider ("JavaView Reference Manual")
"JavaView? v5.03.003"
vgp.tutor.slider

Class PjSlider

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, PsTimeListenerIf, PsUpdateIf, PvPickListenerIf


    public class PjSlider
    extends PjProject
    Demo class for the usage of the sliders jv.number.PuInteger and jv.number.PuDouble in JavaView.

    The sliders are the info panel of an integer respectively a double variable. This sample project is a data class which uses the integer and double objects as a inspectable numbers. That is, in this project the current value of the numbers are obtain via their getValue and setValue method. Simultaneously and independently, a GUI interface to these number may be constructed, which is here done in the info panel of this project.

    Note the handling of panels is encapsulated in the corresponding class PjSlider_IP. I.e. this project class contains the values of the sliders, but not the interface handling. Basically, the separation of interface and data class allows that this class is fully functional even in batch operation.

    See Also:
    PuDouble, PuInteger, Serialized Form
    Author:
    Ulrich Reitebuch, Konrad Polthier
    Version:
    16.09.01, 1.50 revised (kp) Panel stuff moved to PjSlider_IP.
    16.09.01, 1.10 revised (kp) Name changed from slider_Applet.java.
    14.04.00, 1.00 created (ur)
    • Constructor Detail

      • PjSlider

        public PjSlider()
        Constructor: Creates instances of slider classes.
    • Method Detail

      • init

        public void init()
        Initialization and configuration of sliders. At first, some default values of the two sliders are set. These default values are used for initialization of the slider and whenever the slider is reset.
        Overrides:
        init in class PjProject
      • getProduct

        public double getProduct()
        Get the current value of the product.
      • computeProduct

        public void computeProduct()
        Compute product of values of the two sliders.
"JavaView? v5.03.003"

"

The software JavaView? is copyright protected. All Rights Reserved.
"

Ads help maintain this website.