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.EventInfo, Shape.Listener, Shape.ListenerBool, Shape.MouseGestureAdapter, Shape.MouseGestureListener, Shape.Visitor1, Shape.Visitor2
-
-
Field Summary
-
Fields inherited from class com.jogamp.graph.ui.Shape
ZAscendingComparator
-
-
Constructor Summary
Constructors Constructor Description GraphShape(int renderModes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getQuality()
Return the shape's GraphRegion
's quality parameter.int
getRenderModes()
Return Graph'sRegion
render modes, seecreate(..)
.float
getSharpness()
Return the shape's GraphOutlineShape
's sharpness value.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, int[], float[])
.GraphShape
setQuality(int q)
Sets the shape's GraphRegion
's quality parameter.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
addMouseListener, clear, destroy, draw, drawToSelect, getBorderColor, getBorderThickness, getBounds, getBounds, getColor, getName, getPadding, getPixelPerShapeUnit, getPixelPerShapeUnit, getPosition, getRotation, getRotationPivot, getScale, getScaledHeight, getScaledWidth, getSubString, getSurfacePort, getSurfaceSize, getSurfaceSize, getSurfaceSize, hasBorder, hasPadding, isDraggable, isEnabled, isInteractive, isPressed, isResizable, isToggleable, isToggleOn, markShapeDirty, markStateDirty, move, move, moveTo, moveTo, onClicked, onInit, onMove, onToggle, removeMouseListener, scale, setBorder, setBorderColor, setBorderColor, setColor, setColor, setDragAndResizeable, setDraggable, setEnabled, setInteractive, setName, setPaddding, setPressed, setPressedColorMod, setResizable, setRotationPivot, setRotationPivot, setScale, setToggle, setToggleable, setToggleOffColorMod, setToggleOnColorMod, setTransform, shapeToWinCoord, shapeToWinCoord, shapeToWinCoord, toggle, toString, validate, validate, winToShapeCoord, winToShapeCoord, winToShapeCoord
-
-
-
-
Constructor Detail
-
GraphShape
public GraphShape(int renderModes)
- Parameters:
renderModes
- Graph'sRegion
render modes, seecreate(..)
.
-
-
Method Detail
-
getRenderModes
public final int getRenderModes()
Return Graph'sRegion
render modes, seecreate(..)
.
-
setQuality
public final GraphShape setQuality(int q)
Sets the shape's GraphRegion
's quality parameter. Default isRegion.MAX_QUALITY
.- Parameters:
q
- GraphRegion
's quality parameter, default isRegion.MAX_QUALITY
.- Returns:
- this shape for chaining.
-
setTextureUnit
public void setTextureUnit(int pass2TexUnit)
Set the 2nd pass texture unit.
-
getQuality
public final int getQuality()
Return the shape's GraphRegion
's quality parameter.- See Also:
setQuality(int)
-
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, int[], float[])
. Otherwise the base color will be modulated and passed to#drawImpl0(GL2ES2, RegionRenderer, int[], float[])
.- Specified by:
hasColorChannel
in classShape
-
-