Interface StyleableFigure

All Superinterfaces:
Figure, PropertyBean, StyleableBean, StyleablePropertyBean, TreeNode<Figure>
All Known Implementing Classes:
ArcFigure, BezierPathFigure, ClippingFigure, CombinedPathFigure, EllipseFigure, GroupFigure, ImageFigure, LabelFigure, LayerFigure, LineConnectionFigure, LineConnectionWithMarkersFigure, LineFigure, PageFigure, PageLabelFigure, PolygonFigure, PolylineFigure, RectangleFigure, RegionFigure, SimpleDrawing, SimpleLabelConnectionFigure, SimpleLayeredDrawing, SliceFigure, TextAreaFigure, TextFigure

public interface StyleableFigure extends Figure
StyleableFigure provides user-editable "id", "style class" and "style" properties, and a non-user-editable "pseudo-class" property.
Author:
Werner Randelshofer
  • Property Details

  • Field Details

    • ID

      static final NullableStringStyleableKey ID
      Defines the id for styling the figure with CSS.

      Default value: null.

    • STYLE_CLASS

      static final WordSetKey STYLE_CLASS
      Defines the style class of the figure. The style class is used for styling a figure with CSS.

      Default value: empty set.

    • PSEUDO_CLASS

      static final WordSetKey PSEUDO_CLASS
      Defines the pseudo class states of the figure. The pseudo class states are used for styling a figure with CSS. This property should not be made persistent because it is a computed value.

      Default value: empty set.

    • STYLE

      static final StringReadOnlyStyleableKey STYLE
      Defines the style of the figure. The style is used for styling a figure with CSS.

      Default value: null.

    • TYPE_SELECTOR_NODE_KEY

      static final String TYPE_SELECTOR_NODE_KEY
      We store the type selector of the figure on the node that is used to render the figure. This allows to pass this information through to classes that export a rendered scene graph.

      This key is a String, because it is set as a property on the JavaFX node that is used to render the figure. The value type of the property is a String.

      See Also:
  • Method Details