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 basedGLRegionShapeGraphUI 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 GLRegiongetRegion()intgetRenderModes()Returns validated GraphRegionrender modes, seecreate(..).intgetRenderModesReq()Returns requested GraphRegionrender modes, seecreate(..).floatgetSharpness()Return the shape's GraphOutlineShape's sharpness value.StringgetSubString()booleanhasColorChannel()Returns true if implementation uses an extra color channel or texture which will be modulated with the passed rgba color#drawImpl0(GL2ES2, RegionRenderer, float[]).GraphShapesetSharpness(float sharpness)Sets the shape's GraphOutlineShape's sharpness parameter.voidsetTextureUnit(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 GraphRegionrender modes, seecreate(..).
-
getRenderModes
public final int getRenderModes()
Returns validated GraphRegionrender modes, seecreate(..).May differ from
getRenderModesReq(), e.g. adding aRegion.COLORCHANNEL_RENDERING_BITforShape.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:ShapeReturns 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:
hasColorChannelin classShape
-
getRegion
public GLRegion getRegion()
-
getSubString
public String getSubString()
- Overrides:
getSubStringin classShape
-
-