org.universAAL.ontology.ui.preferences
Class VisualPreferences

Package class diagram package VisualPreferences
java.lang.Object
  extended by org.universAAL.middleware.rdf.Resource
      extended by org.universAAL.middleware.rdf.FinalizedResource
          extended by org.universAAL.middleware.owl.ManagedIndividual
              extended by org.universAAL.middleware.ui.owl.Preference
                  extended by org.universAAL.ontology.ui.preferences.VisualPreferences

public class VisualPreferences
extends Preference


Field Summary
static String MY_URI
           
static String PROP_BACKGROUND_COLOR
           
static String PROP_BRIGHTNESS
           
static String PROP_COMPONENT_SPACING
           
static String PROP_CONTENT_CONTRAST
           
static String PROP_CURSOR_SIZE
           
static String PROP_DAY_NIGHT_MODE
           
static String PROP_FLASHING_RESOURCES
           
static String PROP_FONT_COLOR
           
static String PROP_FONT_FAMILY
           
static String PROP_FONT_SIZE
           
static String PROP_HIGHLIGHT_COLOR
           
static String PROP_SCREEN_RESOLUTION
           
static String PROP_SCREEN_SAVER_USAGE
           
static String PROP_WINDOW_LAYOUT
           
 
Fields inherited from class org.universAAL.middleware.owl.ManagedIndividual
OWL_NAMESPACE, TYPE_OWL_INDIVIDUAL, TYPE_OWL_THING
 
Fields inherited from class org.universAAL.middleware.rdf.Resource
ANON_URI_PREFIX, blockAddingTypes, isXMLLiteral, ns_delim_index, PROP_RDF_FIRST, PROP_RDF_REST, PROP_RDF_TYPE, PROP_RDFS_COMMENT, PROP_RDFS_LABEL, PROP_SERIALIZATION_FULL, PROP_SERIALIZATION_OPTIONAL, PROP_SERIALIZATION_REDUCED, PROP_SERIALIZATION_UNDEFINED, PROP_uAAL_INVOLVED_HUMAN_USER, props, RDF_EMPTY_LIST, RDF_NAMESPACE, RDFS_NAMESPACE, TYPE_RDF_LIST, TYPE_RDFS_CLASS, uAAL_NAMESPACE_PREFIX, uAAL_SERVICE_NAMESPACE, uAAL_VOCABULARY_NAMESPACE, uri
 
Constructor Summary
VisualPreferences()
           
VisualPreferences(String uri)
           
 
Method Summary
 ColorType getBackgroundColor()
           
 Intensity getBrightness()
           
 String getClassURI()
          Get the class URI for this ManagedIndividual.
 Intensity getComponentSpacing()
           
 Intensity getContentContrast()
           
 Size getCursorSize()
           
 Status getDayNightMode()
           
 Status getFlashingResources()
           
 ColorType getFontColor()
           
 GenericFontFamily getFontFamily()
           
 Size getFontSize()
           
 ColorType getHighlightColor()
           
 int getPropSerializationType(String arg0)
          Answers if the given property has to be considered when serializing this individual in a minimized way, and if not ignore-able, whether its value should be presented in its full form or can be reduced.
 Intensity getScreenResolution()
           
 Status getScreenSaverUsage()
           
 WindowLayoutType getWindowLayout()
           
 boolean isWellFormed()
          Returns true, if the state of the resource is valid, otherwise false.
 void setBackgroundColor(ColorType newPropValue)
           
 void setBrightness(Intensity newPropValue)
           
 void setComponentSpacing(Intensity newPropValue)
           
 void setContentContrast(Intensity newPropValue)
           
 void setCursorSize(Size newPropValue)
           
 void setDayNightMode(Status newPropValue)
           
 void setFlashingResources(Status newPropValue)
           
 void setFontColor(ColorType newPropValue)
           
 void setFontFamily(GenericFontFamily newPropValue)
           
 void setFontSize(Size newPropValue)
           
 void setHighlightColor(ColorType newPropValue)
           
 void setScreenResolution(Intensity newPropValue)
           
 void setScreenSaverUsage(Status newPropValue)
           
 void setWindowLayout(WindowLayoutType newPropValue)
           
 
Methods inherited from class org.universAAL.middleware.owl.ManagedIndividual
checkCompatibility, checkMembership, copy, deepCopy, getClassRestrictionsOnProperty, getInstance, getNonAbstractSuperClasses, getNonabstractSuperClasses, getOntClassInfo, getTypeURI, isRegisteredClassURI, setProperty, setPropertyPathFromOffset, toManagedIndividual
 
Methods inherited from class org.universAAL.middleware.rdf.FinalizedResource
addType, getLocalName, getNamespace, getProperty, getPropertyURIs, getType, getTypes, getURI, hasQualifiedName, isAnon, numberOfProperties
 
Methods inherited from class org.universAAL.middleware.rdf.Resource
addMultiLangProp, asList, asList, asRDFList, changeProperty, equals, generateAnonURI, getDefaultLang, getFilename, getMultiLangProp, getOrConstructLabel, getResource, getResourceComment, getResourceLabel, getStaticFieldValue, hashCode, hasProperty, isAnon, isBlockingAddingTypes, isClosedCollection, isQualifiedName, literal, representsQualifiedURI, serializesAsXMLLiteral, setPropertyPath, setPropertyPath, setResourceComment, setResourceLabel, toString, toStringRecursive, toStringRecursive, unliteral
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

MY_URI

