Java 类org.newdawn.slick.tools.hiero.truetype.FontData 实例源码

项目:trashjam2017    文件:Splash.java   
/**
 * Create a new splash screen 
 */
Splash() {
    super(new Frame());

    FontData.setStatusListener(this);

    try {
        image = ImageIO.read(Thread.currentThread().getContextClassLoader().getResourceAsStream("org/newdawn/slick/tools/hiero/resources/splash.png"));
        Dimension size = Toolkit.getDefaultToolkit().getScreenSize();
        setSize(400,250);
        setLocation((size.width - getWidth())/2, (size.height - getHeight()) / 2);
        setVisible(true);
    } catch (IOException e) {
        e.printStackTrace();
    }
}
项目:Progetto-C    文件:Splash.java   
/**
 * Create a new splash screen 
 */
Splash() {
    super(new Frame());

    FontData.setStatusListener(this);

    try {
        image = ImageIO.read(Thread.currentThread().getContextClassLoader().getResourceAsStream("org/newdawn/slick/tools/hiero/resources/splash.png"));
        Dimension size = Toolkit.getDefaultToolkit().getScreenSize();
        setSize(400,250);
        setLocation((size.width - getWidth())/2, (size.height - getHeight()) / 2);
        setVisible(true);
    } catch (IOException e) {
        e.printStackTrace();
    }
}
项目:Disparity-RHE    文件:Splash.java   
/**
 * Create a new splash screen 
 */
Splash() {
    super(new Frame());

    FontData.setStatusListener(this);

    try {
        image = ImageIO.read(Thread.currentThread().getContextClassLoader().getResourceAsStream("org/newdawn/slick/tools/hiero/resources/splash.png"));
        Dimension size = Toolkit.getDefaultToolkit().getScreenSize();
        setSize(400,250);
        setLocation((size.width - getWidth())/2, (size.height - getHeight()) / 2);
        setVisible(true);
    } catch (IOException e) {
        e.printStackTrace();
    }
}
项目:slick2d-maven    文件:Splash.java   
/**
 * Create a new splash screen 
 */
Splash() {
    super(new Frame());

    FontData.setStatusListener(this);

    try {
        image = ImageIO.read(Thread.currentThread().getContextClassLoader().getResourceAsStream("org/newdawn/slick/tools/hiero/resources/splash.png"));
        Dimension size = Toolkit.getDefaultToolkit().getScreenSize();
        setSize(400,250);
        setLocation((size.width - getWidth())/2, (size.height - getHeight()) / 2);
        setVisible(true);
    } catch (IOException e) {
        e.printStackTrace();
    }
}