Package net.officefloor.gef.editor
Interface AdaptedActionVisualFactoryContext
-
- All Known Implementing Classes:
AdaptedActionHandlePart,AdaptedChildVisualFactoryContextImpl,AdaptedModelVisualFactoryContextImpl
public interface AdaptedActionVisualFactoryContextContext for theAdaptedActionVisualFactory.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <N extends javafx.scene.Node>
NaddNode(javafx.scene.layout.Pane parent, N node)Add theNodeto the parentPanereturning it.javafx.scene.NodecreateImageWithHover(java.lang.Class<?> resourceClass, java.lang.String imageFilePath, java.lang.String hoverImageFilePath)Convenience method to create aNodewithImageand hoverImage.
-
-
-
Method Detail
-
addNode
<N extends javafx.scene.Node> N addNode(javafx.scene.layout.Pane parent, N node)Add the
Nodeto the parentPanereturning it.This allows for convenient adding new
Nodeinstances toPane.- Type Parameters:
N-Nodetype.- Parameters:
parent- ParentPane.node-Node.- Returns:
- Input
Node
-
createImageWithHover
javafx.scene.Node createImageWithHover(java.lang.Class<?> resourceClass, java.lang.String imageFilePath, java.lang.String hoverImageFilePath)Convenience method to create aNodewithImageand hoverImage. Typically this is to create button for the action.- Parameters:
resourceClass-Classwithin the class path containing the images.imageFilePath- Path to theImage.hoverImageFilePath- Path to the hoverImage.- Returns:
Nodefor theImagewith hover.- See Also:
DefaultImages
-
-