Package net.officefloor.gef.editor
Interface AdaptedActionVisualFactoryContext
-
- All Known Implementing Classes:
AdaptedActionHandlePart
,AdaptedChildVisualFactoryContextImpl
,AdaptedModelVisualFactoryContextImpl
public interface AdaptedActionVisualFactoryContext
Context 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 theNode
to the parentPane
returning it.javafx.scene.Node
createImageWithHover(java.lang.Class<?> resourceClass, java.lang.String imageFilePath, java.lang.String hoverImageFilePath)
Convenience method to create aNode
withImage
and hoverImage
.
-
-
-
Method Detail
-
addNode
<N extends javafx.scene.Node> N addNode(javafx.scene.layout.Pane parent, N node)
Add the
Node
to the parentPane
returning it.This allows for convenient adding new
Node
instances toPane
.- Type Parameters:
N
-Node
type.- 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 aNode
withImage
and hoverImage
. Typically this is to create button for the action.- Parameters:
resourceClass
-Class
within the class path containing the images.imageFilePath
- Path to theImage
.hoverImageFilePath
- Path to the hoverImage
.- Returns:
Node
for theImage
with hover.- See Also:
DefaultImages
-
-