CAD与mapinfo格式数据互相转换?
来源:互联网 发布:淘宝跨店满减怎么设置 编辑:程序博客网 时间:2024/04/27 16:05
重写的LinkButton类Kelvin_LinkButton.as:
package
{
/*LinkButton 仿IE超链接
by Kelvin
MSN:xiaobolove@hotmail.com
Email:xiaobolove334421@163.com
样式:
color:字体颜色
textDecoration:下线划(无:normal,有:underline)
textRollOverColor:鼠标滑过时字的颜色
textSelectedColor:鼠标按下时字的颜色,即被选中时的颜色
*/
import flash.events.MouseEvent;
import mx.controls.LinkButton;
public class Kelvin_LinkButton extends LinkButton
{
public function Kelvin_LinkButton(){
super();
super.alpha=0.0;
super.setStyle("color","blue");//设置初始化字体颜色
}
//鼠标悬浮在字上
override protected function rollOverHandler(event:MouseEvent):void
{
super.rollOverHandler(event);
super.setStyle("textDecoration","underline");//显示下划线
super.setStyle('textRollOverColor','#FF0000');//设置鼠标滑过时的字体颜色
}
//鼠标按下
override protected function mouseDownHandler(event:MouseEvent):void
{
super.mouseDownHandler(event);
super.setStyle('textDecoration','underline');
super.setStyle('textRollOverColor','#0000FF');
super.setStyle('textSelectedColor','#00000FF');//设置被选中时的字体颜色
}
//鼠标抬起
override protected function mouseUpHandler(event:MouseEvent):void
{
super.mouseUpHandler(event);
super.setStyle("color","#bc11c2");//鼠标抬起后更改字体颜色,表示已经点击过
}
//鼠标移出
override protected function rollOutHandler(event:MouseEvent):void
{
super.rollOutHandler(event);
super.setStyle('textDecoration','normal');
super.setStyle('textRollOverColor','#0000FF');
}
}
}
调用LinkTest.mxml:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" width="100" height="100"
layout="absolute" backgroundColor="white" xmlns:local="*">
<local:Kelvin_LinkButton label="Kelvin" x="10" y="10"/>
</mx:Application>
- CAD与mapinfo格式数据互相转换?
- CAD转MAPINFO格式的方法
- MapInfo数据导入到ArcGIS(格式转换tab --> shap)
- JSON格式与string格式互相转换
- MapInfo格式到ArcInfo格式的转换
- MapInfo格式到ArcInfo格式的转换
- 图片drawable与bitmap格式互相转换
- CAD图纸的格式转换与编辑技巧
- 数据类与JSON的互相转换
- MapInfo格式到ArcGIS格式的转换方法
- iOS 中字典与json格式的互相转换
- [转]iOS 中字典与json格式的互相转换
- pkcs1与pkcs8格式RSA私钥互相转换
- 最精简的XML格式与数组的互相转换
- iOS 中字典与json格式的互相转换
- 十六进制颜色值与rgba格式的互相转换
- pkcs1与pkcs8格式RSA私钥互相转换
- cad编辑器怎么把cad转换pdf格式
- 是不是每个老板都觉得员工欠他的
- 为控件创建右键菜单栏
- 寻找兼职.net 项目
- C#2.0类和对象学习系列之参数初始化
- PostScirpt打印机驱动程序
- CAD与mapinfo格式数据互相转换?
- 给博客添加天气预报
- stl读取ini配置文件例子
- 测试CSDN的源码高亮显示功能
- C#2.0类和对象学习系列之ref关键字
- 关于中石油的笑话
- sina博客 http://blog.sina.com.cn/javason
- LDAP Schema 分配
- Eclipse插件开发中对于Jar包和类文件引用的处理(彻底解决插件开发中的NoClassDefFoundError问题)