fi.hut.tml.xsmiles.gui
Class BrowserConstraints

java.lang.Object
  extended byfi.hut.tml.xsmiles.gui.BrowserConstraints

public class BrowserConstraints
extends java.lang.Object

The BrowserConstraints contains all the relevant information that is needed when choosing the right stylesheet. The existing stylesheet selection logic is the following: - initially use the stylesheet associated with the device (stylesheet title=device title) - if the user chooses to select a different stylesheet, it is possible

Version:
0
Author:
Juha

Constructor Summary
BrowserConstraints(java.lang.String t)
           
 
Method Summary
 int getDisplayDepth()
           
 java.awt.Dimension getDisplaySize()
           
 java.lang.String getPreferredStylesheetTitle()
           
 java.lang.String getRequirementsInRDF()
          Get requirements in CC/PP (RDF) format.
 java.lang.String getTitle()
           
 void setDisplayDepth(int d)
           
 void setDisplaySize(java.awt.Dimension d)
           
 void setPreferredStylesheetTitle(java.lang.String s)
           
 void setTitle(java.lang.String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BrowserConstraints

public BrowserConstraints(java.lang.String t)
Method Detail

setDisplaySize

public void setDisplaySize(java.awt.Dimension d)
Parameters:
d - The size of the display.

setDisplayDepth

public void setDisplayDepth(int d)
Parameters:
d - The depth of the display.

setTitle

public void setTitle(java.lang.String s)

setPreferredStylesheetTitle

public void setPreferredStylesheetTitle(java.lang.String s)

getTitle

public java.lang.String getTitle()
Returns:
The title of the device.

getPreferredStylesheetTitle

public java.lang.String getPreferredStylesheetTitle()
Returns:
The title of the preferred stylesheet.

getDisplaySize

public java.awt.Dimension getDisplaySize()
Returns:
The size of display

getDisplayDepth

public int getDisplayDepth()
Returns:
The depth of display

getRequirementsInRDF

public java.lang.String getRequirementsInRDF()
Get requirements in CC/PP (RDF) format.



X-Smiles 1.2