1//////////////////////////////////////////////////////////////////////////////// 2// 3// ADOBE SYSTEMS INCORPORATED 4// Copyright 2005-2006 Adobe Systems Incorporated 5// All Rights Reserved. 6// 7// NOTICE: Adobe permits you to use, modify, and distribute this file 8// in accordance with the terms of the license agreement accompanying it. 9// 10//////////////////////////////////////////////////////////////////////////////// 11 12package haloclassic 13{ 14 15import flash.display.Graphics; 16import mx.skins.Border; 17 18/** 19 * Documentation is not currently available. 20 * @review 21 */ 22public class DateChooserFwdArrowSkin extends Border 23{ 24 include "../mx/core/Version.as"; 25 26 //-------------------------------------------------------------------------- 27 // 28 // Constructor 29 // 30 //-------------------------------------------------------------------------- 31 32 /** 33 * Constructor. 34 */ 35 public function DateChooserFwdArrowSkin() 36 { 37 super(); 38 } 39 40 //-------------------------------------------------------------------------- 41 // 42 // Overridden properties 43 // 44 //-------------------------------------------------------------------------- 45 46 //---------------------------------- 47 // measuredWidth 48 //---------------------------------- 49 50 /** 51 * @private 52 */ 53 override public function get measuredWidth():Number 54 { 55 return 6; 56 } 57 58 //---------------------------------- 59 // measuredHeight 60 //---------------------------------- 61 62 /** 63 * @private 64 */ 65 override public function get measuredHeight():Number 66 { 67 return 11; 68 } 69 70 //-------------------------------------------------------------------------- 71 // 72 // Overridden methods 73 // 74 //-------------------------------------------------------------------------- 75 76 /** 77 * @private 78 */ 79 override protected function updateDisplayList(w:Number, h:Number):void 80 { 81 super.updateDisplayList(w, h); 82 83 var g:Graphics = graphics; 84 85 g.clear(); 86 87 switch (name) 88 { 89 case "nextMonthUpSkin": 90 case "nextMonthDownSkin": 91 case "nextMonthOverSkin": 92 { 93 // Border 94 g.beginFill(0x000000); 95 g.moveTo(0, 0); 96 g.lineTo(w, h / 2); 97 g.lineTo(0, h); 98 g.lineTo(0, 0); 99 g.endFill(); 100 break; 101 } 102 103 case "nextMonthDisabledSkin": 104 { 105 g.beginFill(0x999999); 106 g.moveTo(0, 0); 107 g.lineTo(w, h / 2); 108 g.lineTo(0, h); 109 g.lineTo(0, 0); 110 g.endFill(); 111 break; 112 } 113 } 114 } 115} 116 117} 118