Class PieChartActor

java.lang.Object
com.badlogic.gdx.scenes.scene2d.Actor
com.badlogic.gdx.scenes.scene2d.ui.Widget
com.prineside.tdi2.ui.actors.PieChartActor
All Implemented Interfaces:
com.badlogic.gdx.scenes.scene2d.utils.Layout, com.badlogic.gdx.utils.Disposable
Direct Known Subclasses:
ButtonHoldHint

public class PieChartActor extends com.badlogic.gdx.scenes.scene2d.ui.Widget implements com.badlogic.gdx.utils.Disposable
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final PieChart
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Releases all resources of this object.
    void
    draw(com.badlogic.gdx.graphics.g2d.Batch batch, float parentAlpha)
    If this method is overridden, the super method or Widget.validate() should be called to ensure the widget is laid out.
    com.badlogic.gdx.utils.Array<PieChart.ChartEntryConfig>
     
    void
    setConfigs(com.badlogic.gdx.utils.Array<PieChart.ChartEntryConfig> configs)
     
    void
    setSegmentCount(int count)
     

    Methods inherited from class com.badlogic.gdx.scenes.scene2d.ui.Widget

    getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getPrefHeight, getPrefWidth, invalidate, invalidateHierarchy, layout, needsLayout, pack, setFillParent, setLayoutEnabled, validate

    Methods inherited from class com.badlogic.gdx.scenes.scene2d.Actor

    act, addAction, addCaptureListener, addListener, ancestorsVisible, ascendantsVisible, clear, clearActions, clearListeners, clipBegin, clipBegin, clipEnd, debug, drawDebug, fire, firstAscendant, getActions, getCaptureListeners, getColor, getDebug, getHeight, getListeners, getName, getOriginX, getOriginY, getParent, getRight, getRotation, getScaleX, getScaleY, getStage, getTop, getTouchable, getUserObject, getWidth, getX, getX, getY, getY, getZIndex, hasActions, hasKeyboardFocus, hasParent, hasScrollFocus, hit, isAscendantOf, isDescendantOf, isTouchable, isTouchFocusListener, isTouchFocusTarget, isVisible, localToActorCoordinates, localToAscendantCoordinates, localToParentCoordinates, localToScreenCoordinates, localToStageCoordinates, moveBy, notify, parentToLocalCoordinates, remove, removeAction, removeCaptureListener, removeListener, rotateBy, scaleBy, scaleBy, screenToLocalCoordinates, setBounds, setColor, setColor, setDebug, setHeight, setName, setOrigin, setOrigin, setOriginX, setOriginY, setPosition, setPosition, setRotation, setScale, setScale, setScaleX, setScaleY, setSize, setTouchable, setUserObject, setVisible, setWidth, setX, setX, setY, setY, setZIndex, sizeBy, sizeBy, stageToLocalCoordinates, toBack, toFront, toString

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

    • PieChartActor

      public PieChartActor()
  • Method Details

    • setConfigs

      public void setConfigs(com.badlogic.gdx.utils.Array<PieChart.ChartEntryConfig> configs)
    • getConfigs

      public com.badlogic.gdx.utils.Array<PieChart.ChartEntryConfig> getConfigs()
    • setSegmentCount

      public void setSegmentCount(int count)
    • draw

      public void draw(com.badlogic.gdx.graphics.g2d.Batch batch, float parentAlpha)
      Description copied from class: com.badlogic.gdx.scenes.scene2d.ui.Widget
      If this method is overridden, the super method or Widget.validate() should be called to ensure the widget is laid out.
      Overrides:
      draw in class com.badlogic.gdx.scenes.scene2d.ui.Widget
      parentAlpha - The parent alpha, to be multiplied with this actor's alpha, allowing the parent's alpha to affect all children.
    • dispose

      public void dispose()
      Description copied from interface: com.badlogic.gdx.utils.Disposable
      Releases all resources of this object.
      Specified by:
      dispose in interface com.badlogic.gdx.utils.Disposable