Package com.jogamp.graph.ui
Class GraphShape
- java.lang.Object
-
- com.jogamp.graph.ui.Shape
-
- com.jogamp.graph.ui.GraphShape
-
- Direct Known Subclasses:
BaseButton
,CrossHair
,GlyphShape
,Label
,Rectangle
public abstract class GraphShape extends Shape
Graph basedGLRegion
Shape
GraphUI is GPU based and resolution independent.
GraphUI is intended to become an immediate- and retained-mode API.
- See Also:
Scene
-
-
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.Shape
ZAscendingComparator, ZDescendingComparator
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GLRegion
getRegion()
int
getRenderModes()
Returns validated GraphRegion
render modes, seecreate(..)
.int
getRenderModesReq()
Returns requested GraphRegion
render modes, seecreate(..)
.float
getSharpness()
Return the shape's GraphOutlineShape
's sharpness value.String
getSubString()
boolean
hasColorChannel()
Returns true if implementation uses an extra color channel or texture which will be modulated with the passed rgba color#drawImpl0(GL2ES2, RegionRenderer, float[])
.GraphShape
setSharpness(float sharpness)
Sets the shape's GraphOutlineShape
's sharpness parameter.void
setTextureUnit(int pass2TexUnit)
Set the 2nd pass texture unit.-
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
-
-
-
-
Method Detail
-
getRenderModesReq
public final int getRenderModesReq()
Returns requested GraphRegion
render modes, seecreate(..)
.
-
getRenderModes
public final int getRenderModes()
Returns validated GraphRegion
render modes, seecreate(..)
.May differ from
getRenderModesReq()
, e.g. adding aRegion.COLORCHANNEL_RENDERING_BIT
forShape.hasBorder()
etc.Potentially modified during
Shape.validate(GL2ES2)
orShape.validate(GLProfile)
.
-
setTextureUnit
public void setTextureUnit(int pass2TexUnit)
Set the 2nd pass texture unit.
-
setSharpness
public final GraphShape setSharpness(float sharpness)
Sets the shape's GraphOutlineShape
's sharpness parameter. Default isOutlineShape.DEFAULT_SHARPNESS
. Method issuesShape.markShapeDirty()
.- Parameters:
sharpness
- GraphOutlineShape
's sharpness value, default isOutlineShape.DEFAULT_SHARPNESS
.- Returns:
- this shape for chaining.
-
getSharpness
public final float getSharpness()
Return the shape's GraphOutlineShape
's sharpness value.- See Also:
setSharpness(float)
-
hasColorChannel
public boolean hasColorChannel()
Description copied from class:Shape
Returns true if implementation uses an extra color channel or texture which will be modulated with the passed rgba color#drawImpl0(GL2ES2, RegionRenderer, float[])
. Otherwise the base color will be modulated and passed to#drawImpl0(GL2ES2, RegionRenderer, float[])
.- Specified by:
hasColorChannel
in classShape
-
getRegion
public GLRegion getRegion()
-
getSubString
public String getSubString()
- Overrides:
getSubString
in classShape
-
-