niagara-ax/stations/demo/px/Sampler.px
2026-03-17 13:31:18 -07:00

106 lines
4.9 KiB
XML
Executable File

<?xml version="1.0" encoding="UTF-8"?>
<!-- Niagara Presentation XML -->
<px version="1.0" media="workbench:WbPxMedia">
<import>
<module name="baja"/>
<module name="bajaui"/>
<module name="bql"/>
<module name="chart"/>
<module name="converters"/>
<module name="gx"/>
<module name="history"/>
<module name="kitPx"/>
<module name="workbench"/>
</import>
<content>
<ScrollPane>
<CanvasPane name="content" viewSize="730.0,550.0" background="linearGradient( stop(0.0% #004b6981) stop(0.0% #384b5a) stop(50.0% #4b6981) stop(100.0% #384b5a) )">
<Rect fill="black" geom="5.0,10.0,710.0,50.0"/>
<Rect fill="#283540" stroke="black" geom="5.0,60.0,710.0,480.0"/>
<AnalogMeter layout="510.0,220.0,105.0,95.0" valueFont="18.0pt Tahoma" background="linearGradient( angle(-90.0) stop(0.0% #4b6981) stop(100.0% #283540) )" foreground="white">
<ValueBinding ord="slot:NumericWritable">
<INumericToNumber name="value"/>
</ValueBinding>
</AnalogMeter>
<Label layout="410.0,180.0,200.0,30.0" text="Analog Meter" font="18.0pt Tahoma" foreground="white"/>
<Bargraph layout="230.0,225.0,70.0,95.0" valueFont="12.0pt Tahoma" fill="linearGradient( angle(-90.0) stop(0.0% #4b6981) stop(100.0% #283540) )" foreground="white" background="#1affffff" scale="20.0">
<ValueBinding ord="slot:NumericWritable">
<INumericToNumber name="value"/>
<ObjectToString name="text" format="%out.value%"/>
</ValueBinding>
</Bargraph>
<Label layout="85.0,180.0,220.0,30.0" text="Bargraphs" font="18.0pt Tahoma" foreground="white"/>
<Bargraph layout="170.0,225.0,50.0,95.0" valueVisible="false" fill="linearGradient( angle(-90.0) stop(0.0% #4b6981) stop(100.0% #283540) )" foreground="white" background="#1affffff" scale="20.0">
<ValueBinding ord="slot:NumericWritable">
<INumericToNumber name="value"/>
</ValueBinding>
</Bargraph>
<Bargraph layout="110.0,225.0,50.0,95.0" fill="linearGradient( angle(-90.0) stop(0.0% #4b6981) stop(100.0% #283540) )" foreground="white" background="#1affffff" scaleVisible="false">
<ValueBinding ord="slot:NumericWritable">
<INumericToNumber name="value"/>
<ObjectToString name="text" format="%out.value%"/>
</ValueBinding>
</Bargraph>
<Line stroke="#8baac6" pen="2.0" geom="410.0,215.0 610.0,215.0"/>
<Line stroke="#8baac6" pen="2.0" geom="328.0,215.0 60.0,215.0"/>
<Rect fill="linearGradient( angle(-90.0) stop(0.0% #b1c0ce) stop(100.0% #7d91a3) )" geom="40.0,80.0,655.0,85.0"/>
<Slider layout="265.0,110.0,360.0,20.0">
<SetPointBinding ord="station:|slot:/PxHome/Graphics/Sampler/NumericWritable/fallback" widgetEvent="actionPerformed" widgetProperty="value"/>
</Slider>
<Label layout="55.0,105.0,200.0,35.0" font="18.0pt Tahoma" foreground="#384b5a">
<ValueBinding ord="station:|slot:/PxHome/Graphics/Sampler/NumericWritable">
<ObjectToString name="text" format="Current Value: %out.value%"/>
</ValueBinding>
</Label>
<ImageButton layout="645.0,90.0,32.0,32.0" buttonStyle="none" normal="file:^px/images/arrowUp.png" mouseOver="file:^px/images/arrowUpOver.png" pressed="file:^px/images/arrowUpPressed.png">
<IncrementSetPointBinding ord="station:|slot:/PxHome/Graphics/Sampler/NumericWritable/fallback/value" widgetEvent="actionPerformed" increment="1.0"/>
</ImageButton>
<ImageButton layout="645.0,120.0,32.0,37.0" buttonStyle="none" normal="file:^px/images/arrowDown.png" mouseOver="file:^px/images/arrowDownOver.png" pressed="file:^px/images/arrowDownPressed.png">
<IncrementSetPointBinding ord="station:|slot:/PxHome/Graphics/Sampler/NumericWritable/fallback/value" widgetEvent="actionPerformed" increment="-1.0"/>
</ImageButton>
<Label layout="30.0,15.0,325.0,40.0" text="Widget Sampler" font="26.0pt Tahoma" foreground="white" halign="left"/>
<Label layout="260.0,125.0,20.0,20.0" text="0" foreground="#384b5a"/>
<Label layout="610.0,125.0,20.0,20.0" text="100" foreground="#384b5a"/>
<Label layout="435.0,125.0,20.0,20.0" text="50" foreground="#384b5a"/>
<Label layout="520.0,125.0,20.0,20.0" text="75" foreground="#384b5a"/>
<Label layout="350.0,125.0,20.0,20.0" text="25" foreground="#384b5a"/>
<HistoryChart layout="40.0,350.0,655.0,160.0" showTimeRangeEditor="false" showDeltaEditor="false" showLiveUpdates="false" defaultLiveUpdates="true">
<WbViewBinding ord="history:/demo/NumericWritable"/>
</HistoryChart>
<AnalogMeter layout="400.0,220.0,105.0,95.0" startAngle="180" arcAngle="180" numDivisions="5" valueFont="18.0pt Tahoma" background="linearGradient( angle(-90.0) stop(0.0% #4b6981) stop(100.0% #283540) )" foreground="white">
<ValueBinding ord="slot:NumericWritable">
<INumericToNumber name="value"/>
<ObjectToString name="text" format="%out.value%"/>
</ValueBinding>
</AnalogMeter>
</CanvasPane>
</ScrollPane>
</content>
</px>