public class PtFlResource extends FillLayerResource
Class PtFlResource. Contains Pattern Fill Layer Data.
LayerResource
Modifier and Type | Field and Description |
---|---|
static int |
TYPE_TOOL_KEY
The type tool info key.
|
PSB_RESOURCE_SIGNATURE, RESOURCE_SIGNATURE
Constructor and Description |
---|
PtFlResource(String patternName,
String patternId)
Initializes a new instance of the
PtFlResource class. |
Modifier and Type | Method and Description |
---|---|
boolean |
getAlignWithLayer()
Gets a value indicating whether [align with layer].
|
int |
getKey()
Gets the layer resource key.
|
int |
getLength()
Gets the layer resource length in bytes.
|
Point |
getOffset()
Gets the offset.
|
String |
getPatternId()
Gets the pattern identifier.
|
String |
getPatternName()
Gets the name of the pattern.
|
int |
getPsdVersion()
Gets the minimal psd version required for layer resource.
|
double |
getScale()
Gets the scale.
|
int |
getSignature()
Gets the layer resource signature.
|
boolean |
isLinkedWithLayer()
Gets a value indicating whether this instance is linked with layer.
|
void |
save(StreamContainer streamContainer,
int psdVersion)
Saves the resource to the specified stream container.
|
void |
setAlignWithLayer(boolean value)
Sets a value indicating whether [align with layer].
|
void |
setLinkedWithLayer(boolean value)
Sets a value indicating whether this instance is linked with layer.
|
void |
setOffset(Point value)
Sets the offset.
|
void |
setPatternId(String value)
Sets the pattern identifier.
|
void |
setPatternName(String value)
Sets the name of the pattern.
|
void |
setScale(double value)
Sets the scale.
|
toString
public static final int TYPE_TOOL_KEY
The type tool info key.
public PtFlResource(String patternName, String patternId)
Initializes a new instance of the PtFlResource
class.
patternName
- Name of the pattern.patternId
- The pattern identifier.public int getSignature()
Gets the layer resource signature.
getSignature
in class FillLayerResource
public int getKey()
Gets the layer resource key.
getKey
in class LayerResource
public int getLength()
Gets the layer resource length in bytes.
getLength
in class LayerResource
public int getPsdVersion()
Gets the minimal psd version required for layer resource. 0 indicates no restrictions.
getPsdVersion
in class LayerResource
public final String getPatternName()
Gets the name of the pattern.
public final void setPatternName(String value)
Sets the name of the pattern.
value
- the name of the pattern.public final Point getOffset()
Gets the offset.
public final void setOffset(Point value)
Sets the offset.
value
- the offset.public final double getScale()
Gets the scale.
public final void setScale(double value)
Sets the scale.
value
- the scale.public final boolean isLinkedWithLayer()
Gets a value indicating whether this instance is linked with layer.
public final void setLinkedWithLayer(boolean value)
Sets a value indicating whether this instance is linked with layer.
value
- a value indicating whether this instance is linked with layer.public final boolean getAlignWithLayer()
Gets a value indicating whether [align with layer].
public final void setAlignWithLayer(boolean value)
Sets a value indicating whether [align with layer].
value
- a value indicating whether [align with layer].public final String getPatternId()
Gets the pattern identifier.
public final void setPatternId(String value)
Sets the pattern identifier.
value
- the pattern identifier.public void save(StreamContainer streamContainer, int psdVersion)
Saves the resource to the specified stream container.
save
in class LayerResource
streamContainer
- The stream container to save to.psdVersion
- The PSD version.