net.ctdp.rfdynhud.widgets.extra.assembled
Class AssembledWidget

java.lang.Object
  extended by net.ctdp.rfdynhud.widgets.base.widget.Widget
      extended by net.ctdp.rfdynhud.widgets.base.widget.StatefulWidget<java.lang.Object,java.lang.Object>
          extended by net.ctdp.rfdynhud.widgets.base.widget.AbstractAssembledWidget
              extended by net.ctdp.rfdynhud.widgets.extra.assembled.AssembledWidget
All Implemented Interfaces:
java.lang.Cloneable, PropertiesKeeper

public class AssembledWidget
extends AbstractAssembledWidget


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
AssembledWidget()
           
AssembledWidget(boolean initParts)
           
 
Method Summary
protected  void arrangeParts(Widget[] parts)
          This method is called when the configuration has been loaded.
 WidgetPackage getWidgetPackage()
          Gets the package to group the Widget in the editor.
protected  Widget[] initParts(float width, boolean widthPercent, float height, boolean heightPercent)
          
 
Methods inherited from class net.ctdp.rfdynhud.widgets.base.widget.AbstractAssembledWidget
afterConfigurationLoaded, bake, beforeConfigurationCleared, canHaveBackground, checkForChanges, createGeneralStore, createLocalStore, drawWidget, findFreePartName, forceReinitialization, getDefaultBorderValue, getDefaultNamedColorValue, getDefaultNamedFontValue, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getNeededData, getNewInstanceForClone, getNumParts, getPart, getProperties, hasMasterCanvas, hasText, initialize, initSubTextures, loadProperty, onBoundInputStateChanged, onGarageEntered, onGarageExited, onLapStarted, onNeededDataComplete, onPitsEntered, onPitsExited, onRealtimeEntered, onRealtimeExited, onScoringInfoUpdated, onSessionStarted, onTrackChanged, onVehicleControlChanged, onVehicleSetupUpdated, saveProperties, setAllPosAndSizeToPercents, setAllPosAndSizeToPixels, setDirtyFlag, updateVisibility
 
Methods inherited from class net.ctdp.rfdynhud.widgets.base.widget.StatefulWidget
getGeneralStore, getGeneralStoreKey, getLocalStore
 
Methods inherited from class net.ctdp.rfdynhud.widgets.base.widget.Widget
addBackgroundPropertyToContainer, addBorderPropertyToContainer, addFontPropertiesToContainer, addPaddingPropertiesToContainer, addPositionAndSizePropertiesToContainer, addTypeAndNamePropertiesToContainer, addVisibilityPropertiesToContainer, canHaveBorder, clearBackgroundRegion, clearRegion, clearRegion, clone, cloneProperty, debug, debugCS, drawBackground, drawBorder, drawWidget, forceAndSetDirty, forceCompleteRedraw, forceReinitialization, getAbsoluteOffsetX, getAbsoluteOffsetY, getAutoVisibility, getBackground, getBackgroundProperty, getBorder, getBorderProperty, getConfiguration, getDirtyFlag, getDocumentationSource, getDrawnStringFactory, getEffectiveHeight, getEffectiveWidth, getFont, getFontColor, getFontColorProperty, getFontProperty, getInitialBackground, getInnerSize, getInputActions, getInputVisibility, getMasterWidget, getName, getOffsetXToRootMasterWidget, getOffsetYToRootMasterWidget, getPaddingBottom, getPaddingLeft, getPaddingPropertyBottom, getPaddingPropertyLeft, getPaddingPropertyRight, getPaddingPropertyTop, getPaddingRight, getPaddingTop, getPosition, getPropertiesForParentGroup, getPropertiesIterator, getSize, getSubTextures, getUpdatedVisibility, getWidgetController, getZIndex, hasBorder, hasFixedSize, isFontAntiAliased, isVisible, log, log, logCS, logCS, onBackgroundChanged, onCanvasSizeChanged, onCompleteRedrawForced, onDirtyFlagSet, onPositionChanged, onPropertyChanged, onReinitializationForced, onSizeChanged, onVisibilityChanged, prepareForMenuItem, setDirtyFlag, setName, setPadding, setWidgetController, visibilityChangedSinceLastDraw
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssembledWidget

public AssembledWidget(boolean initParts)
Parameters:
initParts -

AssembledWidget

public AssembledWidget()
Method Detail

getWidgetPackage

public WidgetPackage getWidgetPackage()
Description copied from class: Widget
Gets the package to group the Widget in the editor. This can be an null to be displayed in the root or a slash separated path.

Specified by:
getWidgetPackage in class Widget
Returns:
the package to group the Widget in the editor.

arrangeParts

protected void arrangeParts(Widget[] parts)
Description copied from class: AbstractAssembledWidget
This method is called when the configuration has been loaded.

Overrides:
arrangeParts in class AbstractAssembledWidget
Parameters:
parts - the parts to arrange

initParts

protected Widget[] initParts(float width,
                             boolean widthPercent,
                             float height,
                             boolean heightPercent)

Specified by:
initParts in class AbstractAssembledWidget