Class ComponentDrawableFilter

    • Constructor Detail

      • ComponentDrawableFilter

        public ComponentDrawableFilter()
        Default constructor.
    • Method Detail

      • getValue

        public Object getValue​(ExpressionRuntime runtime,
                               ReportElement element)
        Returns the ComponentDrawable for the AWT-Component or null.
        Specified by:
        getValue in interface DataSource
        Parameters:
        runtime - the expression runtime that is used to evaluate formulas and expressions when computing the value of this filter.
        element -
        Returns:
        the value.
      • isHeadless

        protected static boolean isHeadless()
        A helper method that queries the configuration (and therefore also the system properties) for whether the system is in headless mode.
        Returns:
        true, if the system is headless, false otherwise.
      • getDataSource

        public DataSource getDataSource()
        Returns the assigned DataSource for this Target.
        Specified by:
        getDataSource in interface DataTarget
        Returns:
        The datasource.
      • setDataSource

        public void setDataSource​(DataSource ds)
        Assigns a DataSource for this Target.
        Specified by:
        setDataSource in interface DataTarget
        Parameters:
        ds - The data source.