net.avh4.framework.uilayer.scene
Class SceneCenteredText

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

public class SceneCenteredText
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
SceneCenteredText(String text, int x, int y, int width, int height, Font font, int color)
           
 
Method Summary
 void draw(GraphicsOperations g, FontMetricsService fm)
           
 String getText()
           
 void setText(String text)
           
 
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

font

protected final Font font

color

protected final int color

text

protected String text
Constructor Detail

SceneCenteredText

public SceneCenteredText(String text,
                         int x,
                         int y,
                         int width,
                         int height,
                         Font font,
                         int color)
Method Detail

setText

public void setText(String text)

getText

public String getText()

draw

public void draw(GraphicsOperations g,
                 FontMetricsService fm)


Copyright © 2012. All Rights Reserved.