Class LayerEntryImpl

  • All Implemented Interfaces:
    LayerEntry

    public class LayerEntryImpl
    extends java.lang.Object
    implements LayerEntry
    Instances in this class represent an entry in a LayerPrint.
    • Field Detail

      • target

        private final Print target
      • align

        private final int align
    • Constructor Detail

      • LayerEntryImpl

        public LayerEntryImpl​(Print target,
                              int align)
        Create a new layer entry.
        Parameters:
        target - the target print of this entry.
        align - the horizontal alignment applied to the target.
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • getTarget

        public Print getTarget()
        Description copied from interface: LayerEntry
        Returns the target print of this entry.
        Specified by:
        getTarget in interface LayerEntry
        Returns:
        the target print of this entry.
      • getHorizontalAlignment

        public int getHorizontalAlignment()
        Description copied from interface: LayerEntry
        Returns the horizontal alignment applied to the target.
        Specified by:
        getHorizontalAlignment in interface LayerEntry
        Returns:
        the horizontal alignment applied to the target.
      • checkAlign

        private static int checkAlign​(int align)
      • iterator

        public LayerEntryIterator iterator​(org.eclipse.swt.graphics.Device device,
                                           org.eclipse.swt.graphics.GC gc)
        Specified by:
        iterator in interface LayerEntry
        Parameters:
        device -
        gc -
        Returns:
        the iterator