Search this API

y.layout.hierarchic
Class AlignmentDrawer.BottomAlignmentDataProvider

java.lang.Object
  extended by y.util.DataProviderAdapter
      extended by y.layout.hierarchic.AlignmentDrawer.BottomAlignmentDataProvider
All Implemented Interfaces:
DataProvider
Enclosing class:
AlignmentDrawer

public static final class AlignmentDrawer.BottomAlignmentDataProvider
extends DataProviderAdapter

A DataProvider that will make all nodes bottom-aligned (in top-to-bottom layouts) when registered.

 

Constructor Summary
AlignmentDrawer.BottomAlignmentDataProvider()
          Creates a AlignmentDrawer.BottomAlignmentDataProvider instance.
 
Method Summary
 double getDouble(java.lang.Object dataHolder)
          Returns a double value that corresponds to bottom alignment.
 
Methods inherited from class y.util.DataProviderAdapter
defined, get, getBool, getInt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AlignmentDrawer.BottomAlignmentDataProvider

public AlignmentDrawer.BottomAlignmentDataProvider()
Creates a AlignmentDrawer.BottomAlignmentDataProvider instance.

Method Detail

getDouble

public double getDouble(java.lang.Object dataHolder)
Returns a double value that corresponds to bottom alignment.

This value is equal to height(dataHolder) / 2.

Specified by:
getDouble in interface DataProvider
Overrides:
getDouble in class DataProviderAdapter
Parameters:
dataHolder - the node object
Returns:
a double value that corresponds to bottom alignment

© Copyright 2000-2022,
yWorks GmbH.
All rights reserved.