AG VLSI Design and Architecture

SFB 501 - Project D1: Application System "Buildings"

PSiGene

Pattern Catalog

[PSiGene]

13.4 Pattern DisplaySlider

Intent

Specialization of DisplayAttribute to display the value of an attribute by a slider.

Motivation

Running a simulation, one would like to watch or change an attribute with a slider.

Applicability

Any numeric attribute can be monitored with this pattern.

Structure

(see Pattern DisplayAttribute )

Participants

(see also Pattern DisplayAttribute )

Expressions

Implementation

{spec}
    ^#(#FullSpec 
        #window: 
        #(#WindowSpec 
            #bounds: #(#Rectangle 0 0 200 30) 
            #menu: #menuBar ) 
        #component: 
        #(#SpecCollection 
            #collection: #(
                #(#LabelSpec 
                    #layout: #(#Point 5 5 ) 
                    #label: ''{label}
'' ) 
                #(#SliderSpec 
                    #layout: #(#Rectangle 105 5 180 25 ) 
                    #model: #{monitor} 

                    #orientation: #horizontal 
                    #start: {startValue}

                    #stop: {stopValue}

                    #step: 0.02 ) 
                #(#LabelSpec 
                    #layout: #(#Point 90 5 ) 
                    #label: ''{startValue}
'' ) 
                #(#LabelSpec 
                    #layout: #(#Point 185 5 ) 
                    #label: ''{stopValue}
'' ) ) ) )'

Related Patterns

DisplayAttribute, DisplayValue.

PEdit description

Pattern DisplaySlider Category display
    ObjectType use target
    SingleMethod use monitor
    SingleMethod use preset spec
    Expression implement label
    Expression implement startValue
    Expression implement stopValue
End

previous page next page up   Table of Contents PSiGene