public class ColorChooser
extends com.simsilica.lemur.Panel
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
BRIGHTNESS_ID |
static java.lang.String |
COLORS_ID |
static java.lang.String |
CONTAINER_ID |
static com.jme3.texture.Texture2D |
defaultTexture |
static java.lang.String |
ELEMENT_ID |
static java.lang.String |
VALUE_ID |
EFFECT_CLOSE, EFFECT_OPEN, LAYER_BACKGROUND, LAYER_BORDER, LAYER_INSETSbatchHint, controls, cullHint, frustrumIntersects, key, localLights, localOverrides, localTransform, name, parent, queueBucket, queueDistance, refreshFlags, RF_BOUND, RF_CHILD_LIGHTLIST, RF_LIGHTLIST, RF_MATPARAM_OVERRIDE, RF_TRANSFORM, shadowMode, userData, worldBound, worldLights, worldOverrides, worldTransform| Modifier | Constructor and Description |
|---|---|
|
ColorChooser() |
protected |
ColorChooser(boolean applyStyles,
com.simsilica.lemur.core.VersionedObject<com.jme3.math.ColorRGBA> model,
com.simsilica.lemur.style.ElementId elementId,
java.lang.String style) |
|
ColorChooser(com.simsilica.lemur.style.ElementId elementId,
java.lang.String style) |
|
ColorChooser(java.lang.String style) |
| Modifier and Type | Method and Description |
|---|---|
com.jme3.math.ColorRGBA |
getColor() |
com.simsilica.lemur.core.VersionedObject<com.jme3.math.ColorRGBA> |
getModel() |
void |
setColor(com.jme3.math.ColorRGBA color) |
void |
setModel(com.simsilica.lemur.core.VersionedObject<com.jme3.math.ColorRGBA> model) |
protected static com.jme3.math.ColorRGBA |
toJmeColor(java.awt.Color clr) |
protected void |
updateBrightness() |
protected void |
updateColorView() |
protected void |
updateColorView(float h,
float s,
float v) |
void |
updateLogicalState(float tpf) |
protected void |
updateModelValue(float h,
float s,
float b) |
addEffect, addMouseListener, getAlpha, getBackground, getBorder, getEffectControl, getEffects, getElementId, getInsets, getInsetsComponent, getPreferredSize, getSize, getStyle, hasEffect, initializeDefaultStyles, removeEffect, removeMouseListener, runEffect, setAlpha, setAlpha, setBackground, setBorder, setChildAlpha, setEffects, setInsets, setInsetsComponent, setPreferredSize, setSize, toStringattachChild, attachChildAt, breadthFirstTraversal, clone, cloneFields, collideWith, deepClone, depthFirstTraversal, descendantMatches, descendantMatches, descendantMatches, detachAllChildren, detachChild, detachChildAt, detachChildNamed, getChild, getChild, getChildIndex, getChildren, getQuantity, getTriangleCount, getVertexCount, hasChild, oldDeepClone, read, setLightListRefresh, setLodLevel, setMaterial, setMatParamOverrideRefresh, setModelBound, setParent, setTransformRefresh, swapChildren, updateGeometricState, updateModelBound, updateWorldBound, writeaddControl, addLight, addMatParamOverride, breadthFirstTraversal, center, checkCulling, clearMatParamOverrides, clone, forceRefresh, getBatchHint, getControl, getControl, getCullHint, getKey, getLastFrustumIntersection, getLocalBatchHint, getLocalCullHint, getLocalLightList, getLocalMatParamOverrides, getLocalQueueBucket, getLocalRotation, getLocalScale, getLocalShadowMode, getLocalToWorldMatrix, getLocalTransform, getLocalTranslation, getName, getNumControls, getParent, getQueueBucket, getShadowMode, getUserData, getUserDataKeys, getWorldBound, getWorldLightList, getWorldMatParamOverrides, getWorldRotation, getWorldScale, getWorldTransform, getWorldTranslation, hasAncestor, jmeClone, localToWorld, lookAt, matches, move, move, oldClone, removeControl, removeControl, removeFromParent, removeLight, removeMatParamOverride, rotate, rotate, rotateUpTo, runControlRender, scale, scale, setBatchHint, setBoundRefresh, setCullHint, setKey, setLastFrustumIntersection, setLocalRotation, setLocalRotation, setLocalScale, setLocalScale, setLocalScale, setLocalTransform, setLocalTranslation, setLocalTranslation, setName, setQueueBucket, setRequiresUpdates, setShadowMode, setUserData, updateMatParamOverrides, updateWorldLightList, updateWorldTransforms, worldToLocalpublic static final java.lang.String ELEMENT_ID
public static final java.lang.String CONTAINER_ID
public static final java.lang.String COLORS_ID
public static final java.lang.String BRIGHTNESS_ID
public static final java.lang.String VALUE_ID
public static final com.jme3.texture.Texture2D defaultTexture
public ColorChooser()
public ColorChooser(java.lang.String style)
public ColorChooser(com.simsilica.lemur.style.ElementId elementId,
java.lang.String style)
protected ColorChooser(boolean applyStyles,
com.simsilica.lemur.core.VersionedObject<com.jme3.math.ColorRGBA> model,
com.simsilica.lemur.style.ElementId elementId,
java.lang.String style)
public void setModel(com.simsilica.lemur.core.VersionedObject<com.jme3.math.ColorRGBA> model)
public com.simsilica.lemur.core.VersionedObject<com.jme3.math.ColorRGBA> getModel()
public void setColor(com.jme3.math.ColorRGBA color)
public com.jme3.math.ColorRGBA getColor()
public void updateLogicalState(float tpf)
updateLogicalState in class com.jme3.scene.Nodeprotected void updateModelValue(float h,
float s,
float b)
protected void updateBrightness()
protected static com.jme3.math.ColorRGBA toJmeColor(java.awt.Color clr)
protected void updateColorView()
protected void updateColorView(float h,
float s,
float v)