|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.ui.hud.base.Widget
org.xith3d.ui.hud.base.BackgroundSettableWidget
org.xith3d.ui.hud.widgets.Label
org.xith3d.ui.hud.widgets.FPSCounter
public class FPSCounter
Simple Widget to display the FPS count of your application. You can easily add it to an instance of ExtRenderLoop.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.xith3d.ui.hud.widgets.Label |
|---|
Label.Description |
| Nested classes/interfaces inherited from class org.xith3d.ui.hud.base.BackgroundSettableWidget |
|---|
BackgroundSettableWidget.BackgroundSettableDescriptionBase |
| Nested classes/interfaces inherited from class org.xith3d.ui.hud.base.Widget |
|---|
Widget.DescriptionBase |
| Field Summary |
|---|
| Fields inherited from class org.xith3d.ui.hud.widgets.Label |
|---|
DEFAULT_HEAVYWEIGHT |
| Fields inherited from class org.xith3d.ui.hud.base.Widget |
|---|
transformHeight_Pixels2HUD, transformWidth_Pixels2HUD |
| Constructor Summary | |
|---|---|
FPSCounter(boolean isHeavyWeight,
float width,
float height)
Creates a new FPSCounter with the given width and height. |
|
FPSCounter(boolean isHeavyWeight,
float width,
float height,
java.lang.String backgroundTexture)
Creates a new FPSCounter with the given width and height. |
|
FPSCounter(boolean isHeavyWeight,
float width,
float height,
Texture2D backgroundTexture)
Creates a new FPSCounter with the given width and height. |
|
FPSCounter(float width,
float height)
Creates a new FPSCounter with the given width and height. |
|
FPSCounter(float width,
float height,
java.lang.String backgroundTexture)
Creates a new FPSCounter with the given width and height. |
|
FPSCounter(float width,
float height,
Texture2D backgroundTexture)
Creates a new FPSCounter with the given width and height. |
|
| Method Summary | |
|---|---|
char |
getDecimalSeparator()
|
float |
getLastFPS()
|
java.lang.String |
getPostfix()
Sets the postfix to be appended to the FPS value. |
java.lang.String |
getPrefix()
|
void |
onFPSCountIntervalHit(float fps)
This method is called by the RenderLoop each FPS-counting interval |
void |
setDecimalSeparator(char decSep)
Changes the decimal separator to the given char. |
void |
setPostfix(java.lang.String postfix)
Sets the postfix to be appended to the FPS value. |
void |
setPrefix(java.lang.String prefix)
Sets the prefix to be set to the FPS value. |
| Methods inherited from class org.xith3d.ui.hud.widgets.Label |
|---|
drawIcon, drawText, drawWidget, getAlignment, getDisplayedText, getFont, getFont, getFontColor, getFontColor, getFontColorDisabled, getFontDisabled, getIcon, getIconGap, getMinimalHeight, getMinimalSize, getMinimalWidth, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getText, getTextOffsetX, getTextOffsetY, init, initSize, isAutoSizeEnabled, isEnabled, onAttachedToHUD, onSizeChanged, prepareText, setAlignment, setAutoSizeEnabled, setEnabled, setEnabledImpl, setFont, setFontColor, setFontColorDisabled, setFontDisabled, setIcon, setIcon, setIconGap, setMinimalSize, setPadding, setPadding, setText, setText, setText, setTextOffset, updateText |
| Methods inherited from class org.xith3d.ui.hud.base.BackgroundSettableWidget |
|---|
drawBackground, getBackgroundColor, getBackgroundTexture, getBackgroundTileMode, setBackground, setBackground, setBackground, setBackgroundColor, setBackgroundTexture, setBackgroundTexture, setBackgroundTexture, setBackgroundTexture, setBackgroundTileMode, setNoBackground |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FPSCounter(boolean isHeavyWeight,
float width,
float height,
Texture2D backgroundTexture)
isHeavyWeight - width - the new width of this Widgetheight - the new height of this WidgetbackgroundTexture -
public FPSCounter(boolean isHeavyWeight,
float width,
float height,
java.lang.String backgroundTexture)
isHeavyWeight - width - the new width of this Widgetheight - the new height of this WidgetbackgroundTexture -
public FPSCounter(boolean isHeavyWeight,
float width,
float height)
isHeavyWeight - width - the new width of this Widgetheight - the new height of this Widget
public FPSCounter(float width,
float height,
Texture2D backgroundTexture)
width - the new width of this Widgetheight - the new height of this WidgetbackgroundTexture -
public FPSCounter(float width,
float height,
java.lang.String backgroundTexture)
width - the new width of this Widgetheight - the new height of this WidgetbackgroundTexture -
public FPSCounter(float width,
float height)
width - the new width of this Widgetheight - the new height of this Widget| Method Detail |
|---|
public void setPrefix(java.lang.String prefix)
public final java.lang.String getPrefix()
public void setPostfix(java.lang.String postfix)
public final java.lang.String getPostfix()
public void setDecimalSeparator(char decSep)
decSep - public final char getDecimalSeparator()
public final float getLastFPS()
public void onFPSCountIntervalHit(float fps)
onFPSCountIntervalHit in interface FPSListenerfps - the average frames per second during the last interval
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||