public final class GridAndGuidesResource extends ResourceBlock
Represents the grid and guides resource.
ResourceBlock.ResourceBlockState
ResouceBlockMeSaSignature, ResouceBlockSignature
Constructor and Description |
---|
GridAndGuidesResource()
Initializes a new instance of the
GridAndGuidesResource class. |
Modifier and Type | Method and Description |
---|---|
int |
getDataSize()
Gets the resource data size in bytes.
|
int |
getGridCycleX()
Gets or sets the horizontal grid cycle.
|
int |
getGridCycleY()
Gets or sets the vertical grid cycle.
|
int |
getGuideCount()
Gets the guide resource blocks count.
|
GuideResource[] |
getGuides()
Gets or sets the guides.
|
int |
getHeaderVersion()
Gets or sets the header version.
|
int |
getMinimalVersion()
Gets the minimal required psd version.
|
void |
setGridCycleX(int value)
Gets or sets the horizontal grid cycle.
|
void |
setGridCycleY(int value)
Gets or sets the vertical grid cycle.
|
void |
setGuides(GuideResource[] value)
Gets or sets the guides.
|
void |
setHeaderVersion(int value)
Gets or sets the header version.
|
getID, getName, getSignature, getSize, save, setID, setName, validateValues
public GridAndGuidesResource()
Initializes a new instance of the GridAndGuidesResource
class.
public final GuideResource[] getGuides()
Gets or sets the guides.
Value: The guides.public final void setGuides(GuideResource[] value)
Gets or sets the guides.
Value: The guides.public final int getGuideCount()
Gets the guide resource blocks count.
Value: The guide resource blocks count.public final int getHeaderVersion()
Gets or sets the header version. This value should be always 1.
Value: The header version.public final void setHeaderVersion(int value)
Gets or sets the header version. This value should be always 1.
Value: The header version.public final int getGridCycleX()
Gets or sets the horizontal grid cycle. The default is 576.
Value: The horizontal grid cycle.public final void setGridCycleX(int value)
Gets or sets the horizontal grid cycle. The default is 576.
Value: The horizontal grid cycle.public final int getGridCycleY()
Gets or sets the vertical grid cycle. The default is 576.
Value: The vertical grid cycle.public final void setGridCycleY(int value)
Gets or sets the vertical grid cycle. The default is 576.
Value: The vertical grid cycle.public int getDataSize()
Gets the resource data size in bytes.
Value: The resource data size.getDataSize
in class ResourceBlock
public int getMinimalVersion()
Gets the minimal required psd version.
Value: The minimal psd version.getMinimalVersion
in class ResourceBlock