public class CCF extends java.lang.Object implements ICCFProvider
Constructor and Description |
---|
CCF()
Create new in-memory CCF File for TS1000.
|
CCF(ProntoModel model)
Create new in-memory CCF File.
|
Modifier and Type | Method and Description |
---|---|
void |
appendDevice(CCFDevice dev)
Add a device to the end of the normal device list.
|
void |
appendHomeDevice(CCFDevice dev)
Add a device to the end of the home device list.
|
void |
appendMacroDevice(CCFDevice dev)
Add a device to the end of the macro device list.
|
CCF |
ccf() |
void |
conformTo(ProntoModel model)
Enforce that the CCF will conform to the requirements
of a specific Pronto/Marantz model.
|
CCFDevice |
createDevice()
Create a new Device
|
CCFDevice |
createDevice(java.lang.String name)
Create a new Device
|
CCFIRCode |
createIRCode(java.lang.String code) |
void |
decode(byte[] b)
Decode CCF from it's raw byte representation.
|
byte[] |
encode()
Encode the ccf into it's raw byte representation.
|
ProntoModel[] |
getConformsMatch() |
ProntoModel |
getConformsTo(ProntoModel def) |
CCFDevice |
getDeviceByName(java.lang.String name)
Return the first Device with the specified name.
|
CCFPanel |
getDeviceTemplate()
Get custom device template.
|
CCFDevice |
getFirstDevice()
Return the first regular Device.
|
CCFDevice |
getFirstHomeDevice()
Return the first Home Device.
|
CCFDevice |
getFirstMacroDevice()
Return the first macro Device.
|
com.neuron.app.tonto.CCFNodeState |
getLastNodeState() |
CCFPanel |
getMacroPanel()
Get macro edit panel.
|
CCFPanel |
getMacroTemplate()
Get custom macro template.
|
CCFPanel |
getMasterTemplate()
Get custom master template.
|
ProntoModel |
getModel() |
java.util.Date |
getModifiedDate()
Return the modification date.
|
java.awt.Dimension |
getScreenSize() |
java.awt.Dimension |
getScreenSize(java.awt.Dimension def) |
java.awt.Dimension |
getScreenSize(ProntoModel def) |
CCFColor |
getTransparentColor() |
java.lang.String |
getVersionString()
Return the version identifier.
|
boolean |
isColor() |
boolean |
isConfigReadOnly()
Returns true if this configuration is read only.
|
boolean |
isFactoryCCF()
Returns true if this configuration is a factory default.
|
boolean |
isHomeReadOnly()
Returns true if the home panel is read only.
|
boolean |
isTransparentColor(CCFColor color) |
void |
load(java.lang.String file)
Read CCF image from file.
|
byte[] |
loadBytesFromPronto()
Read raw CCF image from Pronto.
|
void |
loadFromPronto()
Read CCF image from Pronto.
|
void |
merge(CCF c)
Merge another CCF into this one by appending
all devices from the merged CCF.
|
void |
save(java.lang.String file)
Save CCF image to named file.
|
void |
saveToPronto()
Save CCF image to Pronto.
|
void |
saveToPronto(com.neuron.app.tonto.Comm c)
Save CCF image to Pronto.
|
void |
setConfigReadOnly(boolean flag)
Sets the configuration read only flag.
|
void |
setFactoryCCF(boolean flag)
Sets the configuration as factory default.
|
void |
setFirstDevice(CCFDevice dev)
Set the first regular Device.
|
void |
setFirstHomeDevice(CCFDevice dev)
Set the first Home Device.
|
void |
setFirstMacroDevice(CCFDevice dev)
Set the first macro Device.
|
void |
setHomeReadOnly(boolean flag)
Sets the home panel read only flag.
|
void |
setModified()
Update the modification date.
|
void |
setModifiedDate(java.util.Date date)
Set the modification date.
|
void |
setNotify(ITaskStatus status) |
void |
setScreenSize(int w,
int h) |
void |
setTransparentColor(CCFColor color) |
void |
setUseRemoteCapability(boolean tf) |
void |
setVersionString(java.lang.String ver)
Set the version identifier.
|
java.lang.String |
toString() |
boolean |
usesRemoteCapability() |
boolean |
usesUDB() |
public CCF()
public CCF(ProntoModel model)
public CCF ccf()
ccf
in interface ICCFProvider
public boolean usesUDB()
public boolean isColor()
public boolean usesRemoteCapability()
public void setUseRemoteCapability(boolean tf)
public com.neuron.app.tonto.CCFNodeState getLastNodeState()
public CCFIRCode createIRCode(java.lang.String code)
public void setScreenSize(int w, int h)
public java.awt.Dimension getScreenSize()
public java.awt.Dimension getScreenSize(java.awt.Dimension def)
public CCFColor getTransparentColor()
public void setTransparentColor(CCFColor color)
public boolean isTransparentColor(CCFColor color)
public java.awt.Dimension getScreenSize(ProntoModel def)
public void conformTo(ProntoModel model)
public ProntoModel getConformsTo(ProntoModel def)
public ProntoModel getModel()
public ProntoModel[] getConformsMatch()
public void load(java.lang.String file) throws java.io.IOException
file
- name of file to readjava.io.IOException
public void decode(byte[] b)
public void loadFromPronto() throws java.lang.Exception
java.lang.Exception
public byte[] loadBytesFromPronto() throws java.lang.Exception
java.lang.Exception
public void save(java.lang.String file) throws java.io.IOException
file
- name of file to write image tojava.io.IOException
public byte[] encode() throws java.io.IOException
java.io.IOException
public void saveToPronto() throws java.lang.Exception
java.lang.Exception
public void saveToPronto(com.neuron.app.tonto.Comm c) throws java.lang.Exception
java.lang.Exception
public CCFDevice getFirstHomeDevice()
public void setFirstHomeDevice(CCFDevice dev)
public CCFDevice getFirstDevice()
public CCFDevice getDeviceByName(java.lang.String name)
name
- name of device to locate.public CCFDevice createDevice()
public CCFDevice createDevice(java.lang.String name)
public void setFirstDevice(CCFDevice dev)
public CCFDevice getFirstMacroDevice()
public void setFirstMacroDevice(CCFDevice dev)
public CCFPanel getMacroPanel()
public CCFPanel getMasterTemplate()
public CCFPanel getDeviceTemplate()
public CCFPanel getMacroTemplate()
public void appendHomeDevice(CCFDevice dev)
public void appendDevice(CCFDevice dev)
public void appendMacroDevice(CCFDevice dev)
public void setNotify(ITaskStatus status)
public void merge(CCF c)
public java.lang.String getVersionString()
public void setVersionString(java.lang.String ver)
public java.util.Date getModifiedDate()
public void setModifiedDate(java.util.Date date)
public void setModified()
public boolean isFactoryCCF()
public boolean isConfigReadOnly()
public boolean isHomeReadOnly()
public void setFactoryCCF(boolean flag)
flag
- new status of the factory flagpublic void setConfigReadOnly(boolean flag)
flag
- new status of the config read only flagpublic void setHomeReadOnly(boolean flag)
flag
- new status of the home panel read only flagpublic java.lang.String toString()
toString
in class java.lang.Object