Class LayerEntryImpl

java.lang.Object
org.eclipse.nebula.paperclips.core.internal.LayerEntryImpl
All Implemented Interfaces:
LayerEntry

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

    Constructors 
    Constructor Description
    LayerEntryImpl​(Print target, int align)
    Create a new layer entry.
  • Method Summary

    Modifier and Type Method Description
    boolean equals​(java.lang.Object obj)  
    int getHorizontalAlignment()
    Returns the horizontal alignment applied to the target.
    Print getTarget()
    Returns the target print of this entry.
    int hashCode()  
    LayerEntryIterator iterator​(org.eclipse.swt.graphics.Device device, org.eclipse.swt.graphics.GC gc)  

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • 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 Details

    • 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.
    • 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