Class LineHandle

  • All Implemented Interfaces:
    IReportItemMethodContext, org.eclipse.birt.report.model.elements.interfaces.IDesignElementModel, org.eclipse.birt.report.model.elements.interfaces.IInternalReportItemModel, org.eclipse.birt.report.model.elements.interfaces.ILineItemModel, org.eclipse.birt.report.model.elements.interfaces.IReportItemModel, org.eclipse.birt.report.model.elements.interfaces.IStyledElementModel

    public class LineHandle
    extends ReportItemHandle
    implements org.eclipse.birt.report.model.elements.interfaces.ILineItemModel
    Represents the line item. The user can set the line orientation.
    See Also:
    LineItem
    • Constructor Detail

      • LineHandle

        public LineHandle​(org.eclipse.birt.report.model.core.Module module,
                          org.eclipse.birt.report.model.core.DesignElement element)
        Constructs a line handle with the given design and the element. The application generally does not create handles directly. Instead, it uses one of the navigation methods available on other element handles.
        Parameters:
        module - the module
        element - the model representation of the element
    • Method Detail

      • getOrientation

        public java.lang.String getOrientation()
        Returns the orientation of the line. The return value is defined in DesignChoiceConstants and can be one of:
        • LINE_ORIENTATION_HORIZONTAL
        • LINE_ORIENTATION_VERTICAL
        The default is LINE_ORIENTATION_HORIZONTAL.
        Returns:
        the orientation of the line
      • setOrientation

        public void setOrientation​(java.lang.String orientation)
                            throws SemanticException
        Sets the orientation of the line. The input value is defined in DesignChoiceConstants and can be one of:
        • LINE_ORIENTATION_HORIZONTAL
        • LINE_ORIENTATION_VERTICAL
        Parameters:
        orientation - the orientation of the line
        Throws:
        SemanticException - if the input orientation is not one of the above.