org.xith3d.ui.hud.widgets
Class Panel.Description

java.lang.Object
  extended by org.xith3d.ui.hud.base.Widget.DescriptionBase
      extended by org.xith3d.ui.hud.widgets.Panel.Description
Enclosing class:
Panel

public static class Panel.Description
extends Widget.DescriptionBase

This class is used to describe a Panel Widget. You can pass it to the Panel constructor. Modifications on the used instance after creating the Panel Widget won't have any effect.


Constructor Summary
Panel.Description()
          Creates a new Image.Description
Panel.Description(org.openmali.vecmath2.Colorf color)
          Creates a new Image.Description
Panel.Description(Panel.Description template)
          Clone-Constructor.
Panel.Description(java.lang.String texture)
          Creates a new Image.Description
Panel.Description(Texture texture)
          Creates a new Image.Description
Panel.Description(Texture texture, org.openmali.vecmath2.Colorf color)
          Creates a new Image.Description
 
Method Summary
 Panel.Description clone()
          Clones this instance and returns the clone.
 org.openmali.vecmath2.Colorf getBackgroundColor()
           
 Texture getBackgroundTexture()
           
 Border.Description getBorderDescription()
           
 HUDUnitsMeasurement getMeasurement()
           
 float getPaddingBottom()
           
 float getPaddingLeft()
           
 float getPaddingRight()
           
 float getPaddingTop()
           
 void set(Panel.Description template)
           
 void setBackgroundColor(org.openmali.vecmath2.Colorf color)
           
 void setBackgroundTexture(java.lang.String texture)
           
 void setBackgroundTexture(Texture texture)
           
 void setBorderDescription(Border.Description borderDesc)
           
 void setMeasurement(HUDUnitsMeasurement measurement)
           
 void setPadding(float padding)
           
 void setPadding(float bottom, float right, float top, float left)
           
 
Methods inherited from class org.xith3d.ui.hud.base.Widget.DescriptionBase
toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Panel.Description

public Panel.Description(Panel.Description template)
Clone-Constructor.

Parameters:
template - the template Description to copy the values from

Panel.Description

public Panel.Description(Texture texture,
                         org.openmali.vecmath2.Colorf color)
Creates a new Image.Description

Parameters:
texture - the texture resource to use as background image for this FPSCounter
Make suse this texture supports alpha channel (e.g. PNG).
color - the color to fill the image with

Panel.Description

public Panel.Description(Texture texture)
Creates a new Image.Description

Parameters:
texture - the texture resource to use as background image for this FPSCounter
Make suse this texture supports alpha channel (e.g. PNG).

Panel.Description

public Panel.Description(java.lang.String texture)
Creates a new Image.Description

Parameters:
texture - the texture resource to use as background image for this FPSCounter
Make suse this texture supports alpha channel (e.g. PNG).

Panel.Description

public Panel.Description(org.openmali.vecmath2.Colorf color)
Creates a new Image.Description

Parameters:
color - the color to fill the image with

Panel.Description

public Panel.Description()
Creates a new Image.Description

Method Detail

setMeasurement

public void setMeasurement(HUDUnitsMeasurement measurement)

getMeasurement

public HUDUnitsMeasurement getMeasurement()

setBorderDescription

public void setBorderDescription(Border.Description borderDesc)

getBorderDescription

public Border.Description getBorderDescription()

setPadding

public void setPadding(float bottom,
                       float right,
                       float top,
                       float left)

setPadding

public void setPadding(float padding)

getPaddingBottom

public float getPaddingBottom()

getPaddingRight

public float getPaddingRight()

getPaddingTop

public float getPaddingTop()

getPaddingLeft

public float getPaddingLeft()

setBackgroundTexture

public void setBackgroundTexture(Texture texture)

setBackgroundTexture

public void setBackgroundTexture(java.lang.String texture)

getBackgroundTexture

public Texture getBackgroundTexture()

setBackgroundColor

public void setBackgroundColor(org.openmali.vecmath2.Colorf color)

getBackgroundColor

public org.openmali.vecmath2.Colorf getBackgroundColor()

set

public void set(Panel.Description template)

clone

public Panel.Description clone()
Clones this instance and returns the clone.

Overrides:
clone in class java.lang.Object