| <?xml version="1.0" encoding="utf-8"?> |
| <!-- |
| |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| |
| --> |
| <!-- examples/LineExample.mxml --> |
| <s:Application |
| xmlns:fx="http://ns.adobe.com/mxml/2009" |
| xmlns:mx="library://ns.adobe.com/flex/mx" |
| xmlns:s="library://ns.adobe.com/flex/spark"> |
| |
| <mx:Panel title="Line MXML Graphic Example" |
| height="75%" width="75%" layout="horizontal" |
| paddingTop="30" paddingBottom="10" paddingLeft="10" paddingRight="10"> |
| |
| <s:Group x="20" y="20"> |
| <s:Line xFrom="0" xTo="0" yFrom="0" yTo="100"> |
| <!-- Define the border color of the line. --> |
| <s:stroke> |
| <s:SolidColorStroke color="0x000000" weight="1" caps="square"/> |
| </s:stroke> |
| </s:Line> |
| <s:Line xFrom="6" xTo="6" yFrom="0" yTo="100"> |
| <s:stroke> |
| <s:SolidColorStroke color="0x000000" weight="1" caps="square"/> |
| </s:stroke> |
| </s:Line> |
| <s:Line xFrom="12" xTo="12" yFrom="0" yTo="100"> |
| <s:stroke> |
| <s:SolidColorStroke color="0x000000" weight="2" caps="square"/> |
| </s:stroke> |
| </s:Line> |
| <s:Line xFrom="20" xTo="20" yFrom="0" yTo="100"> |
| <s:stroke> |
| <s:SolidColorStroke color="0x000000" weight="3" caps="square"/> |
| </s:stroke> |
| </s:Line> |
| <s:Line xFrom="30" xTo="30" yFrom="0" yTo="100"> |
| <s:stroke> |
| <s:SolidColorStroke color="0x000000" weight="5" caps="square"/> |
| </s:stroke> |
| </s:Line> |
| <s:Line xFrom="43" xTo="43" yFrom="0" yTo="100"> |
| <s:stroke> |
| <s:SolidColorStroke color="0x000000" weight="8" caps="square"/> |
| </s:stroke> |
| </s:Line> |
| <s:Line xFrom="58" xTo="58" yFrom="0" yTo="100"> |
| <s:stroke> |
| <s:SolidColorStroke color="0x000000" weight="13" caps="square"/> |
| </s:stroke> |
| </s:Line> |
| <s:Line xFrom="84" xTo="84" yFrom="0" yTo="100"> |
| <s:stroke> |
| <s:SolidColorStroke color="0x000000" weight="21" caps="square"/> |
| </s:stroke> |
| </s:Line> |
| <s:Line xFrom="123" xTo="123" yFrom="0" yTo="100"> |
| <s:stroke> |
| <s:SolidColorStroke color="0x000000" weight="34" caps="square"/> |
| </s:stroke> |
| </s:Line> |
| |
| </s:Group> |
| |
| </mx:Panel> |
| </s:Application> |