Class ElementImpl

    • Constructor Detail

      • ElementImpl

        public ElementImpl()
    • Method Detail

      • getExt

        public Ext getExt()
        Description copied from interface: Element

        Gets the external reference of this element.

        Gets the external reference of this element. See the Ext interface for further information.

        Specified by:
        getExt in interface Element
        Returns:
        external reference of this element
      • setExt

        public void setExt​(Ext ext)
        Description copied from interface: Element

        Sets the external reference of this element.

        Sets the external reference of this element. See Element.getExt() for further information.

        Specified by:
        setExt in interface Element
        Parameters:
        ext - the external reference of this element
      • getRecord

        public Record getRecord()
        Description copied from interface: Element

        Gets the record linked to this element.

        Gets the record linked to this element. See the Record interface for further information.

        Specified by:
        getRecord in interface Element
        Returns:
        record linked to this element
      • setRecord

        public void setRecord​(Record record)
        Description copied from interface: Element

        Sets the record linked to this element.

        Sets the record linked to this element. See Element.getRecord() for further information.

        Specified by:
        setRecord in interface Element
        Parameters:
        record - the new record
      • getParents

        public Parents getParents()
        Description copied from interface: Element

        Gets parents of this element.

        Gets parents of this element. See the Parents interface for further information.

        Specified by:
        getParents in interface Element
        Returns:
        parents of this element
      • setParents

        public void setParents​(Parents parents)
        Description copied from interface: Element

        Sets parents of this element.

        Sets parents this element. See Element.getParents() for further information.

        Specified by:
        setParents in interface Element
        Parameters:
        parents - of this element
      • getIdGroupId

        public int getIdGroupId()
        Description copied from interface: Element

        Gets the InDesign group Id of this element.

        Gets the InDesign group Id of this element (rather than the CometGroup Id).
        The InDesign group Id is a pure layout element with no further semantic meaning, applicable in InDesign documents only and not required for any element.

        Specified by:
        getIdGroupId in interface Element
        Returns:
        InDesign group Id of this element, if applicable
      • setIdGroupId

        public void setIdGroupId​(int idGroupId)
        Description copied from interface: Element

        Sets the InDesign group Id of this element.

        Sets the InDesign group Id of this element, see Element.getIdGroupId() for further information.

        Specified by:
        setIdGroupId in interface Element
        Parameters:
        idGroupId - InDesign group Id of this element, if applicable
      • getType

        public ElementType getType()
        Description copied from interface: Element

        Gets the type of this element.

        Gets the type of this element, i.e. graphic frame, text frame or image frame.

        Specified by:
        getType in interface Element
        Returns:
        type of this element
      • setType

        public void setType​(ElementType type)
        Description copied from interface: Element

        Sets the type of this element.

        Sets the type of this element, see Element.getType() for further information.

        Specified by:
        setType in interface Element
        Parameters:
        type - type of this element
      • getInsetLeft

        public double getInsetLeft()
        Description copied from interface: Element

        Gets the left inset of this element.

        Gets the left inset (aka padding) of this element.

        Specified by:
        getInsetLeft in interface Element
        Returns:
        left inset of this element
      • setInsetLeft

        public void setInsetLeft​(double insetLeft)
        Description copied from interface: Element

        Sets the left inset of this element.

        Sets the left inset (aka padding) of this element.

        Specified by:
        setInsetLeft in interface Element
        Parameters:
        insetLeft - left inset of this element
      • getInsetRight

        public double getInsetRight()
        Description copied from interface: Element

        Gets the right inset of this element.

        Gets the right inset (aka padding) of this element.

        Specified by:
        getInsetRight in interface Element
        Returns:
        right inset of this element
      • setInsetRight

        public void setInsetRight​(double insetRight)
        Description copied from interface: Element

        Sets the right inset of this element.

        Sets the right inset (aka padding) of this element.

        Specified by:
        setInsetRight in interface Element
        Parameters:
        insetRight - right inset of this element
      • getInsetTop

        public double getInsetTop()
        Description copied from interface: Element

        Gets the top inset of this element.

        Gets the top inset (aka padding) of this element.

        Specified by:
        getInsetTop in interface Element
        Returns:
        top inset of this element
      • setInsetTop

        public void setInsetTop​(double insetTop)
        Description copied from interface: Element

        Sets the top inset of this element.

        Sets the top inset (aka padding) of this element.

        Specified by:
        setInsetTop in interface Element
        Parameters:
        insetTop - top inset of this element
      • getInsetBottom

        public double getInsetBottom()
        Description copied from interface: Element

        Gets the bottom inset of this element.

        Gets the bottom inset (aka padding) of this element.

        Specified by:
        getInsetBottom in interface Element
        Returns:
        bottom inset of this element
      • setInsetBottom

        public void setInsetBottom​(double insetBottom)
        Description copied from interface: Element

        Sets the bottom inset of this element.

        Sets the bottom inset (aka padding) of this element.

        Specified by:
        setInsetBottom in interface Element
        Parameters:
        insetBottom - the new inset bottom
      • getColumns

        public int getColumns()
        Description copied from interface: Element

        Gets the number of columns of this element.

        Gets the number of text columns of this element.

        Specified by:
        getColumns in interface Element
        Returns:
        number of columns
      • setColumns

        public void setColumns​(int columns)
        Description copied from interface: Element

        Sets the number of columns of this element.

        Sets the number of text columns of this element.

        Specified by:
        setColumns in interface Element
        Parameters:
        columns - number of columns of this element
      • getGutter

        public double getGutter()
        Description copied from interface: Element

        Gets the gutter of this element.

        Gets the gutter, i.e. padding between columns, of this element.

        Specified by:
        getGutter in interface Element
        Returns:
        gutter of this element
      • setGutter

        public void setGutter​(double gutter)
        Description copied from interface: Element

        Sets the gutter of this element.

        Sets the gutter, i.e. padding between columns, of this element.

        Specified by:
        setGutter in interface Element
        Parameters:
        gutter - gutter of this element
      • getOrigin

        public Origin getOrigin()
        Description copied from interface: Element

        Gets origin of this element.

        Gets origin of this element, i.e masterpage or regular page.

        Specified by:
        getOrigin in interface Element
        Returns:
        origin of this documnet
      • setOrigin

        public void setOrigin​(Origin origin)
        Description copied from interface: Element

        Sets the origin of this element<.

        Sets the origin of this element.

        Specified by:
        setOrigin in interface Element
        Parameters:
        origin - origin of this element.
      • getBbox

        public BBox getBbox()
        Description copied from interface: Element

        Gets the bbox of this element.

        Gets the bbox of this element, see the BBox interface for further information

        Specified by:
        getBbox in interface Element
        Returns:
        bbox of this element.
      • setBbox

        public void setBbox​(BBox bbox)
        Description copied from interface: Element

        Sets the bbox of this element.

        Sets the bbox of this element, see the BBox interface for further information

        Specified by:
        setBbox in interface Element
        Parameters:
        bbox - bbox of this element.
      • getArea

        public Area getArea()
        Description copied from interface: Element

        Gets the area of this element.

        Gets the area of this element, see the Area interface for further information

        Specified by:
        getArea in interface Element
        Returns:
        area of this element.
      • setArea

        public void setArea​(Area area)
        Description copied from interface: Element

        Sets the area of this element.

        Sets the area of this element, see the Area interface for further information

        Specified by:
        setArea in interface Element
        Parameters:
        area - area of this element.
      • getTextcontent

        public TextContent getTextcontent()
        Description copied from interface: Element
        Gets the textcontent.
        Specified by:
        getTextcontent in interface Element
        Returns:
        the textcontent
      • setTextcontent

        public void setTextcontent​(TextContent textcontent)
        Description copied from interface: Element
        Sets the textcontent.
        Specified by:
        setTextcontent in interface Element
        Parameters:
        textcontent - the new textcontent
      • getIdlabels

        public java.util.List<IDLabel> getIdlabels()
        Description copied from interface: Element
        Gets the idlabels.
        Specified by:
        getIdlabels in interface Element
        Returns:
        the idlabels
      • setIdlabels

        public void setIdlabels​(java.util.List<IDLabel> idlabels)
        Description copied from interface: Element
        Sets the idlabels.
        Specified by:
        setIdlabels in interface Element
        Parameters:
        idlabels - the new idlabels
      • getIdtag

        public IDTag getIdtag()
        Description copied from interface: Element
        Gets the idtag.
        Specified by:
        getIdtag in interface Element
        Returns:
        the idtag
      • setIdtag

        public void setIdtag​(IDTag idtag)
        Description copied from interface: Element
        Sets the idtag.
        Specified by:
        setIdtag in interface Element
        Parameters:
        idtag - the new idtag
      • getChainHasOverset

        public boolean getChainHasOverset()
        Description copied from interface: Element

        Gets, whether there is overset in any of the elements in chain.

        Specified by:
        getChainHasOverset in interface Element
        Returns:
        true, if there is overset, false otherwise
      • setChainHasOverset

        public void setChainHasOverset​(boolean chainHasOverset)
        Description copied from interface: Element

        Sets, whether there is overset in any of the elements in chain.

        Specified by:
        setChainHasOverset in interface Element
        Parameters:
        chainHasOverset - true, if there is overset, false otherwise.
      • getChainPrevious

        public int getChainPrevious()
        Description copied from interface: Element

        Gets the previous element in the chain

        .
        Specified by:
        getChainPrevious in interface Element
        Returns:
        ID of previous element in chain, 0, if no previous element exists
      • setChainPrevious

        public void setChainPrevious​(int chainPrevious)
        Description copied from interface: Element

        Sets the previous element in chain.

        Specified by:
        setChainPrevious in interface Element
        Parameters:
        chainPrevious - previous element in chain, 0, if no previous element exists
      • getChainNext

        public int getChainNext()
        Description copied from interface: Element

        Gets the next element in the chain

        .
        Specified by:
        getChainNext in interface Element
        Returns:
        ID of next element in chain, 0, if no next element exists
      • setChainNext

        public void setChainNext​(int chainNext)
        Description copied from interface: Element

        Sets the next element in chain.

        Specified by:
        setChainNext in interface Element
        Parameters:
        chainNext - next element in chain, 0, if no next element exists
      • setImagecontent

        public void setImagecontent​(ImageContent imagecontent)
        Description copied from interface: Element
        Sets the imagecontent.
        Specified by:
        setImagecontent in interface Element
        Parameters:
        imagecontent - the imagecontent to set
      • getObjectstyle

        public int getObjectstyle()
        Description copied from interface: Element
        Gets the objectstyle.
        Specified by:
        getObjectstyle in interface Element
        Returns:
        the objectstyle
      • setObjectstyle

        public void setObjectstyle​(int objectstyle)
        Description copied from interface: Element
        Sets the objectstyle.
        Specified by:
        setObjectstyle in interface Element
        Parameters:
        objectstyle - the objectstyle to set
      • getUitype

        public java.lang.String getUitype()
        Description copied from interface: Element
        Gets the uitype.
        Specified by:
        getUitype in interface Element
        Returns:
        the uitype
      • setUitype

        public void setUitype​(java.lang.String uitype)
        Description copied from interface: Element
        Sets the uitype.
        Specified by:
        setUitype in interface Element
        Parameters:
        uitype - the uitype to set
      • getInteractive

        public int getInteractive()
        Description copied from interface: Element
        Gets the interactive.
        Specified by:
        getInteractive in interface Element
        Returns:
        the interactive
      • setInteractive

        public void setInteractive​(int interactive)
        Description copied from interface: Element
        Sets the interactive.
        Specified by:
        setInteractive in interface Element
        Parameters:
        interactive - the interactive to set
      • getChainParentId

        public int getChainParentId()
        Description copied from interface: Element
        Gets the chain parent id.
        Specified by:
        getChainParentId in interface Element
        Returns:
        the chainParentId
      • setChainParentId

        public void setChainParentId​(int chainParentId)
        Description copied from interface: Element
        Sets the chain parent id.
        Specified by:
        setChainParentId in interface Element
        Parameters:
        chainParentId - the chainParentId to set
      • getSequence

        public int getSequence()
        Description copied from interface: Element
        Gets the sequence.
        Specified by:
        getSequence in interface Element
        Returns:
        the sequence
      • setSequence

        public void setSequence​(int sequence)
        Description copied from interface: Element
        Sets the sequence.
        Specified by:
        setSequence in interface Element
        Parameters:
        sequence - the sequence to set
      • getVerticalJustification

        public int getVerticalJustification()
        Description copied from interface: Element
        Gets the vertical justification.
        Specified by:
        getVerticalJustification in interface Element
        Returns:
        the verticalJustification
      • setVerticalJustification

        public void setVerticalJustification​(int verticalJustification)
        Description copied from interface: Element
        Sets the vertical justification.
        Specified by:
        setVerticalJustification in interface Element
        Parameters:
        verticalJustification - the verticalJustification to set
      • getTextmodel

        public int getTextmodel()
        Description copied from interface: Element
        Gets the textmodel.
        Specified by:
        getTextmodel in interface Element
        Returns:
        the textmodel
      • setTextmodel

        public void setTextmodel​(int textmodel)
        Description copied from interface: Element
        Sets the textmodel.
        Specified by:
        setTextmodel in interface Element
        Parameters:
        textmodel - the textmodel to set
      • isVisible

        public boolean isVisible()
        Description copied from interface: Element
        Checks if is visible.
        Specified by:
        isVisible in interface Element
        Returns:
        the visible
      • setVisible

        public void setVisible​(boolean visible)
        Description copied from interface: Element
        Sets the visible.
        Specified by:
        setVisible in interface Element
        Parameters:
        visible - the visible to set
      • getLocked

        public int getLocked()
        Description copied from interface: Element
        Gets the locked.
        Specified by:
        getLocked in interface Element
        Returns:
        the locked
      • setLocked

        public void setLocked​(int locked)
        Description copied from interface: Element
        Sets the locked.
        Specified by:
        setLocked in interface Element
        Parameters:
        locked - the locked to set
      • getOriginUid

        public int getOriginUid()
        Description copied from interface: Element
        Gets the origin uid.
        Specified by:
        getOriginUid in interface Element
        Returns:
        the originUid
      • setOriginUid

        public void setOriginUid​(int originUid)
        Description copied from interface: Element
        Sets the origin uid.
        Specified by:
        setOriginUid in interface Element
        Parameters:
        originUid - the originUid to set
      • getOriginInMaster

        public java.lang.String getOriginInMaster()
        Description copied from interface: Element
        Gets the origin in master.
        Specified by:
        getOriginInMaster in interface Element
        Returns:
        the originInMaster
      • setOriginInMaster

        public void setOriginInMaster​(java.lang.String originInMaster)
        Description copied from interface: Element
        Sets the origin in master.
        Specified by:
        setOriginInMaster in interface Element
        Parameters:
        originInMaster - the originInMaster to set
      • setProperties

        public void setProperties​(ElementProperties properties)
        Description copied from interface: Element
        Sets the properties.
        Specified by:
        setProperties in interface Element
        Parameters:
        properties - the properties to set
      • setFittingOptions

        public void setFittingOptions​(FittingOptions fittingOptions)
        Description copied from interface: Element
        Sets the fitting options.
        Specified by:
        setFittingOptions in interface Element
        Parameters:
        fittingOptions - the fittingOptions to set