Package com.jogamp.graph.ui.shapes
Class TexSeqButton
- java.lang.Object
-
- com.jogamp.graph.ui.Shape
-
- com.jogamp.graph.ui.GraphShape
-
- com.jogamp.graph.ui.shapes.BaseButton
-
- com.jogamp.graph.ui.shapes.TexSeqButton
-
- Direct Known Subclasses:
GLButton
,ImageButton
,MediaButton
public abstract class TexSeqButton extends BaseButton
An abstract GraphUITextureSequence
BaseButton
GraphShape
.GraphUI is GPU based and resolution independent.
This button is rendered with a round oval shape. To render it rectangular,
BaseButton.setCorner(float)
to zero.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.jogamp.graph.ui.Shape
Shape.DrawListener, Shape.EventInfo, Shape.ForwardKeyListener, Shape.ForwardMouseListener, Shape.Listener, Shape.MouseGestureAdapter, Shape.MouseGestureListener, Shape.MoveListener, Shape.PointerListener, Shape.Visitor1, Shape.Visitor2
-
-
Field Summary
-
Fields inherited from class com.jogamp.graph.ui.shapes.BaseButton
PERP_CORNER, ROUND_CORNER
-
Fields inherited from class com.jogamp.graph.ui.Shape
ZAscendingComparator, ZDescendingComparator
-
-
Constructor Summary
Constructors Constructor Description TexSeqButton(int renderModes, float width, float height, TextureSequence texSeq)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.jogamp.math.Vec4f
getARatioLetterboxBackColor()
TextureSequence
getTextureSequence()
TexSeqButton
setARatioAdjustment(boolean v)
TexSeqButton
setARatioLetterbox(boolean v, com.jogamp.math.Vec4f backColor)
boolean
useARatioAdjustment()
boolean
useARatioLetterbox()
-
Methods inherited from class com.jogamp.graph.ui.shapes.BaseButton
getCorner, getHeight, getSubString, getWidth, setCorner, setPerp, setSize
-
Methods inherited from class com.jogamp.graph.ui.GraphShape
getRegion, getRenderModes, getRenderModesReq, getSharpness, hasColorChannel, setSharpness, setTextureUnit
-
Methods inherited from class com.jogamp.graph.ui.Shape
addActivationListener, addKeyListener, addMouseListener, applyMatToMv, clear, destroy, draw, drawToSelect, getActiveColorMod, getAdjustedZ, getBorderColor, getBorderThickness, getBounds, getBounds, getColor, getID, getMat, getMat, getName, getPadding, getParent, getPixelPerShapeUnit, getPixelPerShapeUnit, getPixelPerShapeUnit, getPosition, getPressedColorMod, getRotation, getRotationPivot, getScale, getScaledDepth, getScaledHeight, getScaledWidth, getSurfacePort, getSurfaceSize, getSurfaceSize, getSurfaceSize, getToggleOffColorMod, getToggleOnColorMod, getTooltip, hasBorder, hasPadding, isActivable, isActive, isDiscarded, isDraggable, isFixedARatioResize, isGroup, isInteractive, isMatIdentity, isPressed, isResizable, isToggleable, isToggleOn, isVisible, markShapeDirty, markStateDirty, move, move, moveTo, moveTo, onClicked, onDraw, onHover, onMove, onToggle, receiveKeyEvents, receiveMouseEvents, removeActivationListener, removeKeyListener, removeMouseListener, removeToolTip, runSynced, scale, scale, setActivable, setActiveColorMod, setBorder, setBorderColor, setBorderColor, setColor, setColor, setDiscarded, setDragAndResizable, setDraggable, setFixedARatioResize, setID, setInteractive, setName, setPaddding, setPMVMatrix, setPMVMatrix, setPressed, setPressedColorMod, setResizable, setRotation, setRotationPivot, setRotationPivot, setScale, setScale, setToggle, setToggleable, setToggleOffColorMod, setToggleOnColorMod, setToolTip, setVisible, shapeToWinCoord, shapeToWinCoord, shapeToWinCoord, toggle, toString, updateMat, validate, validate, validate, winToShapeCoord, winToShapeCoord, winToShapeCoord
-
-
-
-
Constructor Detail
-
TexSeqButton
public TexSeqButton(int renderModes, float width, float height, TextureSequence texSeq)
-
-
Method Detail
-
getTextureSequence
public final TextureSequence getTextureSequence()
-
setARatioAdjustment
public TexSeqButton setARatioAdjustment(boolean v)
- Returns:
- this instance for chaining
-
useARatioAdjustment
public boolean useARatioAdjustment()
-
setARatioLetterbox
public TexSeqButton setARatioLetterbox(boolean v, com.jogamp.math.Vec4f backColor)
- Parameters:
v
- new value foruseARatioLetterbox()
backColor
- optional background color for added letter-box space, defaults to transparent zero- Returns:
- this instance for chaining
-
useARatioLetterbox
public boolean useARatioLetterbox()
-
getARatioLetterboxBackColor
public com.jogamp.math.Vec4f getARatioLetterboxBackColor()
-
-