Changeset 80 for gssim_ui


Ignore:
Timestamp:
09/13/11 14:34:04 (14 years ago)
Author:
mcichenski
Message:

energy/allocation chart now differentable

Location:
gssim_ui/branches/vine/gssimstudio/src/web/ui/flex
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • gssim_ui/branches/vine/gssimstudio/src/web/ui/flex/app/gssim/gssimstudio/editor/charts/ResourceChart.mxml

    r51 r80  
    128128                                static.resName = resourceComboBox.selectedItem.name; 
    129129                                static.dataProvider = ObjectUtil.copy(resourceViewer.dataProvider) as ArrayCollection; 
     130                                static.type = chartTypeComboBox.selectedItem.type; 
    130131                                ViewsHelper.ArchiveCanvas.windowManager.add(static); 
    131132                        } 
  • gssim_ui/branches/vine/gssimstudio/src/web/ui/flex/app/gssim/gssimstudio/editor/charts/StaticResourceChart.mxml

    r79 r80  
    4141                        [Bindable] 
    4242                        public var resName : String; 
     43                        [Bindable] 
     44                        public var type : String = "allocation"; 
    4345                         
    4446                        [Bindable] 
     
    151153                        <mx:VBox width="100%" height="100%" verticalGap="1" id="fullChart"> 
    152154                                <mx:Label text="{resourceManager.getString('Charts', 'ResourceAllocationTitle')}" width="100%" styleName="title" 
    153                                                   /> 
     155                                                  includeInLayout="{type == 'allocation'}" 
     156                                                  visible="{type == 'allocation'}"/> 
     157                                <mx:Label text="{resourceManager.getString('Charts', 'ResourceEnergyTitle')}" width="100%" styleName="title" 
     158                                                  includeInLayout="{type == 'energy'}" 
     159                                                  visible="{type == 'energy'}"/> 
    154160                                <mx:Label text="{resourceManager.getString('Charts', 'CreatedFor')} {expName} {resourceManager.getString('Charts', 'Day')} {date}" width="100%" styleName="subtitle"/> 
    155161                                <mx:HBox width="100%" height="100%"> 
  • gssim_ui/branches/vine/gssimstudio/src/web/ui/flex/app/gssim/gssimstudio/editor/gssim/editors/topology/ObjectPropertiesWindow.mxml

    r78 r80  
    104104                } 
    105105                 
     106                public function loadEnergyChart() : void 
     107                { 
     108                        parentApplication.addModelUpdatedSingleCallbacks(parentApplication.service.getResourceTimelineFromDb(_object.nodeName,parentApplication.experimentModel.experimentConfiguration['pk'],'energy'), createEnergyChart); 
     109                } 
     110                 
    106111                protected function createChart(event : ResultEvent) 
    107112                { 
     
    110115                        static.resName = _object.nodeName; 
    111116                        static.dataProvider = ObjectUtil.copy(parentApplication.gsSimStudioModel.resourceTimelineList) as ArrayCollection; 
     117                        ViewsHelper.TopologyCanvas.windowManager.add(static); 
     118                        //ViewsHelper.ArchiveCanvas.windowManager.add(static); 
     119                } 
     120                 
     121                protected function createEnergyChart(event : ResultEvent) 
     122                { 
     123                        var static : StaticResourceChart = new StaticResourceChart(); 
     124                        static.expName = parentApplication.experimentModel.experimentConfiguration['name']; 
     125                        static.resName = _object.nodeName; 
     126                        static.dataProvider = ObjectUtil.copy(parentApplication.gsSimStudioModel.resourceTimelineList) as ArrayCollection; 
     127                        static.type = "energy"; 
    112128                        ViewsHelper.TopologyCanvas.windowManager.add(static); 
    113129                        //ViewsHelper.ArchiveCanvas.windowManager.add(static); 
     
    171187                <mx:HBox> 
    172188                        <mx:Button id="EditResourceButton" label="{resourceManager.getString('ResourceEditor', 'EditResource')}" click="editFrontend()" /> 
    173                         <mx:Button label="KABOOM" click="loadAllocationChart()" /> 
     189                        <mx:Button label="{resourceManager.getString('ResourceEditor', 'AllocationChart')}" click="loadAllocationChart()" /> 
     190                        <mx:Button label="{resourceManager.getString('ResourceEditor', 'EnergyChart')}" click="loadEnergyChart()" /> 
    174191                </mx:HBox> 
    175192                <mx:Button label="{resourceManager.getString('TopologyEditor', 'Close')}" click="close();"/> 
  • gssim_ui/branches/vine/gssimstudio/src/web/ui/flex/locale/en_US/ResourceEditor.properties

    r15 r80  
    1818EditResource=Edit resource 
    1919QueueParameter=Queue parameter 
     20AllocationChart=Allocations 
     21EnergyChart=Energy usage 
  • gssim_ui/branches/vine/gssimstudio/src/web/ui/flex/locale/pl_PL/ResourceEditor.properties

    r15 r80  
    1919EditResource=Edytuj zasób 
    2020QueueParameter=Parametr kolejki 
     21AllocationChart=Alokacje 
     22EnergyChart=ZuÅŒycie energii 
Note: See TracChangeset for help on using the changeset viewer.