# Deprecated API

## Contents

- Terminally Deprecated
- Fields
- Methods
- Constructors

- Terminally Deprecated Elements
  Element
  Description
  javafx.scene.shape.Box.DEFAULT_SIZE
  This field was exposed mistakenly and will be removed.

- Deprecated Fields
  Field
  Description
  javafx.scene.control.TableView.CONSTRAINED_RESIZE_POLICY
  Use `TableView.CONSTRAINED_RESIZE_POLICY_FLEX_LAST_COLUMN` instead.
  javafx.scene.control.TreeTableView.CONSTRAINED_RESIZE_POLICY
  Use `TreeTableView.CONSTRAINED_RESIZE_POLICY_FLEX_LAST_COLUMN` instead.
  javafx.scene.shape.Box.DEFAULT_SIZE
  This field was exposed mistakenly and will be removed.

- Deprecated Methods
  Method
  Description
  javafx.css.CssMetaData.set(S, V, StyleOrigin)
  This method is no longer called from CSS code. Use `StyleableProperty.applyStyle(javafx.css.StyleOrigin, java.lang.Object)`
  javafx.fxml.FXMLLoader.loadType(String)
  This method now delegates to `FXMLLoader.getDefaultClassLoader()`.
  javafx.fxml.FXMLLoader.loadType(String, String)
  This method now delegates to `FXMLLoader.getDefaultClassLoader()`.
  javafx.scene.control.SkinBase.snapPosition(double)
  replaced by `snapPositionX()` and `snapPositionY()`
  javafx.scene.control.SkinBase.snapSize(double)
  replaced by `snapSizeX()` and `snapSizeY()`
  javafx.scene.control.SkinBase.snapSpace(double)
  replaced by `snapSpaceX()` and `snapSpaceY()`
  javafx.scene.control.TreeTableCell.getTreeTableRow()
  Use `TreeTableCell.getTableRow()` instead.
  javafx.scene.control.TreeTableCell.updateTreeTableColumn(TreeTableColumn<S, T>)
  Use `TreeTableCell.updateTableColumn(javafx.scene.control.TreeTableColumn<S,T>)` instead.
  javafx.scene.control.TreeTableCell.updateTreeTableRow(TreeTableRow<S>)
  Use `TreeTableCell.updateTableRow(javafx.scene.control.TreeTableRow<S>)` instead.
  javafx.scene.control.TreeTableView.getNodeLevel(TreeItem<?>)
  This method does not correctly calculate the distance from the given TreeItem to the root of the TreeTableView. As of JavaFX 8.0_20, the proper way to do this is via `TreeTableView.getTreeItemLevel(TreeItem)`
  javafx.scene.control.TreeView.getNodeLevel(TreeItem<?>)
  This method does not correctly calculate the distance from the given TreeItem to the root of the TreeView. As of JavaFX 8.0_20, the proper way to do this is via `TreeView.getTreeItemLevel(TreeItem)`
  javafx.scene.layout.Region.snapPosition(double)
  replaced by `snapPositionX()` and `snapPositionY()`
  javafx.scene.layout.Region.snapSize(double)
  replaced by `snapSizeX()` and `snapSizeY()`
  javafx.scene.layout.Region.snapSpace(double)
  replaced by `snapSpaceX()` and `snapSpaceY()`
  javafx.scene.media.AudioTrack.getLanguage()
  Use `Track.getLocale()` instead.
  javafx.util.Duration.divide(Duration)
  This method produces surprising results by not taking units into account. Use `Duration.divide(double)` instead.
  javafx.util.Duration.multiply(Duration)
  This method produces surprising results by not taking units into account. Use `Duration.multiply(double)` instead.

- Deprecated Constructors
  Constructor
  Description
  javafx.event.EventType()
  Do not use this constructor, as only one such EventType can exist
  javafx.scene.input.GestureEvent(Object, EventTarget, EventType<? extends GestureEvent>)
  Do not use this constructor. Constructs empty event.
  javafx.scene.input.GestureEvent(EventType<? extends GestureEvent>)
  Do not use this constructor. Constructs empty event.