Package g3.project.graphics
Class ExtShapeFactory
- java.lang.Object
-
- g3.project.graphics.ExtShapeFactory
-
public final class ExtShapeFactory extends java.lang.Object
- Author:
- Group 3
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ExtShapeFactory.ShapeType
Shape types.
-
Field Summary
Fields Modifier and Type Field Description protected java.util.function.Consumer<javafx.scene.input.MouseEvent>
hrefClickHandlerConsumer
href click handler.protected java.util.function.Consumer<javafx.scene.input.MouseEvent>
hrefHovEntHandlerConsumer
href mouse roll-over (hover) enter handler.protected java.util.function.Consumer<javafx.scene.input.MouseEvent>
hrefHovExHandlerConsumer
href mouse roll-over (hover) exit handler.protected java.util.function.Consumer<javafx.scene.input.MouseEvent>
textClickHandlerConsumer
text click handler.
-
Constructor Summary
Constructors Constructor Description ExtShapeFactory()
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<ExtShape>
makeShape(ExtShapeFactory.ShapeType shapeType)
Make a new extended shape.void
setHrefClickHandler(java.util.function.Consumer<javafx.scene.input.MouseEvent> handler)
Set the href click handler.void
setHrefHoverEnterHandler(java.util.function.Consumer<javafx.scene.input.MouseEvent> handler)
Set the href hover entry handler.void
setHrefHoverExitHandler(java.util.function.Consumer<javafx.scene.input.MouseEvent> handler)
Set the href hover exit handler.void
setTextClickHandler(java.util.function.Consumer<javafx.scene.input.MouseEvent> handler)
Set the text click handler.
-
-
-
Field Detail
-
textClickHandlerConsumer
protected java.util.function.Consumer<javafx.scene.input.MouseEvent> textClickHandlerConsumer
text click handler.
-
hrefClickHandlerConsumer
protected java.util.function.Consumer<javafx.scene.input.MouseEvent> hrefClickHandlerConsumer
href click handler.
-
hrefHovEntHandlerConsumer
protected java.util.function.Consumer<javafx.scene.input.MouseEvent> hrefHovEntHandlerConsumer
href mouse roll-over (hover) enter handler.
-
hrefHovExHandlerConsumer
protected java.util.function.Consumer<javafx.scene.input.MouseEvent> hrefHovExHandlerConsumer
href mouse roll-over (hover) exit handler.
-
-
Method Detail
-
makeShape
public java.util.Optional<ExtShape> makeShape(ExtShapeFactory.ShapeType shapeType)
Make a new extended shape.- Parameters:
shapeType
- Type of shape to make.- Returns:
- Maybe shape.
-
setTextClickHandler
public void setTextClickHandler(java.util.function.Consumer<javafx.scene.input.MouseEvent> handler)
Set the text click handler.- Parameters:
handler
- Handler to set.
-
setHrefClickHandler
public void setHrefClickHandler(java.util.function.Consumer<javafx.scene.input.MouseEvent> handler)
Set the href click handler.- Parameters:
handler
- Handler to set.
-
setHrefHoverEnterHandler
public void setHrefHoverEnterHandler(java.util.function.Consumer<javafx.scene.input.MouseEvent> handler)
Set the href hover entry handler.- Parameters:
handler
- Handler to set.
-
setHrefHoverExitHandler
public void setHrefHoverExitHandler(java.util.function.Consumer<javafx.scene.input.MouseEvent> handler)
Set the href hover exit handler.- Parameters:
handler
- Handler to set.
-
-