Interface HasPosition<T>

Type Parameters:
T - origin class type
All Known Implementing Classes:
AbstractLegend, AbstractVisualMap, ContinuousVisualMap, FunnelSeries, Grid, Legend, PiecewiseVisualMap, PieSeries, ScrollableLegend, SliderDataZoom, Title, Toolbox

public interface HasPosition<T>
A component that has position.
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
     
    void
    setBottom(String bottom)
    Sets a distance between component and the bottom side of the container.
    Possible values are: A pixel value like "20".
    void
    Sets a distance between component and the left side of the container.
    Possible values are: A pixel value like "20".
    void
    Sets a distance between component and the right side of the container.
    Possible values are: A pixel value like "20".
    void
    Sets a distance between component and the top side of the container.
    Possible values are: A pixel value like "20".
    default T
     
    default T
     
    default T
     
    default T
     
  • Method Details

    • getLeft

      String getLeft()
      Returns:
      distance between component and the left side of the container
    • setLeft

      void setLeft(String left)
      Sets a distance between component and the left side of the container.
      Possible values are:
      • A pixel value like "20".
      • Percentage value relative to container width like "20%".
      • Predefined values like "left", "center", "right".
      Parameters:
      left - distance to set
    • withLeft

      default T withLeft(String left)
      Parameters:
      left - distance to set
      Returns:
      this
      See Also:
    • getTop

      String getTop()
      Returns:
      distance between component and the top side of the container
    • setTop

      void setTop(String top)
      Sets a distance between component and the top side of the container.
      Possible values are:
      • A pixel value like "20".
      • Percentage value relative to container width like "20%".
      • Predefined values like "top", "middle", "bottom".
      Parameters:
      top - distance to set
    • withTop

      default T withTop(String top)
      Parameters:
      top - distance to set
      Returns:
      this
      See Also:
    • getRight

      String getRight()
      Returns:
      distance between component and the right side of the container
    • setRight

      void setRight(String right)
      Sets a distance between component and the right side of the container.
      Possible values are:
      • A pixel value like "20".
      • Percentage value relative to container width like "20%".
      Parameters:
      right - distance to set
    • withRight

      default T withRight(String right)
      Parameters:
      right - distance to set
      Returns:
      this
      See Also:
    • getBottom

      String getBottom()
      Returns:
      distance between component and the bottom side of the container
    • setBottom

      void setBottom(String bottom)
      Sets a distance between component and the bottom side of the container.
      Possible values are:
      • A pixel value like "20".
      • Percentage value relative to container width like "20%".
      Parameters:
      bottom - distance to set
    • withBottom

      default T withBottom(String bottom)
      Parameters:
      bottom - distance to set
      Returns:
      this
      See Also: