This commit is contained in:
GoToLoop 2016-07-11 08:18:04 +00:00 committed by GitHub
commit fc4117ebbf
6 changed files with 13 additions and 12 deletions

View File

@ -1,5 +1,3 @@
package controlP5;
/**
* controlP5 is a processing gui library.
*
@ -25,12 +23,14 @@ package controlP5;
*
*/
package controlP5;
import processing.core.PGraphics;
/**
* The CDrawable interface is used to draw controllers, primarily for internal use.
*/
public interface CDrawable {
@FunctionalInterface public interface CDrawable {
public void draw( PGraphics theGraphics );

View File

@ -34,7 +34,7 @@ package controlP5;
* @example use/ControlP5callback
* @see controlP5.ControlP5#addCallback(CallbackListener)
*/
public interface CallbackListener {
@FunctionalInterface public interface CallbackListener {
public void controlEvent( CallbackEvent theEvent );

View File

@ -25,7 +25,8 @@ package controlP5;
*
*/
public interface ControlKey {
@FunctionalInterface public interface ControlKey {
public void keyEvent();
}

View File

@ -34,7 +34,7 @@ package controlP5;
*
* @example use/ControlP5listenerForSingleController
*/
public interface ControlListener {
@FunctionalInterface public interface ControlListener {
/**
* controlEvent is called by controlP5's ControlBroadcaster to inform available listeners about

View File

@ -1,5 +1,3 @@
package controlP5;
/**
* controlP5 is a processing gui library.
*
@ -25,6 +23,8 @@ package controlP5;
*
*/
package controlP5;
import processing.core.PApplet;
import processing.core.PFont;
import processing.core.PGraphics;
@ -35,7 +35,7 @@ import processing.event.KeyEvent;
* The ControllerInterface is inherited by all ControllerGroup and Controller classes.
*
*/
public interface ControllerInterface< T > {
public interface ControllerInterface< T extends ControllerInterface< T > > {
@ControlP5.Invisible public void init( );

View File

@ -1,5 +1,3 @@
package controlP5;
/**
* controlP5 is a processing gui library.
*
@ -25,6 +23,8 @@ package controlP5;
*
*/
package controlP5;
import processing.core.PGraphics;
/**
@ -35,7 +35,7 @@ import processing.core.PGraphics;
*
* @example use/ControlP5customDisplay
*/
public interface ControllerView< T > {
@FunctionalInterface public interface ControllerView< T extends ControllerView< T > > {
/**
* draws your custom controllers. display() will be called by a controller's draw() function and