|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.gui.dock.facile.mode.LocationSettingConverter
public class LocationSettingConverter
A ModeSettingsConverter
for the LocationModeManager
.
Constructor Summary | |
---|---|
LocationSettingConverter()
|
Method Summary | |
---|---|
void |
addFactory(DockablePropertyFactory factory)
Adds an additional factory to this converter, needed to read and write DockableProperty s. |
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(java.io.DataInputStream in)
Reads a single property. |
Location |
readPropertyXML(XElement element)
Reads a single property. |
void |
writeProperty(Location element,
java.io.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()
Method Detail |
---|
public void addFactory(DockablePropertyFactory factory)
DockableProperty
s.
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, java.io.DataOutputStream out) throws java.io.IOException
ModeSettingsConverter
writeProperty
in interface ModeSettingsConverter<Location,Location>
element
- the property to writeout
- the stream to write into
java.io.IOException
- if an I/O-error occurspublic Location readProperty(java.io.DataInputStream in) throws java.io.IOException
ModeSettingsConverter
readProperty
in interface ModeSettingsConverter<Location,Location>
in
- the stream to read from
java.io.IOException
- if an I/O-error occurspublic 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 |