aboutsummaryrefslogtreecommitdiffstats
path: root/src/graphui/classes/com/jogamp/graph
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-09-26 04:45:28 +0200
committerSven Gothel <[email protected]>2023-09-26 04:45:28 +0200
commit5f876580500471531dc6973eda7eb4d9878b871d (patch)
treef3bc9f67d603ebe50ec38dcdf477ab189c762ced /src/graphui/classes/com/jogamp/graph
parente5eadcdaa615dbeb762885b50435a1f79d6ca895 (diff)
GraphUI: Mark some more methods final in Shape + GraphShape
Diffstat (limited to 'src/graphui/classes/com/jogamp/graph')
-rw-r--r--src/graphui/classes/com/jogamp/graph/ui/GraphShape.java4
-rw-r--r--src/graphui/classes/com/jogamp/graph/ui/Shape.java6
2 files changed, 5 insertions, 5 deletions
diff --git a/src/graphui/classes/com/jogamp/graph/ui/GraphShape.java b/src/graphui/classes/com/jogamp/graph/ui/GraphShape.java
index 333b1c150..856a0fe3c 100644
--- a/src/graphui/classes/com/jogamp/graph/ui/GraphShape.java
+++ b/src/graphui/classes/com/jogamp/graph/ui/GraphShape.java
@@ -196,7 +196,7 @@ public abstract class GraphShape extends Shape {
* @param indexCount the initial {@link GLRegion} index buffer size
* @see #resetGLRegion(GLProfile, GL2ES2, TextureSequence, OutlineShape)
*/
- protected void resetGLRegion(final GLProfile glp, final GL2ES2 gl, final TextureSequence colorTexSeq, int vertexCount, int indexCount) {
+ protected final void resetGLRegion(final GLProfile glp, final GL2ES2 gl, final TextureSequence colorTexSeq, int vertexCount, int indexCount) {
if( hasBorder() ) {
vertexCount += 8;
indexCount += 24;
@@ -221,7 +221,7 @@ public abstract class GraphShape extends Shape {
* @param shape the {@link OutlineShape} used to determine {@link GLRegion}'s buffer sizes via {@link Region#countOutlineShape(OutlineShape, int[])}
* @see #resetGLRegion(GLProfile, GL2ES2, TextureSequence, int, int)
*/
- protected void resetGLRegion(final GLProfile glp, final GL2ES2 gl, final TextureSequence colorTexSeq, final OutlineShape shape) {
+ protected final void resetGLRegion(final GLProfile glp, final GL2ES2 gl, final TextureSequence colorTexSeq, final OutlineShape shape) {
final int[/*2*/] vertIndexCount = Region.countOutlineShape(shape, new int[2]);
resetGLRegion(glp, gl, colorTexSeq, vertIndexCount[0], vertIndexCount[1]);
}
diff --git a/src/graphui/classes/com/jogamp/graph/ui/Shape.java b/src/graphui/classes/com/jogamp/graph/ui/Shape.java
index 77fffc158..e115e1088 100644
--- a/src/graphui/classes/com/jogamp/graph/ui/Shape.java
+++ b/src/graphui/classes/com/jogamp/graph/ui/Shape.java
@@ -1007,11 +1007,11 @@ public abstract class Shape {
* @see #winToShapeCoord(PMVMatrix4f, Recti, int, int, float[])
* @see #winToShapeCoord(com.jogamp.graph.ui.Scene.PMVMatrixSetup, Recti, int, int, PMVMatrix4f, float[])
*/
- public Vec3f winToShapeCoord(final Scene scene, final int glWinX, final int glWinY, final PMVMatrix4f pmv, final Vec3f objPos) {
+ public final Vec3f winToShapeCoord(final Scene scene, final int glWinX, final int glWinY, final PMVMatrix4f pmv, final Vec3f objPos) {
return this.winToShapeCoord(scene.getPMVMatrixSetup(), scene.getViewport(), glWinX, glWinY, pmv, objPos);
}
- public Vec4f getColor() { return rgbaColor; }
+ public final Vec4f getColor() { return rgbaColor; }
/**
* Set base color.
@@ -1083,7 +1083,7 @@ public abstract class Shape {
return this;
}
- public Vec4f getBorderColor() { return borderColor; }
+ public final Vec4f getBorderColor() { return borderColor; }
/**
* Set border color.