Module no.ntnu.principes
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
ConstructorsConstructorDescriptionExtendedGraphicDecoration(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
Methods inherited from class net.synedra.validatorfx.GraphicDecoration
updateDecorations
-
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 decorationposition- 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 decorationposition- The position of the decorationxOffset- The x offset of the decorationyOffset- The y offset of the decoration
-
-
Method Details
-
add
public void add(javafx.scene.Node target) - Specified by:
addin interfacenet.synedra.validatorfx.Decoration- Overrides:
addin classnet.synedra.validatorfx.GraphicDecoration
-
remove
public void remove(javafx.scene.Node target) - Specified by:
removein interfacenet.synedra.validatorfx.Decoration- Overrides:
removein classnet.synedra.validatorfx.GraphicDecoration
-