public class IRSignal
extends java.lang.Object
implements java.io.Serializable, android.os.Parcelable
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<IRSignal> |
CREATOR |
static java.lang.String |
TAG |
static int |
VIEW_POSITION_INVALID |
Constructor and Description |
---|
IRSignal()
コンストラクタ。
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
copyFrom(IRSignal signal,
android.content.Context context)
引数のIRSignalの内容をこのインスタンスにコピーします。
Copy contents from the given IRSignal to this instance.
|
int |
describeContents() |
void |
export(java.util.HashMap<java.lang.String,java.lang.String> map)
引数のHashMapにformatとfreqを追加します。
Export format and freq to the given HashMap.
|
int[] |
getData()
赤外線信号のdataを返します。
Return the data array of this IR signal.
|
java.lang.String |
getDeviceId()
deviceidを返します。
Return the deviceid.
|
java.lang.String |
getFormat()
赤外線信号のformatを返します。
Return the format of this IR signal.
|
float |
getFrequency()
赤外線信号のfreq(キャリア周波数)を返します。
Return the carrier frequency of this IR signal.
|
java.lang.String |
getId()
赤外線信号のidを返します。
Return the id of this IR signal.
|
java.lang.String |
getImageFilename()
アイコンのファイル名を返します。
Return the filename of the icon image.
|
int |
getImageResourceId()
アイコンのリソースIDを返します。
Returns the resource id of the icon image.
|
java.lang.String |
getImageResourceName()
アイコンのリソース名を返します。
Return the resource name of the icon image.
|
java.lang.String |
getName()
赤外線信号の名前を返します。
Return the name of this IR signal.
|
java.lang.String |
getSuggestedImageFilename()
アイコン画像の保存場所として推奨されるファイル名を返します。
Return the suggested filename of the icon image.
|
int |
getViewPosition()
ビューに表示する際の位置を返します。
Return the position in view.
|
boolean |
hasBitmapImage()
ビットマップ画像を持っているかどうかを返します。
Returns whether a bitmap image is associated with this instance.
|
void |
onUpdateImageResourceId(android.content.res.Resources resources)
現在のimageResourceIdを元にimageResourceNameを更新します。
Update imageResourceName based on current imageResourceId.
|
void |
removeBitmapImage()
アイコンのビットマップ画像を削除します。
Unset the bitmap icon image.
|
void |
removeBitmapImage(android.content.Context context)
アイコンのビットマップ画像とファイルを削除します。
Unset the bitmap icon image and delete the associated file.
|
boolean |
renameToSuggestedImageFilename(android.content.Context context)
ビットマップ画像のファイル名を推奨されたファイル名に変更します。
Rename the filename of the bitmap image to a suggested one.
|
void |
setData(int[] data)
赤外線信号のdataをセットします。
Set the data array for this IR signal.
|
void |
setDeviceId(java.lang.String deviceId)
deviceidをセットします。
Set the deviceid.
|
void |
setFormat(java.lang.String format)
赤外線信号のformatをセットします。
Set the format for this IR signal.
|
void |
setFrequency(float frequency)
赤外線信号のfreq(キャリア周波数)をセットします。
Set the carrier frequency for this IR signal.
|
void |
setId(java.lang.String id)
赤外線信号のidをセットします。
Set the id for this IR signal.
|
void |
setImageFilename(java.lang.String imageFilename)
アイコンの画像ファイル名をセットします。ビットマップ画像をアイコンとして使う際に用います。
Set the filename of the icon image.
|
void |
setImageResourceId(int imageResourceId)
リソースIDを使ってアイコンをセットします。imageResourceNameは更新されません。
Set the icon image using resource id.
|
void |
setImageResourceId(int imageResourceId,
android.content.res.Resources res)
リソースIDを使ってアイコンをセットします。imageResourceNameも同時に更新されます。
Set the icon image using resource id.
|
void |
setImageResourceName(java.lang.String imageResourceName)
アイコンのリソース名をセットします。imageResourceIdは更新されません。
Set the resource name for the icon image.
|
void |
setName(java.lang.String name)
赤外線信号の名前をセットします。
Set the name for this IR signal.
|
void |
setViewPosition(int viewPosition)
ビューに表示する際の位置をセットします。
Set the position in view.
|
java.lang.String |
toJson()
APIのリクエストパラメータに使用するためのJSON文字列を返します。
Returns JSON string which will be used for API parameters.
|
java.lang.String |
toString() |
void |
writeToParcel(android.os.Parcel out,
int flags) |
public static final java.lang.String TAG
public static final int VIEW_POSITION_INVALID
public static final android.os.Parcelable.Creator<IRSignal> CREATOR
public int[] getData()
public void setData(int[] data)
data
- 赤外線信号データ。 IR signal data.public java.lang.String getFormat()
public void setFormat(java.lang.String format)
format
- 赤外線信号フォーマット。 IR signal format.public float getFrequency()
public void setFrequency(float frequency)
frequency
- キャリア周波数。 Carrier frequency.public java.lang.String getName()
public void setName(java.lang.String name)
name
- 赤外線信号の名前。 IR signal name.public int getImageResourceId()
public void setImageResourceId(int imageResourceId)
imageResourceId
- リソースID。 Resource id.public void setImageResourceId(int imageResourceId, android.content.res.Resources res)
imageResourceId
- リソースID。 Resource id.res
- Resources objectpublic java.lang.String getImageResourceName()
public void setImageResourceName(java.lang.String imageResourceName)
imageResourceName
- リソース名。 Resource name.public java.lang.String getImageFilename()
public void setImageFilename(java.lang.String imageFilename)
imageFilename
- 内部ストレージ上の画像ファイル名。 Filename of the image on internal storage.public java.lang.String getDeviceId()
public void setDeviceId(java.lang.String deviceId)
deviceId
- deviceidpublic int getViewPosition()
public void setViewPosition(int viewPosition)
viewPosition
- ビュー内の位置。 Position in view.public java.lang.String getId()
public void setId(java.lang.String id)
id
- idpublic java.lang.String getSuggestedImageFilename()
public void copyFrom(IRSignal signal, android.content.Context context)
signal
- コピー元の信号。 Source.context
- Context objectpublic boolean renameToSuggestedImageFilename(android.content.Context context)
context
- Context objectpublic java.lang.String toJson()
public void export(java.util.HashMap<java.lang.String,java.lang.String> map)
map
- HashMap objectpublic boolean hasBitmapImage()
public void removeBitmapImage()
public void removeBitmapImage(android.content.Context context)
context
- Context objectpublic void onUpdateImageResourceId(android.content.res.Resources resources)
resources
- Resources objectpublic java.lang.String toString()
toString
in class java.lang.Object
public int describeContents()
describeContents
in interface android.os.Parcelable
public void writeToParcel(android.os.Parcel out, int flags)
writeToParcel
in interface android.os.Parcelable