|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbibliothek.gui.dock.facile.mode.LocationSettingConverter
public class LocationSettingConverter
A ModeSettingsConverter for the LocationModeManager.
| Constructor Summary | |
|---|---|
LocationSettingConverter(DockController controller)
Creates a new converter. |
|
LocationSettingConverter(PropertyTransformer transformer)
Creates a new converter. |
|
| Method Summary | |
|---|---|
void |
addFactory(DockablePropertyFactory factory)
Adds an additional factory to this converter, needed to read and write DockablePropertys. |
Location |
convertToSetting(Location a)
Converts a property from the inside world into the world outside. |
Location |
convertToWorld(Location b)
Converts a property from the outside world into the world of this setting. |
Location |
readProperty(DataInputStream in)
Reads a single property. |
Location |
readPropertyXML(XElement element)
Reads a single property. |
void |
writeProperty(Location element,
DataOutputStream out)
Writes a single property of this setting. |
void |
writePropertyXML(Location b,
XElement element)
Writes a single property as xml element. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LocationSettingConverter(DockController controller)
controller - the controller in whose realm settings need to be convertedpublic LocationSettingConverter(PropertyTransformer transformer)
transformer - transfomer used to read DockablePropertys.| Method Detail |
|---|
public void addFactory(DockablePropertyFactory factory)
DockablePropertys.
factory - the additional factorypublic Location convertToSetting(Location a)
ModeSettingsConverter
convertToSetting in interface ModeSettingsConverter<Location,Location>a - the property from inside
public Location convertToWorld(Location b)
ModeSettingsConverter
convertToWorld in interface ModeSettingsConverter<Location,Location>b - a property from outside
public void writeProperty(Location element,
DataOutputStream out)
throws IOException
ModeSettingsConverter
writeProperty in interface ModeSettingsConverter<Location,Location>element - the property to writeout - the stream to write into
IOException - if an I/O-error occurs
public Location readProperty(DataInputStream in)
throws IOException
ModeSettingsConverter
readProperty in interface ModeSettingsConverter<Location,Location>in - the stream to read from
IOException - if an I/O-error occurs
public void writePropertyXML(Location b,
XElement element)
ModeSettingsConverter
writePropertyXML in interface ModeSettingsConverter<Location,Location>b - the property to writeelement - the element to write into, the attributes of the
element must not be changedpublic Location readPropertyXML(XElement element)
ModeSettingsConverter
readPropertyXML in interface ModeSettingsConverter<Location,Location>element - the element to read the property from
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||