APIdia Launch Partner
Top Description Inners Fields Constructors Methods
sun.awt

public Class XSettings

extends Object
Class Inheritance
Known Direct Subclasses
sun.awt.X11.XAWTXSettings
Imports
java.awt.Color, java.util.HashMap, .Map

Per-screen XSETTINGS.

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv class

Field Summary

Modifier and TypeField and Description
private long

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Map<String, Object>

Returns:

a Map of changed settings.
update
(byte[]
settings data obtained from _XSETTINGS_SETTINGS window property of the settings manager.
data
)

Update these settings with data obtained from XSETTINGS manager.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

serialback to summary
private long serial

Constructor Detail

XSettingsback to summary
public XSettings()

Method Detail

updateback to summary
public Map<String, Object> update(byte[] data)

Update these settings with data obtained from XSETTINGS manager.

Parameters
data:byte[]

settings data obtained from _XSETTINGS_SETTINGS window property of the settings manager.

Returns:Map<String, Object>

a Map of changed settings.

sun.awt back to summary

pack-priv final Class XSettings.Update

extends Object
Class Inheritance

TBS ...

Field Summary

Modifier and TypeField and Description
private static final int
private byte[]
private int
private int
private boolean
private boolean
private static final int
private int
private long
private static final int
private static final int
private static final int
private HashMap<String, Object>

Constructor Summary

AccessConstructor and Description
pack-priv
Update(byte[]
_XSETTINGS_SETTINGS contents.
data
)

Construct an Update object for the data read from _XSETTINGS_SETTINGS property of the XSETTINGS selection owner.

Method Summary

Modifier and TypeMethod and Description
private int
private long
private int
private int
private String
getString(int len)

private void
needBytes(int n)

public Map<String, Object>
update()

Update settings.

private void
updateOne(long currentSerial)

Parses a particular x setting.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

BIG_ENDIANback to summary
private static final int BIG_ENDIAN
databack to summary
private byte[] data
dlenback to summary
private int dlen
idxback to summary
private int idx
isLittleback to summary
private boolean isLittle
isValidback to summary
private boolean isValid
LITTLE_ENDIANback to summary
private static final int LITTLE_ENDIAN
nsettingsback to summary
private int nsettings
serialback to summary
private long serial
TYPE_COLORback to summary
private static final int TYPE_COLOR
TYPE_INTEGERback to summary
private static final int TYPE_INTEGER
TYPE_STRINGback to summary
private static final int TYPE_STRING
updatedSettingsback to summary
private HashMap<String, Object> updatedSettings

Constructor Detail

Updateback to summary
pack-priv Update(byte[] data)

Construct an Update object for the data read from _XSETTINGS_SETTINGS property of the XSETTINGS selection owner.

Parameters
data:byte[]

_XSETTINGS_SETTINGS contents.

Method Detail

getCARD16back to summary
private int getCARD16() throws IndexOutOfBoundsException
getCARD32back to summary
private long getCARD32() throws IndexOutOfBoundsException
getCARD8back to summary
private int getCARD8() throws IndexOutOfBoundsException
getINT32back to summary
private int getINT32() throws IndexOutOfBoundsException
getStringback to summary
private String getString(int len) throws IndexOutOfBoundsException
needBytesback to summary
private void needBytes(int n) throws IndexOutOfBoundsException
updateback to summary
public Map<String, Object> update()

Update settings.

updateOneback to summary
private void updateOne(long currentSerial) throws IndexOutOfBoundsException, IllegalArgumentException

Parses a particular x setting.

Exceptions
IndexOutOfBoundsException:
if there isn't enough data for a setting.