Class Range.Item

    • Constructor Detail

      • Item

        public Item​(Canvas aCanvas)
        Creates a new range item from a canvas. The range item represents a reference to the canvas rather than an embedded canvas.
        Parameters:
        aCanvas - A canvas to use as a range item
      • Item

        public Item​(Canvas aCanvas,
                    boolean aEmbeddedCanvas)
        Creates a new range item from a canvas; the canvas is either embedded or referenced depending on the boolean flag passed to the constructor.
        Parameters:
        aCanvas - A canvas to use as a range item
        aEmbeddedCanvas - Whether a canvas should be embedded or a reference to it created
      • Item

        public Item​(Range aRange)
        Creates a new range item from another range.
        Parameters:
        aRange - A range item created from another range
      • Item

        public Item​(SpecificResource aSpecificResource)
        Creates a new range item from a specific resource.
        Parameters:
        aSpecificResource - A range item created from a specific resource
    • Method Detail

      • getID

        public URI getID()
        Gets the ID from the resource wrapped by this item.
        Returns:
        A resource ID
      • getType

        public String getType()
        Gets the type of the resource wrapped by this item.
        Returns:
        The resource type
      • getResource

        public Object getResource()
        Gets the resource wrapped by this item.
        Returns:
        The item's resource