Class CompositePageSegment

    • Constructor Detail

      • CompositePageSegment

        public CompositePageSegment​(Dimension2D size)
        Parameters:
        size - The size that is used for this pageSegment. The origin is always x=0 and y=0. Must not be null. The given size is measured in Unit.JadiceDocumentUnits.
        Throws:
        IllegalArgumentException - if passed size is null.
    • Method Detail

      • getBounds

        public Rectangle2D getBounds()
        Description copied from interface: PageSegment
        Returns the raw size and position of the PageSegment in base units. Position is measured in relation to the Page's coordinate system's origin point (0,0).
        Specified by:
        getBounds in interface PageSegment
        Specified by:
        getBounds in interface com.levigo.jadice.document.internal.presentation.group.VisualizationInitializer
        Overrides:
        getBounds in class AbstractPageSegment
        Returns:
        the raw size and position
      • getSize

        public Dimension2D getSize()
        Description copied from interface: PageSegment
        Returns the raw size/dimensions of the PageSegment in base units.
        Returns:
        the PageSegment's raw size