Package uk.ac.starlink.topcat.plot2
Class AbstractAxesController<P,A>
java.lang.Object
uk.ac.starlink.topcat.plot2.AbstractAxesController<P,A>
- All Implemented Interfaces:
AxesController<P,
,A> Configger
- Direct Known Subclasses:
DisjointAxesController
,MatrixAxesController
Partial AxesController implementation.
- Since:
- 18 Aug 2023
- Author:
- Mark Taylor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addActionListener
(ActionListener listener) Adds a listener notified when any of the controls changes.protected void
addControl
(Control control) Adds a control to the list of controls managed by this object.Returns an object which will forward actions to listeners registered with this panel.Control[]
Returns all the controls for user configuration of this controller.void
removeActionListener
(ActionListener listener) Removes a listener previously added by addActionListener.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface uk.ac.starlink.topcat.plot2.AxesController
configureForLayers, getZoneControllers
-
Constructor Details
-
AbstractAxesController
protected AbstractAxesController()Constructor.
-
-
Method Details
-
addControl
Adds a control to the list of controls managed by this object.- Parameters:
control
- control to add
-
getStackControls
Returns all the controls for user configuration of this controller. This includes the main control and possibly others.- Specified by:
getStackControls
in interfaceAxesController<P,
A> - Returns:
- user controls
-
addActionListener
Adds a listener notified when any of the controls changes.- Specified by:
addActionListener
in interfaceAxesController<P,
A> - Parameters:
listener
- listener to add
-
removeActionListener
Removes a listener previously added by addActionListener.- Specified by:
removeActionListener
in interfaceAxesController<P,
A> - Parameters:
listener
- listener to remove
-
getActionForwarder
Returns an object which will forward actions to listeners registered with this panel.- Returns:
- action forwarder
-