Class ColorPickerAbstract

java.lang.Object
com.badlogic.gdx.scenes.scene2d.Actor
com.badlogic.gdx.scenes.scene2d.ui.Widget
com.badlogic.gdx.scenes.scene2d.ui.Image
gaiasky.gui.window.ColorPickerAbstract
All Implemented Interfaces:
com.badlogic.gdx.scenes.scene2d.utils.Layout
Direct Known Subclasses:
ColormapPicker, ColorPicker

public abstract class ColorPickerAbstract extends com.badlogic.gdx.scenes.scene2d.ui.Image
  • Field Summary Link icon

    Fields
    Modifier and Type
    Field
    Description
    protected float[]
     
    protected String
     
    protected Runnable
     
    protected Runnable
     
    protected com.badlogic.gdx.scenes.scene2d.ui.Skin
     
    protected com.badlogic.gdx.scenes.scene2d.Stage
     
  • Constructor Summary Link icon

    Constructors
    Modifier
    Constructor
    Description
    protected
    ColorPickerAbstract(String name, com.badlogic.gdx.scenes.scene2d.Stage stage, com.badlogic.gdx.scenes.scene2d.ui.Skin skin)
     
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    float[]
     
    double[]
     
    protected void
     
    protected abstract void
     
    void
    setPickedColor(float[] rgba)
     
    void
    setPickedColor(float r, float g, float b, float a)
     

    Methods inherited from class com.badlogic.gdx.scenes.scene2d.ui.Image Link icon

    draw, getAlign, getDrawable, getImageHeight, getImageWidth, getImageX, getImageY, getMinHeight, getMinWidth, getPrefHeight, getPrefWidth, layout, setAlign, setDrawable, setDrawable, setScaling, toString

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

    getMaxHeight, getMaxWidth, invalidate, invalidateHierarchy, needsLayout, pack, setFillParent, setLayoutEnabled, sizeChanged, validate

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

    act, addAction, addCaptureListener, addListener, ancestorsVisible, ascendantsVisible, clear, clearActions, clearListeners, clipBegin, clipBegin, clipEnd, debug, drawDebug, drawDebugBounds, 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, positionChanged, remove, removeAction, removeCaptureListener, removeListener, rotateBy, rotationChanged, scaleBy, scaleBy, scaleChanged, screenToLocalCoordinates, setBounds, setColor, setColor, setDebug, setHeight, setName, setOrigin, setOrigin, setOriginX, setOriginY, setParent, setPosition, setPosition, setRotation, setScale, setScale, setScaleX, setScaleY, setSize, setStage, setTouchable, setUserObject, setVisible, setWidth, setX, setX, setY, setY, setZIndex, sizeBy, sizeBy, stageToLocalCoordinates, toBack, toFront

    Methods inherited from class java.lang.Object Link icon

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details Link icon

    • stage Link icon

      protected com.badlogic.gdx.scenes.scene2d.Stage stage
    • skin Link icon

      protected com.badlogic.gdx.scenes.scene2d.ui.Skin skin
    • newColorRunnable Link icon

      protected Runnable newColorRunnable
    • newColormapRunnable Link icon

      protected Runnable newColormapRunnable
    • color Link icon

      protected float[] color
    • name Link icon

      protected String name
  • Constructor Details Link icon

    • ColorPickerAbstract Link icon

      protected ColorPickerAbstract(String name, com.badlogic.gdx.scenes.scene2d.Stage stage, com.badlogic.gdx.scenes.scene2d.ui.Skin skin)
  • Method Details Link icon

    • initialize Link icon

      protected abstract void initialize()
    • initColor Link icon

      protected void initColor()
    • getPickedColor Link icon

      public float[] getPickedColor()
    • setPickedColor Link icon

      public void setPickedColor(float[] rgba)
    • getPickedColorDouble Link icon

      public double[] getPickedColorDouble()
    • setPickedColor Link icon

      public void setPickedColor(float r, float g, float b, float a)