com.jmex.bui.background
Class BBackground

java.lang.Object
  extended by com.jmex.bui.background.BBackground
Direct Known Subclasses:
BlankBackground, ImageBackground, TintedBackground

public abstract class BBackground
extends Object

Provides additional information about a background that is used to display the backgrounds of various components.


Constructor Summary
BBackground()
           
 
Method Summary
 int getMinimumHeight()
          Returns the minimum height allowed by this background.
 int getMinimumWidth()
          Returns the minimum width allowed by this background.
 void render(Renderer renderer, int x, int y, int width, int height, float alpha)
          Renders this background.
 void wasAdded()
          Called when the component that contains this background is was added to the interface hierarchy.
 void wasRemoved()
          Called when the component that contains this background is no longer part of a user interface hierarchy.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BBackground

public BBackground()
Method Detail

getMinimumWidth

public int getMinimumWidth()
Returns the minimum width allowed by this background.


getMinimumHeight

public int getMinimumHeight()
Returns the minimum height allowed by this background.


render

public void render(Renderer renderer,
                   int x,
                   int y,
                   int width,
                   int height,
                   float alpha)
Renders this background.


wasAdded

public void wasAdded()
Called when the component that contains this background is was added to the interface hierarchy.


wasRemoved

public void wasRemoved()
Called when the component that contains this background is no longer part of a user interface hierarchy.



Copyright © 2008 Michael Bayne. All Rights Reserved.