aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulien Gouesse <[email protected]>2018-01-27 13:27:05 +0100
committerJulien Gouesse <[email protected]>2018-01-27 13:27:05 +0100
commit2c0388a46b349bc49bc54ffd4963bd0564c714dd (patch)
treecc4341b8a6cdcf445796cd994b6c96524abbc6b1
parent6e223bbb1e7ed1906b84d16dc1bd77a0fc3c7608 (diff)
Fixes some warnings
-rw-r--r--ardor3d-examples/src/main/java/com/ardor3d/example/renderer/BillboardNodeZExample.java1
-rw-r--r--ardor3d-extras/src/main/java/com/ardor3d/extension/interact/widget/BasicFilterList.java9
-rw-r--r--ardor3d-ui/src/main/java/com/ardor3d/extension/ui/UIPieMenuItem.java1
3 files changed, 11 insertions, 0 deletions
diff --git a/ardor3d-examples/src/main/java/com/ardor3d/example/renderer/BillboardNodeZExample.java b/ardor3d-examples/src/main/java/com/ardor3d/example/renderer/BillboardNodeZExample.java
index 01063be..ef21b6b 100644
--- a/ardor3d-examples/src/main/java/com/ardor3d/example/renderer/BillboardNodeZExample.java
+++ b/ardor3d-examples/src/main/java/com/ardor3d/example/renderer/BillboardNodeZExample.java
@@ -118,6 +118,7 @@ public class BillboardNodeZExample extends ExampleBase {
}
_logicalLayer.registerTrigger(new InputTrigger(new KeyPressedCondition(Key.SPACE), new TriggerAction() {
+ @Override
public void perform(final Canvas source, final TwoInputStates inputStates, final double tpf) {
int ordinal = billboards[0].getAlignment().ordinal() + 1;
if (ordinal > BillboardAlignment.values().length - 1) {
diff --git a/ardor3d-extras/src/main/java/com/ardor3d/extension/interact/widget/BasicFilterList.java b/ardor3d-extras/src/main/java/com/ardor3d/extension/interact/widget/BasicFilterList.java
index 75f3364..517c823 100644
--- a/ardor3d-extras/src/main/java/com/ardor3d/extension/interact/widget/BasicFilterList.java
+++ b/ardor3d-extras/src/main/java/com/ardor3d/extension/interact/widget/BasicFilterList.java
@@ -20,10 +20,12 @@ import com.ardor3d.extension.interact.filter.UpdateFilter;
public class BasicFilterList implements IFilterList {
final List<UpdateFilter> _filters = new ArrayList<>();
+ @Override
public Iterator<UpdateFilter> iterator() {
return _filters.iterator();
}
+ @Override
public void applyFilters(final InteractManager manager) {
// apply any filters to our state
for (final UpdateFilter filter : _filters) {
@@ -31,34 +33,41 @@ public class BasicFilterList implements IFilterList {
}
}
+ @Override
public void beginDrag(final InteractManager manager) {
for (final UpdateFilter filter : _filters) {
filter.beginDrag(manager);
}
}
+ @Override
public void endDrag(final InteractManager manager) {
for (final UpdateFilter filter : _filters) {
filter.endDrag(manager);
}
}
+ @Override
public int size() {
return _filters.size();
}
+ @Override
public UpdateFilter get(final int index) {
return _filters.get(index);
}
+ @Override
public boolean add(final UpdateFilter filter) {
return _filters.add(filter);
}
+ @Override
public boolean remove(final UpdateFilter filter) {
return _filters.remove(filter);
}
+ @Override
public void clear() {
_filters.clear();
}
diff --git a/ardor3d-ui/src/main/java/com/ardor3d/extension/ui/UIPieMenuItem.java b/ardor3d-ui/src/main/java/com/ardor3d/extension/ui/UIPieMenuItem.java
index b4eabda..03914e4 100644
--- a/ardor3d-ui/src/main/java/com/ardor3d/extension/ui/UIPieMenuItem.java
+++ b/ardor3d-ui/src/main/java/com/ardor3d/extension/ui/UIPieMenuItem.java
@@ -37,6 +37,7 @@ public class UIPieMenuItem extends UIMenuItem {
public UIPieMenuItem(final String text, final SubTex icon, final UIPieMenu subMenu, final int size) {
super(text, icon, false, null);
addActionListener(new ActionListener() {
+ @Override
public void actionPerformed(final ActionEvent event) {
showSubMenu(subMenu, size);
}