net.avh4.framework.uilayer.scene
Class SceneText

java.lang.Object
  extended by net.avh4.framework.uilayer.scene.SceneElementBase
      extended by net.avh4.framework.uilayer.scene.SceneText
All Implemented Interfaces:
SceneElement

public class SceneText
extends SceneElementBase


Field Summary
protected  int color
           
protected  Font font
           
protected  String text
           
 
Fields inherited from class net.avh4.framework.uilayer.scene.SceneElementBase
height, hidden, name, width, x, y
 
Constructor Summary
SceneText(String text, int x, int y, int width, Font customFont, int color)
           
SceneText(String text, int x, int y, int width, String customFontResource, int fontSize, int color)
           
SceneText(String name, String text, int x, int y, int width, Font customFont, int color)
           
 
Method Summary
 void draw(GraphicsOperations g, FontMetricsService fm)
           
 String getText()
           
 void setText(String string)
           
 
Methods inherited from class net.avh4.framework.uilayer.scene.SceneElementBase
getHeight, getName, getWidth, getX, getY, isHidden, setHeight, setHidden, setWidth, setX, setY, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

text

protected String text

font

protected final Font font

color

protected final int color
Constructor Detail

SceneText

public SceneText(String text,
                 int x,
                 int y,
                 int width,
                 Font customFont,
                 int color)

SceneText

public SceneText(String text,
                 int x,
                 int y,
                 int width,
                 String customFontResource,
                 int fontSize,
                 int color)

SceneText

public SceneText(String name,
                 String text,
                 int x,
                 int y,
                 int width,
                 Font customFont,
                 int color)
Method Detail

setText

public void setText(String string)

getText

public String getText()

draw

public void draw(GraphicsOperations g,
                 FontMetricsService fm)


Copyright © 2012. All Rights Reserved.