public static final String MY_URI
See Also:
Constant Field Values

PROP_BACKGROUND_COLOR

public static final String PROP_BACKGROUND_COLOR
See Also:
Constant Field Values

PROP_FLASHING_RESOURCES

public static final String PROP_FLASHING_RESOURCES
See Also:
Constant Field Values

PROP_DAY_NIGHT_MODE

public static final String PROP_DAY_NIGHT_MODE
See Also:
Constant Field Values

PROP_HIGHLIGHT_COLOR

public static final String PROP_HIGHLIGHT_COLOR
See Also:
Constant Field Values

PROP_WINDOW_LAYOUT

public static final String PROP_WINDOW_LAYOUT
See Also:
Constant Field Values

PROP_FONT_FAMILY

public static final String PROP_FONT_FAMILY
See Also:
Constant Field Values

PROP_BRIGHTNESS

public static final String PROP_BRIGHTNESS
See Also:
Constant Field Values

PROP_CONTENT_CONTRAST

public static final String PROP_CONTENT_CONTRAST
See Also:
Constant Field Values

PROP_SCREEN_RESOLUTION

public static final String PROP_SCREEN_RESOLUTION
See Also:
Constant Field Values

PROP_CURSOR_SIZE

public static final String PROP_CURSOR_SIZE
See Also:
Constant Field Values

PROP_SCREEN_SAVER_USAGE

public static final String PROP_SCREEN_SAVER_USAGE
See Also:
Constant Field Values

PROP_FONT_COLOR

public static final String PROP_FONT_COLOR
See Also:
Constant Field Values

PROP_FONT_SIZE

public static final String PROP_FONT_SIZE
See Also:
Constant Field Values

PROP_COMPONENT_SPACING

public static final String PROP_COMPONENT_SPACING
See Also:
Constant Field Values
Constructor Detail

VisualPreferences

public VisualPreferences()

VisualPreferences

public VisualPreferences(String uri)
Method Detail

getClassURI

public String getClassURI()
Description copied from class: ManagedIndividual
Get the class URI for this ManagedIndividual. All non-abstract subclasses MUST overwrite this method!

Overrides:
getClassURI in class Preference
Returns:
The class URI.
See Also:
ManagedIndividual.getClassURI()

getPropSerializationType

public int getPropSerializationType(String arg0)
Description copied from class: ManagedIndividual
Answers if the given property has to be considered when serializing this individual in a minimized way, and if not ignore-able, whether its value should be presented in its full form or can be reduced. The return value must be one of Resource.PROP_SERIALIZATION_OPTIONAL, Resource.PROP_SERIALIZATION_REDUCED, or Resource.PROP_SERIALIZATION_FULL. It can be assumed that the given property is one of those returned by FinalizedResource.getPropertyURIs(). Decision criterion should be if the value of this property is absolutely necessary when this resource is being sent to a remote node. If the subclass rates it as unlikely that the receiver side would need this info, the answer should be PROP_SERIALIZATION_OPTIONAL in favor of lower communication traffic and higher performance even at risk of a possible additional query on the receiver side for fetching this info. With the same rationale, if a property should be included in the process of serialization, it is preferable to include it in a reduced form; in this case the return value should be PROP_SERIALIZATION_REDUCED, otherwise PROP_SERIALIZATION_FULL can be returned.

Specified by:
getPropSerializationType in class ManagedIndividual
See Also:
(java.lang.String)

isWellFormed

public boolean isWellFormed()
Description copied from class: Resource
Returns true, if the state of the resource is valid, otherwise false.

Subclasses should overwrite this methods as the default implementation returns always true.

Specified by:
isWellFormed in class Preference
See Also:
Resource.isWellFormed()

getBrightness

public Intensity getBrightness()

setBrightness

public void setBrightness(Intensity newPropValue)

getComponentSpacing

public Intensity getComponentSpacing()

setComponentSpacing

public void setComponentSpacing(Intensity newPropValue)

getContentContrast

public Intensity getContentContrast()

setContentContrast

public void setContentContrast(Intensity newPropValue)

getScreenSaverUsage

public Status getScreenSaverUsage()

setScreenSaverUsage

public void setScreenSaverUsage(Status newPropValue)

getBackgroundColor

public ColorType getBackgroundColor()

setBackgroundColor

public void setBackgroundColor(ColorType newPropValue)

getFontColor

public ColorType getFontColor()

setFontColor

public void setFontColor(ColorType newPropValue)

getFontSize

public Size getFontSize()

setFontSize

public void setFontSize(Size newPropValue)

getScreenResolution

public Intensity getScreenResolution()

setScreenResolution

public void setScreenResolution(Intensity newPropValue)

getDayNightMode

public Status getDayNightMode()

setDayNightMode

public void setDayNightMode(Status newPropValue)

getWindowLayout

public WindowLayoutType getWindowLayout()

setWindowLayout

public void setWindowLayout(WindowLayoutType newPropValue)

getFontFamily

public GenericFontFamily getFontFamily()

setFontFamily

public void setFontFamily(GenericFontFamily newPropValue)

getFlashingResources

public Status getFlashingResources()

setFlashingResources

public void setFlashingResources(Status newPropValue)

getHighlightColor

public ColorType getHighlightColor()

setHighlightColor

public void setHighlightColor(ColorType newPropValue)

getCursorSize

public Size getCursorSize()

setCursorSize

public void setCursorSize(Size newPropValue)


Copyright © 2014 universAAL Consortium. All Rights Reserved.