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 int
checkAlign(int align)
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)
-
-
-
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 classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
getTarget
public Print 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.
-
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 interfaceLayerEntry
- Parameters:
device
-gc
-- Returns:
- the iterator
-
-