summaryrefslogtreecommitdiffstats
path: root/src/graphui/classes/com/jogamp
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-03-20 20:48:44 +0100
committerSven Gothel <[email protected]>2023-03-20 20:48:44 +0100
commit118d754af34d6d475600e6747e01e950a6cf77cf (patch)
treebf9f1f1aa92227dc98de5eb071ca718fef454e56 /src/graphui/classes/com/jogamp
parent9a9309c7bf2b5edc27b5f84bee547c5bf0539010 (diff)
GraphUI Shape: Provide empty default implementation for clearImpl() and destroyImpl()
Diffstat (limited to 'src/graphui/classes/com/jogamp')
-rw-r--r--src/graphui/classes/com/jogamp/graph/ui/gl/Shape.java6
-rw-r--r--src/graphui/classes/com/jogamp/graph/ui/gl/shapes/CrossHair.java8
-rw-r--r--src/graphui/classes/com/jogamp/graph/ui/gl/shapes/Label.java8
-rw-r--r--src/graphui/classes/com/jogamp/graph/ui/gl/shapes/Rectangle.java8
-rw-r--r--src/graphui/classes/com/jogamp/graph/ui/gl/shapes/RoundButton.java8
5 files changed, 4 insertions, 34 deletions
diff --git a/src/graphui/classes/com/jogamp/graph/ui/gl/Shape.java b/src/graphui/classes/com/jogamp/graph/ui/gl/Shape.java
index 9f39564ea..7928d09f4 100644
--- a/src/graphui/classes/com/jogamp/graph/ui/gl/Shape.java
+++ b/src/graphui/classes/com/jogamp/graph/ui/gl/Shape.java
@@ -1137,8 +1137,10 @@ public abstract class Shape {
//
//
- protected abstract void clearImpl(GL2ES2 gl, RegionRenderer renderer);
- protected abstract void destroyImpl(GL2ES2 gl, RegionRenderer renderer);
+ protected void clearImpl(final GL2ES2 gl, final RegionRenderer renderer) { }
+
+ protected void destroyImpl(final GL2ES2 gl, final RegionRenderer renderer) { }
+
protected abstract void addShapeToRegion();
//
diff --git a/src/graphui/classes/com/jogamp/graph/ui/gl/shapes/CrossHair.java b/src/graphui/classes/com/jogamp/graph/ui/gl/shapes/CrossHair.java
index 62c76d2b2..1d2df261e 100644
--- a/src/graphui/classes/com/jogamp/graph/ui/gl/shapes/CrossHair.java
+++ b/src/graphui/classes/com/jogamp/graph/ui/gl/shapes/CrossHair.java
@@ -62,14 +62,6 @@ public class CrossHair extends Shape {
}
@Override
- protected void clearImpl(final GL2ES2 gl, final RegionRenderer renderer) {
- }
-
- @Override
- protected void destroyImpl(final GL2ES2 gl, final RegionRenderer renderer) {
- }
-
- @Override
protected void addShapeToRegion() {
final OutlineShape shape = new OutlineShape(vertexFactory);
diff --git a/src/graphui/classes/com/jogamp/graph/ui/gl/shapes/Label.java b/src/graphui/classes/com/jogamp/graph/ui/gl/shapes/Label.java
index 534f9b292..5e1f88df9 100644
--- a/src/graphui/classes/com/jogamp/graph/ui/gl/shapes/Label.java
+++ b/src/graphui/classes/com/jogamp/graph/ui/gl/shapes/Label.java
@@ -132,14 +132,6 @@ public class Label extends Shape {
return GLRegion.create(glp, getRenderModes(), null, font, text);
}
- @Override
- protected void clearImpl(final GL2ES2 gl, final RegionRenderer renderer) {
- }
-
- @Override
- protected void destroyImpl(final GL2ES2 gl, final RegionRenderer renderer) {
- }
-
private final OutlineShape.Visitor shapeVisitor = new OutlineShape.Visitor() {
@Override
public void visit(final OutlineShape shape, final AffineTransform t) {
diff --git a/src/graphui/classes/com/jogamp/graph/ui/gl/shapes/Rectangle.java b/src/graphui/classes/com/jogamp/graph/ui/gl/shapes/Rectangle.java
index 2c9ec53a0..391390bea 100644
--- a/src/graphui/classes/com/jogamp/graph/ui/gl/shapes/Rectangle.java
+++ b/src/graphui/classes/com/jogamp/graph/ui/gl/shapes/Rectangle.java
@@ -62,14 +62,6 @@ public class Rectangle extends Shape {
}
@Override
- protected void clearImpl(final GL2ES2 gl, final RegionRenderer renderer) {
- }
-
- @Override
- protected void destroyImpl(final GL2ES2 gl, final RegionRenderer renderer) {
- }
-
- @Override
protected void addShapeToRegion() {
final OutlineShape shape = new OutlineShape(vertexFactory);
diff --git a/src/graphui/classes/com/jogamp/graph/ui/gl/shapes/RoundButton.java b/src/graphui/classes/com/jogamp/graph/ui/gl/shapes/RoundButton.java
index e8636f41e..aa8aabbdb 100644
--- a/src/graphui/classes/com/jogamp/graph/ui/gl/shapes/RoundButton.java
+++ b/src/graphui/classes/com/jogamp/graph/ui/gl/shapes/RoundButton.java
@@ -58,14 +58,6 @@ public abstract class RoundButton extends Shape {
this.height = height;
}
- @Override
- protected void clearImpl(final GL2ES2 gl, final RegionRenderer renderer) {
- }
-
- @Override
- protected void destroyImpl(final GL2ES2 gl, final RegionRenderer renderer) {
- }
-
public final float getWidth() { return width; }
public final float getHeight() { return height; }