ilog.cpl.style
Interface IlpStyleManager

All Known Subinterfaces:
IlpGraphicViewStyleManager
All Known Implementing Classes:
IlpBasicGraphicViewStyleManager, IlpDefaultGraphicViewStyleManager, IlpDefaultStyleManager

Deprecated. The Style API has been replaced by the Cascading Style Sheet mechanism. Refer to the User's Manual for further information.

public interface IlpStyleManager

Style manager interface. The style manager provides access to styles kept in memory or stored in the underlying storage. It also creates new styles when a requested style does not already exist.

Since:
JTGO 3.0
Deprecated Since:
JTGO 3.5

Method Summary
 void cleanup()
          Deprecated. Forces the Style Manager to clean up unnecessary styles, or styles that correspond to objects that are no longer needed by the application.
 IlpStyle getExistingStyle(IlpStyleContext id)
          Deprecated. Gets a style by style context.
 IlpStyle getStyle(Class clazz)
          Deprecated. Gets a style by Java class.
 IlpStyle getStyle(IlpAttribute attribute)
          Deprecated. Gets a style by attribute.
 IlpStyle getStyle(IlpAttribute attribute, IlpClass clazz)
          Deprecated. Gets a style by attribute in the given class.
 IlpStyle getStyle(IlpClass clazz)
          Deprecated. Gets a style by IlpClass.
 IlpStyle getStyle(IlpObject object)
          Deprecated. Gets a style by IlpObject.
 IlpStyle getStyle(IlpStyleContext id)
          Deprecated. Gets a style by style context.
 IlpStyle getStyle(String name)
          Deprecated. Gets a style by name.
 List getStyleContexts()
          Deprecated. Gets a list of all style contexts for available styles.
 void recustomizeStyles()
          Deprecated. Updates the contents of the styles after the style sheets have changed.
 boolean removeStyle(IlpStyleContext id)
          Deprecated. Removes an instance style from the currently buffered styles.
 void resetStyles()
          Deprecated. Cleans the contents of all currently buffered styles.
 

Method Detail

getStyle

IlpStyle getStyle(String name)
Deprecated. 
Gets a style by name. This method is used for named styles.

Parameters:
name - Name of style to retrieve.
Returns:
The requested style.

getStyle

IlpStyle getStyle(IlpClass clazz)
Deprecated. 
Gets a style by IlpClass. This method is used for IlpClass styles.

Parameters:
clazz - IlpClass of style.
Returns:
The requested style.

getStyle

IlpStyle getStyle(IlpObject object)
Deprecated. 
Gets a style by IlpObject. This method is used for IlpObject instance styles.

Parameters:
object - The IlpObject of the style.
Returns:
The requested style.

getStyle

IlpStyle getStyle(IlpAttribute attribute)
Deprecated. 
Gets a style by attribute. This method is used for attribute styles. When retrieving an attribute style, the IlpClass linked in the attribute will be used.

Parameters:
attribute - The IlpAttribute of the style.
Returns:
The requested style.

getStyle

IlpStyle getStyle(IlpAttribute attribute,
                  IlpClass clazz)
Deprecated. 
Gets a style by attribute in the given class. This method is used for attribute styles. When retrieving an attribute style, the IlpClass passed as parameter is used. The IlpClass where the attribute was initially defined must be assignable from the given IlpClass.

Parameters:
attribute - The IlpAttribute of the style.
clazz - The business class that has access to the given attribute.
Returns:
The requested style.

getStyle

IlpStyle getStyle(Class clazz)
Deprecated. 
Gets a style by Java class. This method is used for Java class styles.

Parameters:
clazz - The class of the style.
Returns:
The requested style.

getExistingStyle

IlpStyle getExistingStyle(IlpStyleContext id)
Deprecated. 
Gets a style by style context.

Parameters:
id - The identifier of the style.
Returns:
the style if it is already present in this manager or null if the style does not yet exist.
Since:
JTGO 3.1

getStyle

IlpStyle getStyle(IlpStyleContext id)
Deprecated. 
Gets a style by style context.

Parameters:
id - The identifier of the style.
Returns:
The requested style.

removeStyle

boolean removeStyle(IlpStyleContext id)
Deprecated. 
Removes an instance style from the currently buffered styles.

Parameters:
id - The style context identifying the style.
Returns:
true if the style identified by the given style context has been removed.

getStyleContexts

List getStyleContexts()
Deprecated. 
Gets a list of all style contexts for available styles.

Returns:
List of IlpStyleContexts for all available styles.

resetStyles

void resetStyles()
Deprecated. 
Cleans the contents of all currently buffered styles.


recustomizeStyles

void recustomizeStyles()
Deprecated. 
Updates the contents of the styles after the style sheets have changed.

Since:
JTGO 3.5

cleanup

void cleanup()
Deprecated. 
Forces the Style Manager to clean up unnecessary styles, or styles that correspond to objects that are no longer needed by the application.

Since:
JTGO 3.1


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.   . All Rights Reserved.