Oracle Application Server Wireless Java API Reference
B14043-01


oracle.panama.messaging.common
Class Graphics

java.lang.Object
  extended byjava.util.Dictionary
      extended byjava.util.Hashtable
          extended byoracle.panama.messaging.common.Graphics

All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, java.io.Serializable

public class Graphics
extends java.util.Hashtable

This class can be used to create Graphics object that can be sent as OTA Settings.

See Also:
Serialized Form

Field Summary
static java.lang.String GRAPHICS
Key for Graphics.
static java.lang.String GRAPHICS_ENC_OTA_ASCII
Defines OTA ASCII graphics encoding.
static java.lang.String GRAPHICS_ENCODING
Key for graphics encoding.
static java.lang.String GRAPHICS_HEIGHT
Key for graphics height.
static java.lang.String GRAPHICS_TYPE
Key for graphics type.
static java.lang.String GRAPHICS_WIDTH
Key for graphics width.
static java.lang.String GROUP_GRAPHICS
Defines Group graphics graphics type.
static java.lang.String MIME
MIME type Graphics OTA Setting.
static java.lang.String OPERATOR
Key for operator.
static java.lang.String OPERATOR_LOGO
Defines Operator logo graphics type..
static java.lang.String PHONE_MODEL
Key for phone model.
static java.lang.String PICTURE_MESSAGE
Defines Picture message graphics type.

Constructor Summary
Graphics()
Constructor.

Method Summary
void setGraphics(java.lang.String image)
Set the required graphics as a string.
void setGraphicsEncoding(java.lang.String enc)
Set the required graphics encoding format.
void setGraphicsHeight(int height)
If the encoding is not OTA_ASCII, the height of the bitmap is required.
void setGraphicsType(java.lang.String type)
Set the required graphics type.
void setGraphicsWidth(int width)
If the encoding is not OTA_ASCII, the width of the bitmap is required.
void setOperator(java.lang.String operator)
If the encoding is not OTA_ASCII, and the graphcs is of type OPERATOR_LOGO, the operator name is required.
void setPhoneModel(java.lang.String model)
Set the required phone model.

Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, remove, size, toString, values

Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait

Field Detail

GRAPHICS

public static final java.lang.String GRAPHICS
Key for Graphics.
See Also:
Constant Field Values

GRAPHICS_ENC_OTA_ASCII

public static final java.lang.String GRAPHICS_ENC_OTA_ASCII
Defines OTA ASCII graphics encoding.
See Also:
Constant Field Values

GRAPHICS_ENCODING

public static final java.lang.String GRAPHICS_ENCODING
Key for graphics encoding.
See Also:
Constant Field Values

GRAPHICS_HEIGHT

public static final java.lang.String GRAPHICS_HEIGHT
Key for graphics height.
See Also:
Constant Field Values

GRAPHICS_TYPE

public static final java.lang.String GRAPHICS_TYPE
Key for graphics type.
See Also:
Constant Field Values

GRAPHICS_WIDTH

public static final java.lang.String GRAPHICS_WIDTH
Key for graphics width.
See Also:
Constant Field Values

GROUP_GRAPHICS

public static final java.lang.String GROUP_GRAPHICS
Defines Group graphics graphics type.
See Also:
Constant Field Values

MIME

public static final java.lang.String MIME
MIME type Graphics OTA Setting.
See Also:
Constant Field Values

OPERATOR

public static final java.lang.String OPERATOR
Key for operator.
See Also:
Constant Field Values

OPERATOR_LOGO

public static final java.lang.String OPERATOR_LOGO
Defines Operator logo graphics type..
See Also:
Constant Field Values

PHONE_MODEL

public static final java.lang.String PHONE_MODEL
Key for phone model.
See Also:
Constant Field Values

PICTURE_MESSAGE

public static final java.lang.String PICTURE_MESSAGE
Defines Picture message graphics type.
See Also:
Constant Field Values

Constructor Detail

Graphics

public Graphics()
Constructor.

Method Detail

setGraphics

public void setGraphics(java.lang.String image)
Set the required graphics as a string. The enoding should be set separately.
Parameters:
image - the graphics.

setGraphicsEncoding

public void setGraphicsEncoding(java.lang.String enc)
Set the required graphics encoding format. Only bitmap and OTA_ASCII format are supported by the shipped GSM Smart Message encoder. If another GSMSmartMsgEncoder is plugged in, other formats supported by that encoder should be supported as well. The bitmap format is well known, and supported by all shipped SMS drivers. The OTA_ASCII format is supported only by an internal driver running on messenger.oracle.com.

setGraphicsHeight

public void setGraphicsHeight(int height)
If the encoding is not OTA_ASCII, the height of the bitmap is required.

setGraphicsType

public void setGraphicsType(java.lang.String type)
Set the required graphics type. It can be either one of: OPERATOR_LOGO, GROUP_GRAPHICS or PICTURE_MESSAGE.

setGraphicsWidth

public void setGraphicsWidth(int width)
If the encoding is not OTA_ASCII, the width of the bitmap is required.

setOperator

public void setOperator(java.lang.String operator)
If the encoding is not OTA_ASCII, and the graphcs is of type OPERATOR_LOGO, the operator name is required.

setPhoneModel

public void setPhoneModel(java.lang.String model)
Set the required phone model. The phone model should be of the format: "band type", for example: "Nokia 6210", "Ericsson R380". It is case insensitive.

Oracle Application Server Wireless Java API Reference
B14043-01


Copyright © 2004 Oracle Corporation. All Rights Reserved.