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 TypeMethodDescriptionvoidaddActionListener(ActionListener listener) Adds a listener notified when any of the controls changes.protected voidaddControl(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.voidremoveActionListener(ActionListener listener) Removes a listener previously added by addActionListener.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface 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:
getStackControlsin interfaceAxesController<P,A> - Returns:
- user controls
-
addActionListener
Adds a listener notified when any of the controls changes.- Specified by:
addActionListenerin interfaceAxesController<P,A> - Parameters:
listener- listener to add
-
removeActionListener
Removes a listener previously added by addActionListener.- Specified by:
removeActionListenerin 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
-