All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class org.w3c.css.aural.ACssPlayDuring

java.lang.Object
   |
   +----org.w3c.css.properties.CssProperty
           |
           +----org.w3c.css.aural.ACssProperty
                   |
                   +----org.w3c.css.aural.ACssPlayDuring

public class ACssPlayDuring
extends ACssProperty
implements CssOperator
  'play-during'

Value: <url> mix? repeat? | auto | none
Initial: auto
Applies to: all elements
Inherited: no
Percentage values: NA

Similar to the cue-before and cue-after properties, this indicates sound to be played during an element as a background (ie the sound is mixed in with the speech).

The optional 'mix' keyword means the sound inherited from the parent element's play-during property continues to play and the current element sound (pointed to by the URL) is mixed with it. If mix is not specified, the sound replaces the sound of the parent element.

The optional 'repeat' keyword means the sound will repeat if it is too short to fill the entire duration of the element. Without this keyword, the sound plays once and then stops. Thuis is similar to the background repeat properties in CSS1. If the sound is too long for the element, it is clipped once the element is spoken.

Auto means that the sound of the parent element continues to play (it is not restarted, which would have been the case if this property inherited)and none means that there is silence - the sound of the parent element (if any) is silent for the current element and continues after the current element.

Examples:

   BLOCKQUOTE.sad {play-during: url(violins.aiff) }
   BLOCKQUOTE Q {play-during: url(harp.wav) mix}
   SPAN.quiet {play-during: none }
 

Note: If a stereo icon is dereferenced the central point of the stereo pair should be placed at the azimuth for that element and the left and right channels should be placed to either side of this position.


Constructor Index

 o ACssPlayDuring()
Create a new ACssPlayDuring
 o ACssPlayDuring(CssExpression)
Creates a new ACssPlayDuring

Method Index

 o addToStyle(CssStyle)
Add this property to the CssStyle.
 o equals(CssProperty)
Compares two properties for equality.
 o get()
Returns the current value
 o getPropertyInStyle(CssStyle, boolean)
Get this property in the style.
 o getPropertyName()
Returns the name of this property
 o getValue()
Returns some usable value of this property...
 o isAuto()
'auto' means that the sound of the parent element continues to play (it is not restarted, which would have been the case if this property inherited).
 o isMix()
The optional 'mix' keyword means the sound inherited from the parent element's play-during property continues to play and the current element sound (pointed to by the URL) is mixed with it.
 o isNone()
'none' means that there is silence.
 o isRepeat()
The optional 'repeat' keyword means the sound will repeat if it is too short to fill the entire duration of the element.
 o isSoftlyInherited()
Returns true if this property is "softly" inherited e.g.
 o toString()
Returns a string representation of the object.

Constructors

 o ACssPlayDuring
 public ACssPlayDuring()
Create a new ACssPlayDuring

 o ACssPlayDuring
 public ACssPlayDuring(CssExpression expression) throws InvalidParamException
Creates a new ACssPlayDuring

Parameters:
expression - the expression of the size
Throws: InvalidParamException
The expression is incorrect

Methods

 o get
 public Object get()
Returns the current value

Overrides:
get in class CssProperty
 o getValue
 public URL getValue() throws IOException
Returns some usable value of this property...

 o isMix
 public boolean isMix()
The optional 'mix' keyword means the sound inherited from the parent element's play-during property continues to play and the current element sound (pointed to by the URL) is mixed with it. If mix is not specified, the sound replaces the sound of the parent element.

 o isRepeat
 public boolean isRepeat()
The optional 'repeat' keyword means the sound will repeat if it is too short to fill the entire duration of the element. Without this keyword, the sound plays once and then stops. Thuis is similar to the background repeat properties in CSS1. If the sound is too long for the element, it is clipped once the element is spoken.

 o isAuto
 public boolean isAuto()
'auto' means that the sound of the parent element continues to play (it is not restarted, which would have been the case if this property inherited).

 o isNone
 public boolean isNone()
'none' means that there is silence. the sound of the parent element (if any) is silent for the current element and continues after the current element.

 o isSoftlyInherited
 public boolean isSoftlyInherited()
Returns true if this property is "softly" inherited e.g. his value is equals to inherit

Overrides:
isSoftlyInherited in class CssProperty
 o toString
 public String toString()
Returns a string representation of the object.

Overrides:
toString in class CssProperty
 o getPropertyName
 public String getPropertyName()
Returns the name of this property

Overrides:
getPropertyName in class CssProperty
 o addToStyle
 public void addToStyle(CssStyle style)
Add this property to the CssStyle.

Parameters:
style - The CssStyle
Overrides:
addToStyle in class CssProperty
 o equals
 public boolean equals(CssProperty property)
Compares two properties for equality.

Parameters:
property - The other property.
Overrides:
equals in class CssProperty
 o getPropertyInStyle
 public CssProperty getPropertyInStyle(CssStyle style,
                                       boolean resolve)
Get this property in the style.

Parameters:
style - The style where the property is
resolve - if true, resolve the style to find this property
Overrides:
getPropertyInStyle in class CssProperty

All Packages  Class Hierarchy  This Package  Previous  Next  Index