⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 simplefontmetrics.java

📁 遗传算法改进神经网络源程序 该小程序可以添加条形码功能到你的网页或者applet上,这个applet把大写字母和数字转换为标准的条形码。
💻 JAVA
字号:
// Decompiled by DJ v3.7.7.81 Copyright 2004 Atanas Neshkov  Date: 2007-11-23 16:17:33
// Home Page : http://members.fortunecity.com/neshkov/dj.html  - Check often for new version!
// Decompiler options: packimports(3) 
// Source File Name:   SimpleFontMetrics.java

package com.bokai.drawing;

import java.awt.FontMetrics;

// Referenced classes of package com.bokai.drawing:
//            FontInfo

public class SimpleFontMetrics
{

    public SimpleFontMetrics(FontInfo fontinfo, int i, int j, int k, int l)
    {
        _fm = null;
        _fontInfo = fontinfo;
        _maxAscent = i;
        _ascent = j;
        _descent = k;
        _leading = l;
    }

    public SimpleFontMetrics(FontMetrics fontmetrics)
    {
        _fm = fontmetrics;
        _fontInfo = null;
    }

    public int charsWidth(char ac[], int i, int j)
    {
        return _fm == null ? _fontInfo.charsWidth(ac, i, j) : _fm.charsWidth(ac, i, j);
    }

    public int getAscent()
    {
        return _fm == null ? _ascent : _fm.getAscent();
    }

    public int getDescent()
    {
        return _fm == null ? _descent : _fm.getDescent();
    }

    public int getLeading()
    {
        return _fm == null ? _leading : _fm.getLeading();
    }

    public int getMaxAscent()
    {
        return _fm == null ? _maxAscent : _fm.getMaxAscent();
    }

    private FontMetrics _fm;
    private FontInfo _fontInfo;
    private int _maxAscent;
    private int _descent;
    private int _ascent;
    private int _leading;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -