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);
    }
}
最近下载更多
15751306056  LV1 5月19日
xxxjjn  LV1 2024年6月16日
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日
最近浏览更多
随便取个名字_哈哈  LV27 6月23日
wahukkk  LV1 6月22日
462063  LV3 6月16日
武诗惠 6月12日
暂无贡献等级
15751306056  LV1 5月19日
KAIzx11  LV8 5月7日
曾多次  LV1 2024年12月8日
krispeng  LV15 2024年9月15日
xxxjjn  LV1 2024年6月16日
mikrokosmos_2024  LV1 2024年6月15日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友