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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static intcheckAlign(int align)booleanequals(java.lang.Object obj)intgetHorizontalAlignment()Returns the horizontal alignment applied to the target.PrintgetTarget()Returns the target print of this entry.inthashCode()LayerEntryIteratoriterator(org.eclipse.swt.graphics.Device device, org.eclipse.swt.graphics.GC gc)
-
-
-
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:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
getTarget
public Print getTarget()
Description copied from interface:LayerEntryReturns the target print of this entry.- Specified by:
getTargetin interfaceLayerEntry- Returns:
- the target print of this entry.
-
getHorizontalAlignment
public int getHorizontalAlignment()
Description copied from interface:LayerEntryReturns the horizontal alignment applied to the target.- Specified by:
getHorizontalAlignmentin interfaceLayerEntry- 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:
iteratorin interfaceLayerEntry- Parameters:
device-gc-- Returns:
- the iterator
-
-