Class ExtShapeFactory


  • public final class ExtShapeFactory
    extends java.lang.Object
    Author:
    Group 3
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.
    • Constructor Detail

      • ExtShapeFactory

        public ExtShapeFactory()
        Constructor
    • 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.