|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.cisco.ipphone.sdk.CIPImage
public class CIPImage
Title: CIPImage Description: Handles conversion of Java Images Copyright: Copyright (c) 2002 Company: Cisco Systems, Inc.
| Field Summary | |
|---|---|
int |
DEFAULT_DEPTH
|
int |
MAX_DEPTH
|
| Constructor Summary | |
|---|---|
CIPImage()
This default constructor creates a new CIPImage object with contains an empty image. |
|
CIPImage(java.awt.image.BufferedImage i)
This constructor creates a CIPImage object from a java.awt.Image.BufferedImage object. |
|
CIPImage(java.io.File f)
This constructor creates a CIPImage object from a Java File object. |
|
CIPImage(java.lang.String xml)
This constructor creates a CIPImage object from an XML String. |
|
| Method Summary | |
|---|---|
java.awt.image.BufferedImage |
getBufferedImage()
This method returns a java.awt.Image.BufferedImage object based on the CIPImage. |
int |
getDepth()
|
int |
getHeight()
|
java.awt.Point |
getLocation()
|
java.lang.String |
getPrompt()
|
java.lang.String |
getTitle()
|
int |
getWidth()
|
int |
getX()
|
int |
getY()
|
boolean |
loadCIP(java.io.File f)
This method loads a CiscoIPPhoneImage from a file referenced by a java.io.File object. |
boolean |
loadCIPFromBuffer(java.lang.String xml)
This method loads a CiscoIPPhoneImage object from a String. |
boolean |
loadImage(java.awt.image.BufferedImage image)
This method loads a java.awt.Image.BufferedImage object into the CIPImage object performing the necessary color conversion automatically. |
void |
readData(java.io.DataInputStream in)
This method is used for custom serialization of the CIPImage object. |
java.lang.String |
saveCIPDataToBuffer()
This method returns the raw ASCII Hex data contained in the CIPImage object - no XML tags. |
java.lang.String |
saveCIPToBuffer()
This method returns the entire CiscoIPPhoneImage XML object in a String. |
void |
setLocation(int x,
int y)
|
void |
setLocation(java.awt.Point p)
|
void |
setPrompt(java.lang.String prompt)
|
void |
setTitle(java.lang.String title)
|
void |
setX(int x)
|
void |
setY(int y)
|
void |
writeData(java.io.DataOutputStream out)
This method is used for custom serialization of the CIPImage object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final int MAX_DEPTH
public final int DEFAULT_DEPTH
| Constructor Detail |
|---|
public CIPImage()
public CIPImage(java.lang.String xml)
xml - String containing a CiscoIPPhoneImage XML object to be loadedpublic CIPImage(java.io.File f)
f - java.io.file object referencing a CiscoIPPhoneImage XML file to be loadedpublic CIPImage(java.awt.image.BufferedImage i)
i - BufferedImage object to be loaded| Method Detail |
|---|
public java.awt.image.BufferedImage getBufferedImage()
public boolean loadImage(java.awt.image.BufferedImage image)
image - BufferedImage object to be loaded
public boolean loadCIP(java.io.File f)
f - java.io.file object referencing a CiscoIPPhoneImage XML file to be loaded
public boolean loadCIPFromBuffer(java.lang.String xml)
xml - String containing a CiscoIPPhoneImage XML object to be loaded
public void writeData(java.io.DataOutputStream out)
out - DataOutputStream to which the CIPImage is serializedpublic void readData(java.io.DataInputStream in)
in - DataInputStream from which the CIPImage is deserializedpublic java.lang.String saveCIPDataToBuffer()
public java.lang.String saveCIPToBuffer()
public java.lang.String getTitle()
public void setTitle(java.lang.String title)
title - Sets the Title of the CiscoIPPhoneImage equal to titlepublic java.lang.String getPrompt()
public void setPrompt(java.lang.String prompt)
prompt - Sets the Prompt of the CiscoIPPhoneImage equal to promptpublic int getX()
public int getY()
public void setX(int x)
x - Sets the current LocationX of the CiscoIPPhoneImage xpublic void setY(int y)
y - Sets the current LocationY of the CiscoIPPhoneImage ypublic java.awt.Point getLocation()
public void setLocation(java.awt.Point p)
p - Sets the current Location of the CiscoIPPhoneImage to the specified java.awt.Point
public void setLocation(int x,
int y)
x - LocationX of the CiscoIPPhoneImagey - LocationY of the CiscoIPPhoneImagepublic int getWidth()
public int getHeight()
public int getDepth()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||