de.bioviz.messages.MessageBase.java Source code

Java tutorial

Introduction

Here is the source code for de.bioviz.messages.MessageBase.java

Source

/*
 * BioViz, a visualization tool for digital microfluidic biochips (DMFB).
 *
 * Copyright (c) 2017 Oliver Keszocze, Jannis Stoppe, Maximilian Luenert
 *
 * This file is part of BioViz.
 *
 * BioViz is free software: you can redistribute it and/or modify it under
 * the terms of the GNU General Public License as published by the Free
 * Software Foundation, either version 2 of the License, or (at your option)
 * any later version.
 *
 * BioViz is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY
 * or FITNESS FOR A PARTICULAR PURPOSE.
 *
 * See the GNU General Public License for more details. You should have
 * received a copy of the GNU
 * General Public License along with BioViz.
 * If not, see <http://www.gnu.org/licenses/>.
 */

package de.bioviz.messages;

import com.badlogic.gdx.graphics.Color;

/**
 *
 * @author Jannis Stoppe
 */
class MessageBase {
    /**
     * The message that will be displayed on the top of the screen.
     */
    public String message;

    /**
     * The color used for displaying the message.
     */
    public Color color;

    /**
     * Creates a message that will be printed in white.
     *
     * @param message The message that will be displayed later on
     */
    MessageBase(final String message) {
        this.message = message;
        this.color = Color.WHITE.cpy();
    }

}