Text.java

/**
 * Copyright (c) 2012 Nokia Corporation. All rights reserved.
 * Nokia and Nokia Connecting People are registered trademarks of Nokia Corporation.
 * Oracle and Java are trademarks or registered trademarks of Oracle and/or its
 * affiliates. Other product and company names mentioned herein may be trademarks
 * or trade names of their respective owners.
 * See LICENSE.TXT for license information.
 */

package com.nokia.example.ammscamera;

public class Text {

    public Text(String str) {
        content = str;
        color = 0;
        xoffset = 0;
    }

    public void SetColor(int c) {
        color = c;
    }

    public String getText() {
        return content.trim();
    }

    public int getColor() {
        return color;
    }

    public void setOffset(int o) {
        xoffset = o;
    }

    public int getOffset() {
        return xoffset;
    }
    String content;
    int color;
    int xoffset;
}