|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.basedb.core.BasicItem<D> net.sf.basedb.core.ChildItem<ArrayDesignBlockData> net.sf.basedb.core.ArrayDesignBlock
public class ArrayDesignBlock
Field Summary | |
---|---|
static Item |
TYPE
The type of item represented by this class. |
Constructor Summary | |
---|---|
ArrayDesignBlock(ArrayDesignBlockData data)
|
Method Summary | |
---|---|
ArrayDesign |
getArrayDesign()
Get the ArrayDesign that is linked with this block. |
int |
getBlockNumber()
Get the block number of this block. |
int |
getBlockSizeX()
Get the number of columns in this block. |
int |
getBlockSizeY()
Get the number of rows in this block. |
static ArrayDesignBlock |
getById(DbControl dc,
int id)
Get a ArrayDesignBlock object when you know the ID. |
int |
getFeatureDiameter()
Get the expected diameter of spots on the slide. |
int |
getMetaGridX()
Get the column coordinate of this block. |
int |
getMetaGridY()
Get the row coordinate of this block. |
(package private) static ArrayDesignBlock |
getNew(DbControl dc,
ArrayDesign arrayDesign,
BlockInfo blockInfo)
|
int |
getOriginX()
Get the distance from the left edge of the slide to the top left spot in the block. |
int |
getOriginY()
Get the distance from the top edge of the slide to the top left spot in the block. |
static ItemQuery<ArrayDesignBlock> |
getQuery(ArrayDesign arrayDesign)
Get a query configured to retrieve array design blocks for the specified array design. |
(package private) SharedData |
getSharedParent()
Get the shareable parent item of this child item. |
int |
getSpacingX()
Get the x spacing between the spots in the slide. |
int |
getSpacingY()
Get the y spacing between the spots in the slide. |
Item |
getType()
Get the type of item represented by the object. |
Set<ItemProxy> |
getUsingItems()
Get the array design this block is a part of. |
boolean |
hasFeatures()
Checks if this ArrayDesignBlock has any features. |
(package private) void |
initPermissions(int granted,
int denied)
WRITE and DELETE permissions are always denied. |
boolean |
isUsed()
Array design blocks are always used by an array design. |
private void |
setArrayDesign(ArrayDesign arrayDesign)
Set the ArrayDesign for this block. |
private void |
setBlockNumber(int blockNumber)
Set the block number of this block. |
void |
setBlockSizeX(int blockSizeX)
Set the number of columns in this block. |
void |
setBlockSizeY(int blockSizeY)
Set the number of rows in this block. |
void |
setFeatureDiameter(int diameter)
Set the expected diameter of spots on the slide. |
private void |
setMetaGrid(int metaGridX,
int metaGridY)
Set the metagrid coordinates. |
void |
setOriginX(int originX)
Set the distance from the left edge of the slide to the top left spot in this block. |
void |
setOriginY(int originY)
Set the distance from the top edge of the slide to the top left spot in this block. |
void |
setSpacingX(int spacingX)
Set the x spacing between the spots in the slide. |
void |
setSpacingY(int spacingY)
Set the y spacing between the spots in the slide. |
Methods inherited from class net.sf.basedb.core.ChildItem |
---|
getPermissionForWriteDeleteAndCreate, getPluginPermissions |
Methods inherited from class net.sf.basedb.core.BasicItem |
---|
addUsingItems, addUsingItems, checkPermission, equals, getData, getDbControl, getId, getPermissions, getSessionControl, getVersion, hashCode, hasPermission, isDetached, isInDatabase, onAfterCommit, onAfterInsert, onBeforeCommit, onRollback, setDbControl, setProjectDefaults, toString, toTransferable, validate |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final Item TYPE
Item.ARRAYDESIGNBLOCK
,
getType()
Constructor Detail |
---|
ArrayDesignBlock(ArrayDesignBlockData data)
Method Detail |
---|
static ArrayDesignBlock getNew(DbControl dc, ArrayDesign arrayDesign, BlockInfo blockInfo) throws BaseException
BaseException
public static ArrayDesignBlock getById(DbControl dc, int id) throws ItemNotFoundException, PermissionDeniedException, BaseException
ArrayDesignBlock
object when you know the ID.
dc
- The DbControl
which will be used for
permission checking and database access.id
- The ID of the item to load
ArrayDesignBlock
item
ItemNotFoundException
- If an item with the specified ID is not found
PermissionDeniedException
- If the logged in user doesn't have read
permission to the items
BaseException
- If there is another errorpublic static ItemQuery<ArrayDesignBlock> getQuery(ArrayDesign arrayDesign)
arrayDesign
- The array design to retreive blocks for, null
is not allowed
ItemQuery
objectpublic Item getType()
Identifiable
Item
enumeration.
public boolean isUsed() throws BaseException
isUsed
in class BasicItem<ArrayDesignBlockData>
BaseException
- If not able to tell if item is used or not.BasicItem.getUsingItems()
public Set<ItemProxy> getUsingItems() throws BaseException
getUsingItems
in class BasicItem<ArrayDesignBlockData>
BaseException
- If there is an error loading the itemsBasicItem.addUsingItems(Set, Item, org.hibernate.Query)
void initPermissions(int granted, int denied) throws BaseException
initPermissions
in class ChildItem<ArrayDesignBlockData>
granted
- Permissions that have been granted by the subclassdenied
- Permissions that have been denied by the subclass
BaseException
- If the permissions couldn't be initialisedSharedData getSharedParent()
ChildItem
ChildItem.initPermissions(int, int)
method to calculate
the logged in user's permissions for the child item.
getSharedParent
in class ChildItem<ArrayDesignBlockData>
public ArrayDesign getArrayDesign() throws PermissionDeniedException, BaseException
ArrayDesign
that is linked with this block.
ArrayDesign
item
PermissionDeniedException
- If the logged in user doesn't have read
permission to the item
BaseException
- This exception is thrown if there is another
errorprivate void setArrayDesign(ArrayDesign arrayDesign) throws InvalidDataException
ArrayDesign
for this block.
InvalidDataException
public int getMetaGridX()
public int getMetaGridY()
private void setMetaGrid(int metaGridX, int metaGridY) throws InvalidDataException
metaGridX
- the column coordinate
InvalidDataException
public int getBlockNumber()
private void setBlockNumber(int blockNumber) throws InvalidDataException
blockNumber
- the block number of this block
InvalidDataException
- if the blocknumber is less then 1public int getBlockSizeX()
public void setBlockSizeX(int blockSizeX) throws InvalidDataException
blockSizeX
- the number of rows in this block.
InvalidDataException
- if blockSizeX is less then 1public int getBlockSizeY()
public void setBlockSizeY(int blockSizeY) throws InvalidDataException
blockSizeY
- the number of columns in this block.
InvalidDataException
- if blockSizeY is less then 1public int getOriginX()
public void setOriginX(int originX) throws InvalidDataException
originX
- the distance from the edge
InvalidDataException
- if originX is less then 0public int getOriginY()
public void setOriginY(int originY) throws InvalidDataException
originY
- the distance from the edge
InvalidDataException
- if originY is less then 0public int getSpacingX()
public void setSpacingX(int spacingX) throws InvalidDataException
spacingX
- the spacing between the spots
InvalidDataException
- if spacingX is less then 0public int getSpacingY()
public void setSpacingY(int spacingY) throws InvalidDataException
spacingY
- the spacing between the spots
InvalidDataException
- if spacingY is less then 0public int getFeatureDiameter()
public void setFeatureDiameter(int diameter) throws InvalidDataException
diameter
- The expected diameter
InvalidDataException
- If the diameter is less then 0public boolean hasFeatures()
ArrayDesignBlock
has any features.
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |