|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.ctdp.rfdynhud.widgets.base.widget.Widget
net.ctdp.rfdynhud.widgets.internal.InternalWidget
public class InternalWidget
This Widget
displays information, if something went wrong
or the plugin is in beta state or something.
Field Summary |
---|
Fields inherited from class net.ctdp.rfdynhud.widgets.base.widget.Widget |
---|
LOG_CHANNEL, NEEDED_DATA_ALL, NEEDED_DATA_SCORING, NEEDED_DATA_TELEMETRY |
Constructor Summary | |
---|---|
InternalWidget()
|
Method Summary | |
---|---|
protected void |
drawWidget(Clock clock,
boolean needsCompleteRedraw,
LiveGameData gameData,
boolean isEditorMode,
TextureImage2D texture,
int offsetX,
int offsetY,
int width,
int height)
This method must contain the actual drawing code for this Widget. |
void |
getProperties(PropertiesContainer propsCont,
boolean forceAll)
Puts all editable properties to the editor. |
protected void |
initialize(LiveGameData gameData,
boolean isEditorMode,
DrawnStringFactory drawnStringFactory,
TextureImage2D texture,
int width,
int height)
This method is called once to initialized DrawnString s used on this Widget. |
protected void |
initSubTextures(LiveGameData gameData,
boolean isEditorMode,
int widgetInnerWidth,
int widgetInnerHeight,
SubTextureCollector collector)
Gets the TransformableTexture s, that this Widget keeps. |
void |
setMessage(java.lang.String... message)
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InternalWidget()
Method Detail |
---|
public void setMessage(java.lang.String... message)
protected void initSubTextures(LiveGameData gameData, boolean isEditorMode, int widgetInnerWidth, int widgetInnerHeight, SubTextureCollector collector)
TransformableTexture
s, that this Widget
keeps.
initSubTextures
in class Widget
gameData
- the live game dataisEditorMode
- rendering in the editor?widgetInnerWidth
- the total widget width excluding borderswidgetInnerHeight
- the total widget height excluding borderscollector
- the collector to collect all the sub texturesprotected void initialize(LiveGameData gameData, boolean isEditorMode, DrawnStringFactory drawnStringFactory, TextureImage2D texture, int width, int height)
Widget
DrawnString
s used on this Widget.
initialize
in class Widget
gameData
- the live game dataisEditorMode
- true
, if the Editor is used for rendering instead of rFactordrawnStringFactory
- a factory to get DrawnString
instances fromtexture
- the texture image to draw on. Use TextureImage2D.getTextureCanvas()
to retrieve the Texture2DCanvas
for Graphics2D drawing.width
- the width on the textureheight
- the height on the textureprotected void drawWidget(Clock clock, boolean needsCompleteRedraw, LiveGameData gameData, boolean isEditorMode, TextureImage2D texture, int offsetX, int offsetY, int width, int height)
Widget
drawWidget
in class Widget
clock
- this is a clock for very dynamic content, that needs smooth display. If 'needsCompleteRedraw' is true, clock1 is also true.needsCompleteRedraw
- whether this widget needs to be completely redrawn (true) or just the changed parts (false)gameData
- the live game dataisEditorMode
- true
, if the Editor is used for rendering instead of rFactortexture
- the texture image to draw on. Use TextureImage2D.getTextureCanvas()
to retrieve the Texture2DCanvas
for Graphics2D drawing.offsetX
- the x-offset on the textureoffsetY
- the y-offset on the texturewidth
- the width on the textureheight
- the height on the texturepublic void getProperties(PropertiesContainer propsCont, boolean forceAll)
Widget
getProperties
in interface PropertiesKeeper
getProperties
in class Widget
propsCont
- the container to add the properties toforceAll
- If true
, all properties provided by this PropertiesKeeper
must be added.
If false
, only the properties, that are relevant for the current PropertiesKeeper
's situation have to be added, some can be ignored.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |