Class AbstractComponent.AbstractFlyoverStrategy<S extends Component>

    • Constructor Detail

      • AbstractFlyoverStrategy

        public AbstractFlyoverStrategy​(S component)
        Component constructor.
        Parameters:
        component - The component for which this object will control flyovers.
        Throws:
        java.lang.NullPointerException - if the given component is null.
    • Method Detail

      • getComponent

        public S getComponent()
        Returns:
        The component for which this object will control flyovers.
      • getExtent

        public Extent getExtent​(Flow flow)
        Returns the extent of the indicated flow.
        Parameters:
        flow - The flow for which an extent should be returned.
        Returns:
        The extent of the given flow.
      • getLineExtent

        public Extent getLineExtent()
        Specified by:
        getLineExtent in interface Component.FlyoverStrategy<S extends Component>
        Returns:
        The requested line extent (width in left-to-right top-to-bottom orientation) of the flyover component, or null if no preferred line extent has been specified.
      • getPageExtent

        public Extent getPageExtent()
        Specified by:
        getPageExtent in interface Component.FlyoverStrategy<S extends Component>
        Returns:
        The requested page extent (height in left-to-right top-to-bottom orientation) of the flyover component, or null if no preferred page extent has been specified.
      • setExtent

        public void setExtent​(Flow flow,
                              Extent newExtent)
        Sets the extent of a given flow. The extent of each flow represents a bound property.
        Parameters:
        flow - The flow for which the extent should be set.
        newExtent - The new requested extent of the flyover, or null there is no extent preference.
        Throws:
        java.lang.NullPointerException - if the given flow is null.
      • setLineExtent

        public void setLineExtent​(Extent newExtent)
        Description copied from interface: Component.FlyoverStrategy
        Sets the requested line extent (width in left-to-right top-to-bottom orientation) of the flyover component.
        Specified by:
        setLineExtent in interface Component.FlyoverStrategy<S extends Component>
        Parameters:
        newExtent - The new requested line extent of the flyover component, or null there is no line extent preference.
      • setPageExtent

        public void setPageExtent​(Extent newExtent)
        Description copied from interface: Component.FlyoverStrategy
        Sets the requested page extent (height in left-to-right top-to-bottom orientation) of the flyover component.
        Specified by:
        setPageExtent in interface Component.FlyoverStrategy<S extends Component>
        Parameters:
        newExtent - The new requested page extent of the flyover component, or null there is no page extent preference.
      • setStyleID

        public void setStyleID​(java.lang.String newStyleID)
        Description copied from interface: Component.FlyoverStrategy
        Identifies the style for the flyover component.
        Specified by:
        setStyleID in interface Component.FlyoverStrategy<S extends Component>
        Parameters:
        newStyleID - The style identifier of the flyover, or null if there is no style ID.
      • getTetherBearing

        public java.math.BigDecimal getTetherBearing()
        Returns:
        The bearing of the tether in relation to the frame.
      • setTetherBearing

        public void setTetherBearing​(java.math.BigDecimal newTetherBearing)
        Sets the bearing of the tether in relation to the frame.
        Parameters:
        newTetherBearing - The new bearing of the tether in relation to the frame.
        Throws:
        java.lang.NullPointerException - if the given bearing is null.
        java.lang.IllegalArgumentException - if the given bearing is greater than 360.