Search in sources :

Example 1 with Pos

use of javafx.geometry.Pos in project TestFX by TestFX.

the class FxRobot method point.

@Override
public PointQuery point(double x, double y) {
    PointLocator pointLocator = context.getPointLocator();
    Pos pointPosition = context.getPointPosition();
    return pointLocator.point(new Point2D(x, y)).atPosition(pointPosition);
}
Also used : Pos(javafx.geometry.Pos) Point2D(javafx.geometry.Point2D) PointLocator(org.testfx.service.locator.PointLocator)

Example 2 with Pos

use of javafx.geometry.Pos in project TestFX by TestFX.

the class FxRobot method point.

@Override
public PointQuery point(Bounds bounds) {
    PointLocator pointLocator = context.getPointLocator();
    Pos pointPosition = context.getPointPosition();
    return pointLocator.point(bounds).atPosition(pointPosition);
}
Also used : Pos(javafx.geometry.Pos) PointLocator(org.testfx.service.locator.PointLocator)

Example 3 with Pos

use of javafx.geometry.Pos in project TestFX by TestFX.

the class FxRobot method point.

@Override
public PointQuery point(Scene scene) {
    PointLocator pointLocator = context.getPointLocator();
    Pos pointPosition = context.getPointPosition();
    targetWindow(scene.getWindow());
    return pointLocator.point(scene).atPosition(pointPosition);
}
Also used : Pos(javafx.geometry.Pos) PointLocator(org.testfx.service.locator.PointLocator)

Example 4 with Pos

use of javafx.geometry.Pos in project TestFX by TestFX.

the class FxRobot method point.

@Override
public PointQuery point(Point2D point) {
    PointLocator pointLocator = context.getPointLocator();
    Pos pointPosition = context.getPointPosition();
    return pointLocator.point(point).atPosition(pointPosition);
}
Also used : Pos(javafx.geometry.Pos) PointLocator(org.testfx.service.locator.PointLocator)

Example 5 with Pos

use of javafx.geometry.Pos in project JFoenix by jfoenixadmin.

the class JFXTreeTableCellSkin method layoutChildren.

@Override
protected void layoutChildren(double x, double y, double w, double h) {
    updateDisclosureNode();
    double disclosureWidth = 0;
    Node disclosureNode = ((JFXTreeTableCell<S, T>) getSkinnable()).getDisclosureNode();
    if (disclosureNode.isVisible()) {
        Pos alignment = getSkinnable().getAlignment();
        alignment = alignment == null ? Pos.CENTER_LEFT : alignment;
        layoutInArea(disclosureNode, x + 8, y, w, h, 0, Insets.EMPTY, false, false, HPos.LEFT, VPos.CENTER);
        disclosureWidth = disclosureNode.getLayoutBounds().getWidth() + 18;
    }
    super.layoutChildren(x + disclosureWidth, y, w - disclosureWidth, h);
}
Also used : HPos(javafx.geometry.HPos) Pos(javafx.geometry.Pos) VPos(javafx.geometry.VPos) Node(javafx.scene.Node) JFXTreeTableCell(com.jfoenix.controls.cells.editors.base.JFXTreeTableCell)

Aggregations

Pos (javafx.geometry.Pos)9 PointLocator (org.testfx.service.locator.PointLocator)6 Node (javafx.scene.Node)3 HPos (javafx.geometry.HPos)2 VPos (javafx.geometry.VPos)2 JFXTreeTableCell (com.jfoenix.controls.cells.editors.base.JFXTreeTableCell)1 ChartType (eu.hansolo.tilesfx.Tile.ChartType)1 SkinType (eu.hansolo.tilesfx.Tile.SkinType)1 TextSize (eu.hansolo.tilesfx.Tile.TextSize)1 TileColor (eu.hansolo.tilesfx.Tile.TileColor)1 RadarChart (eu.hansolo.tilesfx.chart.RadarChart)1 TextOrientation (eu.hansolo.tilesfx.chart.SunburstChart.TextOrientation)1 VisibleData (eu.hansolo.tilesfx.chart.SunburstChart.VisibleData)1 TimeEventListener (eu.hansolo.tilesfx.events.TimeEventListener)1 CountryGroup (eu.hansolo.tilesfx.tools.CountryGroup)1 TreeNode (eu.hansolo.tilesfx.tools.TreeNode)1 DarkSky (eu.hansolo.tilesfx.weather.DarkSky)1 NumberFormat (java.text.NumberFormat)1 ZonedDateTime (java.time.ZonedDateTime)1 List (java.util.List)1