package Format;
import Font.MyFont;
import Main.*;
import java.awt.Font;
/**
 *@descriptin 整合,实现格式菜单下的所有功能
 * @author 小路
 * @date 2013-05-07
 */
public class Format 
{
    private MainFrame mf;
    public Format(MainFrame mf)
    {
        this.mf = mf;
    }
    //实现自动换行方法
    public void autoSwrap()
    {
        if(mf.get_autowrap())
        {
            mf.getMainText().setLineWrap(true);
            mf.get_statusbar().setSelected(false);
            mf.get_statusbar().setEnabled(false);
            mf.get_status().setVisible(false);
            mf.set_switchto(false);
        }
        else
        {
            mf.getMainText().setLineWrap(false);
            mf.get_statusbar().setSelected(true);
            mf.get_statusbar().setEnabled(true);
            mf.get_status().setVisible(true);   
            mf.set_switchto(true);
        }
    }
    //实现字体方法
    public void setFont()
    {
         MyFont myfont = new MyFont(new Font("黑体",20,20),mf);
        myfont.showDialog(mf);
    }
}
最近下载更多
queueandstack  LV3 2022年12月2日
沙发床上的  LV1 2022年5月30日
183077946781  LV1 2021年11月15日
尹恒yingying  LV18 2021年10月12日
任天晴  LV1 2021年7月10日
ncy123456789  LV6 2021年7月6日
毫无qiushengyu  LV2 2021年7月2日
祁康伟  LV1 2021年7月1日
周星星哥哥在外面  LV1 2021年6月15日
lixiaoya  LV1 2021年6月7日
最近浏览更多
ruo12138  LV1 4月11日
潘潘123456  LV2 3月2日
lsglsg9  LV22 2023年12月29日
lshlsh 2023年12月25日
暂无贡献等级
sunshine9920  LV12 2023年10月20日
卢本伟不开挂  LV4 2023年9月3日
taoshen95  LV14 2023年7月27日
zhoulinghhhh 2023年7月18日
暂无贡献等级
dongzhan  LV12 2023年6月30日
新工艺  LV7 2023年6月13日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友