|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectCADI.Client.ClientLogicalTarget.ClientLogicalTarget
public abstract class ClientLogicalTarget
This class is an interface which must implemented by all supported logical targets in the JPIP Client.
| Field Summary | |
|---|---|
protected int[] |
components
|
protected ImageData |
imageData
This object is the container where the decoder saves the recovered image and it will read by the client application (tipically, a graphical user interface). |
protected int |
imageDataType
|
protected boolean |
initialized
It indicates whether the object has been initialized or no. |
protected CADILog |
log
Definition in Client.log. |
protected int |
logicalTargetType
Identifies the logical target type. |
protected int |
maxComponents
|
protected java.lang.String |
target
Definition in TargetField.target |
protected java.lang.String |
tid
Definition in TargetField.tid |
protected int |
xSize
Definition in SIZParameters.xSize |
protected int |
ySize
Definition in SIZParameters.ySize |
protected int |
zSize
Definition in SIZParameters.zSize |
| Constructor Summary | |
|---|---|
ClientLogicalTarget()
|
|
| Method Summary | |
|---|---|
abstract void |
decode(ViewWindowField viewWindow,
ImageData dstImageData)
This method must implement the decode engine of the logical target. |
abstract void |
decode(ViewWindowField requestViewWindow,
ViewWindowField responseViewWindow,
ImageData dstImageData)
This method must implement the decode engine of the logical target. |
abstract int[] |
getFrameSize(int resolutionLevel)
Returns the frame size of the resolution level specified. |
abstract int[][] |
getFrameSizes()
Returns all available frame sizes. |
int |
getHeight()
Return the image height |
ImageData |
getImageData()
Returns the imageData attribute. |
abstract java.lang.String |
getLogicalTargetDescription()
This method gets a description of the logical target. |
int |
getLogicalTargetType()
Returns the type of the logical target. |
int |
getMaxComponents()
Returns the maximum number of components ( zSize attribute). |
abstract int |
getMaxLayers()
Returns the maximum number of layers. |
abstract int |
getMaxResolutionLevels()
Returns the maximum number of resolution levels. |
java.lang.String |
getTarget()
Returns the target attribute. |
java.lang.String |
getTID()
Returns the tid attribute. |
int |
getWidth()
Return the image width. |
boolean |
isInitialized()
Indicates whether the object has been initialized. |
void |
list(java.io.PrintStream out)
Prints this Client Logical Target fields out to the specified output stream. |
abstract void |
setCache(ClientCacheManagement clientCache)
Sets the client cache for this logical target. |
void |
setLog(CADILog log)
Sets the log object. |
void |
setLogicalTargetType(int logicalTargetType)
Sets the logical target type. |
void |
setTarget(java.lang.String target)
Sets the target attribute. |
void |
setTID(java.lang.String tid)
Sets the tid attribue. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected int logicalTargetType
LogicalTargetTypesprotected java.lang.String tid
TargetField.tid
protected java.lang.String target
TargetField.target
protected ImageData imageData
protected int imageDataType
protected int zSize
SIZParameters.zSize
protected int maxComponents
protected int[] components
protected int ySize
SIZParameters.ySize
protected int xSize
SIZParameters.xSize
protected boolean initialized
initialized attribute will be false.
protected CADILog log
Client.log.
| Constructor Detail |
|---|
public ClientLogicalTarget()
| Method Detail |
|---|
public final int getLogicalTargetType()
logicalTargetType attribute.public abstract void setCache(ClientCacheManagement clientCache)
clientCache - the client cache.public final java.lang.String getTarget()
target attribute.
target attribute.public final ImageData getImageData()
imageData attribute.
imageData attribute.public final java.lang.String getTID()
tid attribute.
tid attributepublic final void setLogicalTargetType(int logicalTargetType)
logicalTargetType - the logical target type.public final void setTarget(java.lang.String target)
target attribute.
target - the target attribute.public final void setTID(java.lang.String tid)
tid attribue.
tid - the tid attribute.
public abstract void decode(ViewWindowField viewWindow,
ImageData dstImageData)
throws ErrorException
viewWindow - the Window Of Interest to decode.dstImageData - an object where the decode image must be saved.
ErrorException - if the Window Of Interest cannot be decoded.
public abstract void decode(ViewWindowField requestViewWindow,
ViewWindowField responseViewWindow,
ImageData dstImageData)
throws ErrorException
decode(ViewWindowField, ImageData) method.
requestViewWindow - the Window Of Interest which the user is
requesting for.responseViewWindow - the Window Of Interest which the server has
sent.dstImageData - an object where the decode image must be saved.
ErrorException - if the Window Of Interest cannot be decoded.public final boolean isInitialized()
initialized attribute.
public abstract int[] getFrameSize(int resolutionLevel)
resolutionLevel - the resolution level.
public abstract int[][] getFrameSizes()
0 for width and 1 for the height.public final int getMaxComponents()
zSize attribute).
public abstract int getMaxResolutionLevels()
public abstract int getMaxLayers()
public abstract java.lang.String getLogicalTargetDescription()
public final int getWidth()
public final int getHeight()
public final void setLog(CADILog log)
log - log object.public java.lang.String toString()
toString in class java.lang.Objectpublic void list(java.io.PrintStream out)
out - an output stream.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||