Package org.ngengine.gui.components
Class NQrViewer
java.lang.Object
com.jme3.scene.Spatial
com.jme3.scene.Node
com.simsilica.lemur.Panel
com.simsilica.lemur.Container
org.ngengine.gui.components.NQrViewer
- All Implemented Interfaces:
HasLocalTransform
,CloneableSmartAsset
,Collidable
,Savable
,JmeCloneable
,GuiControlListener
,GuiUpdateListener
,MouseListener
,Cloneable
public class NQrViewer
extends Container
implements GuiControlListener, GuiUpdateListener, MouseListener
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.jme3.scene.Spatial
Spatial.BatchHint, Spatial.CullHint, Spatial.DFSMode
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final QuadBackgroundComponent
protected ColorRGBA
static final String
protected NQrViewer.ErrorCorrectionLevel
protected Container
protected boolean
protected Label
protected ColorRGBA
protected Container
protected int
protected int
protected boolean
protected boolean
protected String
Fields inherited from class com.simsilica.lemur.Panel
EFFECT_CLOSE, EFFECT_OPEN, LAYER_BACKGROUND, LAYER_BORDER, LAYER_INSETS
Fields inherited from class com.jme3.scene.Spatial
batchHint, 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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
focusGained
(GuiControl source) void
focusLost
(GuiControl source) int
int
getValue()
void
guiUpdate
(GuiControl source, float tpf) protected void
boolean
isSecret()
boolean
isShown()
void
mouseButtonEvent
(MouseButtonEvent event, Spatial target, Spatial capture) void
mouseEntered
(MouseMotionEvent event, Spatial target, Spatial capture) void
mouseExited
(MouseMotionEvent event, Spatial target, Spatial capture) void
mouseMoved
(MouseMotionEvent event, Spatial target, Spatial capture) protected void
repaint()
void
reshape
(GuiControl source, Vector3f pos, Vector3f size) void
setClickAction
(Consumer<String> action) void
setCopyAction
(Consumer<String> action) void
setDarkPixelsColor
(ColorRGBA color) void
setErrorCorrectionLevel
(NQrViewer.ErrorCorrectionLevel errorCorrectionLevel) void
setIsSecret
(boolean secret) void
void
setLabelHAlignment
(HAlignment alignment) void
setLabelVAlignment
(VAlignment alignment) void
setLightPixelsColor
(ColorRGBA color) void
setQrPreferredSize
(int qrPreferredSize) void
setQrSize
(int qrSize) void
protected Image
Methods inherited from class com.simsilica.lemur.Container
addChild, clearChildren, detachChildAt, getLayout, initializeDefaultStyles, removeChild, setLayout, toString
Methods inherited from class com.simsilica.lemur.Panel
addEffect, addMouseListener, getAlpha, getBackground, getBorder, getEffectControl, getEffects, getElementId, getInsets, getInsetsComponent, getPreferredSize, getSize, getStyle, hasEffect, removeEffect, removeMouseListener, runEffect, setAlpha, setAlpha, setBackground, setBorder, setChildAlpha, setEffects, setInsets, setInsetsComponent, setPreferredSize, setSize
Methods inherited from class com.jme3.scene.Node
attachChild, attachChildAt, breadthFirstTraversal, clone, cloneFields, collideWith, deepClone, depthFirstTraversal, descendantMatches, descendantMatches, descendantMatches, detachAllChildren, detachChild, detachChildNamed, getChild, getChild, getChildIndex, getChildren, getQuantity, getTriangleCount, getVertexCount, hasChild, oldDeepClone, read, setLightListRefresh, setLodLevel, setMaterial, setMatParamOverrideRefresh, setModelBound, setParent, setTransformRefresh, swapChildren, updateGeometricState, updateLogicalState, updateModelBound, updateWorldBound, write
Methods inherited from class com.jme3.scene.Spatial
addControl, addControlAt, addLight, addMatParamOverride, breadthFirstTraversal, center, checkCulling, clearMatParamOverrides, clone, depthFirstTraversal, 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, worldToLocal
-
Field Details
-
ELEMENT_ID
- See Also:
-
value
-
secret
protected boolean secret -
show
protected boolean show -
errorCorrectionLevel
-
background
-
lightColor
-
darkPixelsColor
-
label
-
invalidated
protected boolean invalidated -
iconBar
-
qrCode
-
qrSize
protected int qrSize -
qrPreferredSize
protected int qrPreferredSize -
copyAction
-
clickAction
-
-
Constructor Details
-
NQrViewer
public NQrViewer() -
NQrViewer
-
-
Method Details
-
setQrSize
public void setQrSize(int qrSize) -
getQrSize
public int getQrSize() -
setQrPreferredSize
public void setQrPreferredSize(int qrPreferredSize) -
getQrPreferredSize
public int getQrPreferredSize() -
setLabel
-
setLabelHAlignment
-
setLabelVAlignment
-
setCopyAction
-
setClickAction
-
setLightPixelsColor
@StyleAttribute(value="lightPixelsColor", lookupDefault=false) public void setLightPixelsColor(ColorRGBA color) -
setDarkPixelsColor
@StyleAttribute(value="darkPixelsColor", lookupDefault=false) public void setDarkPixelsColor(ColorRGBA color) -
setErrorCorrectionLevel
-
isSecret
public boolean isSecret() -
setIsSecret
public void setIsSecret(boolean secret) -
setValue
-
getValue
-
invalidate
protected void invalidate() -
repaint
protected void repaint() -
isShown
public boolean isShown() -
toImage
-
reshape
- Specified by:
reshape
in interfaceGuiControlListener
-
focusGained
- Specified by:
focusGained
in interfaceGuiControlListener
-
focusLost
- Specified by:
focusLost
in interfaceGuiControlListener
-
guiUpdate
- Specified by:
guiUpdate
in interfaceGuiUpdateListener
-
mouseButtonEvent
- Specified by:
mouseButtonEvent
in interfaceMouseListener
-
mouseEntered
- Specified by:
mouseEntered
in interfaceMouseListener
-
mouseExited
- Specified by:
mouseExited
in interfaceMouseListener
-
mouseMoved
- Specified by:
mouseMoved
in interfaceMouseListener
-