Class ExtendedGraphicDecoration

java.lang.Object
net.synedra.validatorfx.GraphicDecoration
no.ntnu.principes.components.validations.ExtendedGraphicDecoration
All Implemented Interfaces:
net.synedra.validatorfx.Decoration

public class ExtendedGraphicDecoration extends net.synedra.validatorfx.GraphicDecoration
Extended version of GraphicDecoration that adds styles to target nodes to indicate validation errors.
  • Constructor Summary

    Constructors
    Constructor
    Description
    ExtendedGraphicDecoration(javafx.scene.Node decorationNode)
    Creates a new ExtendedGraphicDecoration with the specified decoration node.
    ExtendedGraphicDecoration(javafx.scene.Node decorationNode, javafx.geometry.Pos position)
    Creates a new ExtendedGraphicDecoration with the specified decoration node and position.
    ExtendedGraphicDecoration(javafx.scene.Node decorationNode, javafx.geometry.Pos position, double xOffset, double yOffset)
    Creates a new ExtendedGraphicDecoration with the specified decoration node, position, and offsets.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(javafx.scene.Node target)
     
    void
    remove(javafx.scene.Node target)
     

    Methods inherited from class net.synedra.validatorfx.GraphicDecoration

    updateDecorations

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ExtendedGraphicDecoration

      public ExtendedGraphicDecoration(javafx.scene.Node decorationNode)
      Creates a new ExtendedGraphicDecoration with the specified decoration node.
      Parameters:
      decorationNode - The node to use as the decoration
    • ExtendedGraphicDecoration

      public ExtendedGraphicDecoration(javafx.scene.Node decorationNode, javafx.geometry.Pos position)
      Creates a new ExtendedGraphicDecoration with the specified decoration node and position.
      Parameters:
      decorationNode - The node to use as the decoration
      position - The position of the decoration
    • ExtendedGraphicDecoration

      public ExtendedGraphicDecoration(javafx.scene.Node decorationNode, javafx.geometry.Pos position, double xOffset, double yOffset)
      Creates a new ExtendedGraphicDecoration with the specified decoration node, position, and offsets.
      Parameters:
      decorationNode - The node to use as the decoration
      position - The position of the decoration
      xOffset - The x offset of the decoration
      yOffset - The y offset of the decoration
  • Method Details

    • add

      public void add(javafx.scene.Node target)
      Specified by:
      add in interface net.synedra.validatorfx.Decoration
      Overrides:
      add in class net.synedra.validatorfx.GraphicDecoration
    • remove

      public void remove(javafx.scene.Node target)
      Specified by:
      remove in interface net.synedra.validatorfx.Decoration
      Overrides:
      remove in class net.synedra.validatorfx.GraphicDecoration