Package gui.tool
Class TextTool
java.lang.Object
gui.tool.TextTool
- All Implemented Interfaces:
PageEventHandler,Tool
Allows the user to create and edit textboxes. Click on an existing box to edit its content in real-time, or
type into the side panel box and drop the text down wherever you choose.
Utilizes the GUITextBox class to visually display and edit the text, and TextBox to store the information itself.
-
Nested Class Summary
Nested classes/interfaces inherited from interface gui.page.PageEventHandler
PageEventHandler.HandlerMethod<T extends javafx.event.Event> -
Constructor Summary
ConstructorsConstructorDescriptionTextTool(javafx.beans.property.ObjectProperty<javafx.scene.paint.Color> colour) -
Method Summary
Modifier and TypeMethodDescriptionvoiddisabledFor(Page page) Called when the handler is no longer set to receive events for the given page.voidenabledFor(Page page) Called when the handler is set to receive events from the given page.javafx.scene.NodeReturn the "graphic" to show in the toolbar for this tool.Get the handler methods to be added to a page through which events will be received.getName()Return the name of this tool.javafx.scene.layout.FlowPaneReturn the GUI element which configures the settings for this tool.
-
Constructor Details
-
TextTool
public TextTool(javafx.beans.property.ObjectProperty<javafx.scene.paint.Color> colour)
-
-
Method Details
-
getName
Description copied from interface:ToolReturn the name of this tool. -
getGraphic
public javafx.scene.Node getGraphic()Description copied from interface:ToolReturn the "graphic" to show in the toolbar for this tool.- Specified by:
getGraphicin interfaceTool
-
getHandlerMethods
Description copied from interface:PageEventHandlerGet the handler methods to be added to a page through which events will be received.- Specified by:
getHandlerMethodsin interfacePageEventHandler
-
enabledFor
Description copied from interface:PageEventHandlerCalled when the handler is set to receive events from the given page.- Specified by:
enabledForin interfacePageEventHandler
-
disabledFor
Description copied from interface:PageEventHandlerCalled when the handler is no longer set to receive events for the given page.Implementors should get rid of any references to the given page when this method is called.
- Specified by:
disabledForin interfacePageEventHandler
-
getSettingsGUI
public javafx.scene.layout.FlowPane getSettingsGUI()Description copied from interface:ToolReturn the GUI element which configures the settings for this tool.The returned Node will be shown in the tool pane when this tool is selected.
- Specified by:
getSettingsGUIin interfaceTool
-