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)
-
Constructor Details
-
LayerEntryImpl
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 classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)- Overrides:
equals
in classjava.lang.Object
-
getTarget
Description copied from interface:LayerEntry
Returns the target print of this entry.- Specified by:
getTarget
in interfaceLayerEntry
- 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 interfaceLayerEntry
- 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 interfaceLayerEntry
- Parameters:
device
-gc
-- Returns:
- the iterator
-