org.sump.analyzer
Interface Configurable

All Known Implementing Classes:
DeviceController, Diagram, DiagramLabels, DiagramSettings, I2CProtocolAnalysis, SPIProtocolAnalysis, StateAnalysis

public interface Configurable

This interface defines the methods required to make (UI) object states controllable by the project mechanism.

Its methods are called by Project when storing or loading the project state. A project state is the collection of states of all user configurable items.

Note: When defining property values it should be kept in mind that the project configuration file should be understandable and editable by users. Use common sense to determine wheter a particular setting should be part of the project configuration or not. For key naming conventions please look at an actual configuration file.

Version:
0.7
Author:
Michael "Mr. Sump" Poppitz

Method Summary
 void readProperties(Properties properties)
          Reads configuration from given properties.
 void writeProperties(Properties properties)
          Writes configuration to given properties.
 

Method Detail

readProperties

void readProperties(Properties properties)
Reads configuration from given properties. UI element settings must be modified according to the properties found.

Parameters:
properties - properties to read configuration from

writeProperties

void writeProperties(Properties properties)
Writes configuration to given properties. Properties must be set according to the UI element settings.

Parameters:
properties - properties to write configuration to