view src/MPipeline/src/mpipeline/MBlockAlgoLabel.java @ 27:29276498ebdb database-connection-manager

Remove LTPDARepositoryManager implementation * * * Remove GUI helper
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Mon, 05 Dec 2011 16:20:06 +0100
parents f0afece42f48
children
line wrap: on
line source

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package mpipeline;

import java.awt.Color;
import java.awt.Font;
import java.io.Serializable;

/**
 * An extension of MBlockLabel just to give some class type.
 * 
 * @author hewitson
 */
public class MBlockAlgoLabel extends MBlockLabel implements Serializable {

    private int algoViewFontSize = 11;
    private Font algoViewFont = new Font("SansSerif", Font.ITALIC, algoViewFontSize);

    /**
     * 
     */
    public MBlockAlgoLabel() {
        super("None");
        this.setForeground(new Color(30, 30, 200));
        this.setFont(algoViewFont);
    }

    /**
     * Construct a block label from the string.
     * 
     * @param s
     */
    public MBlockAlgoLabel(String s) {
        super(s);
        this.setForeground(new Color(30, 30, 200));
        this.setFont(algoViewFont);
    }

    /**
     *
     * @return
     */
    public Font getAlgoViewFont() {
        return algoViewFont;
    }

    /**
     *
     * @param algoViewFont
     */
    public void setAlgoViewFont(Font algoViewFont) {
        this.algoViewFont = algoViewFont;
    }

    /**
     *
     * @return
     */
    public int getAlgoViewFontSize() {
        return algoViewFontSize;
    }

    /**
     *
     * @param algoViewFontSize
     */
    public void setAlgoViewFontSize(int algoViewFontSize) {
        this.algoViewFontSize = algoViewFontSize;
    }

    
    
}