From 5f876580500471531dc6973eda7eb4d9878b871d Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Tue, 26 Sep 2023 04:45:28 +0200 Subject: GraphUI: Mark some more methods final in Shape + GraphShape --- src/graphui/classes/com/jogamp/graph/ui/GraphShape.java | 4 ++-- src/graphui/classes/com/jogamp/graph/ui/Shape.java | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src') 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. -- cgit v1.2.3