SPAOP
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
wonderjuce::ComponentWithFocusPoint Class Referenceabstract

An abstract class extending juce::Component, adding methods to query a "focus point". More...

#include <ComponentWithFocusPoint.h>

Inheritance diagram for wonderjuce::ComponentWithFocusPoint:
Inheritance graph
[legend]
Collaboration diagram for wonderjuce::ComponentWithFocusPoint:
Collaboration graph
[legend]

Public Member Functions

 ComponentWithFocusPoint (const String &componentName=String::empty)
 Constructor. More...
 
virtual ~ComponentWithFocusPoint ()
 Destructor. More...
 
virtual Point< float > getFocusPoint ()=0
 Returns the "focus point", the point where this component shall be auto-centered (for example, when it is zoomed into). More...
 
virtual float getFocusPointX ()=0
 Returns the x-coordinate of the "focus point". More...
 
virtual float getFocusPointY ()=0
 Returns the y-coordinate of the "focus point". More...
 

Detailed Description

An abstract class extending juce::Component, adding methods to query a "focus point".

The focus point is the point of the component where a ZoomPort shall zoom to when it zooms in.

Constructor & Destructor Documentation

wonderjuce::ComponentWithFocusPoint::ComponentWithFocusPoint ( const String &  componentName = String::empty)
inline

Constructor.

virtual wonderjuce::ComponentWithFocusPoint::~ComponentWithFocusPoint ( )
inlinevirtual

Destructor.

Member Function Documentation

virtual Point<float> wonderjuce::ComponentWithFocusPoint::getFocusPoint ( )
pure virtual

Returns the "focus point", the point where this component shall be auto-centered (for example, when it is zoomed into).

Returns
The "focus point", the point where this component shall be auto-centered (for example, when it is zoomed into). It contains relative coordinates within [0.0 ; 1.0].

Implemented in wonderjuce::SourcePanel.

virtual float wonderjuce::ComponentWithFocusPoint::getFocusPointX ( )
pure virtual

Returns the x-coordinate of the "focus point".

Returns
The x-coordinate of the "focus point" as relative coordinate within [0.0 ; 1.0].

Implemented in wonderjuce::SourcePanel.

virtual float wonderjuce::ComponentWithFocusPoint::getFocusPointY ( )
pure virtual

Returns the y-coordinate of the "focus point".

Returns
The y-coordinate of the "focus point" as relative coordinate within [0.0 ; 1.0].

Implemented in wonderjuce::SourcePanel.