@Deprecated public class IlpBasicGraphicViewStyleManager extends Object implements IlpGraphicViewStyleManager
The basic graphic view style manager creates styles to configure representation objects and attributes of representation objects. The whole business class configuration should be implemented using the shared styles accessible through the Style Manager.
IlpStyleManager| Constructor and Description |
|---|
IlpBasicGraphicViewStyleManager(IlpContext context,
IlpGraphicView graphicView)
Deprecated.
Creates a basic graphic view style manager, based on the given
context and to be used by the given graphic view.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
IlpStyleManager |
getDefaultStyleManager()
Deprecated.
Returns the default style manager used by this configuration.
|
IlpStyle |
getExistingStyle(IlpStyleContext styleContext)
Deprecated.
Gets a style by style context.
|
IlpStyle |
getStyle()
Deprecated.
Returns the style specified for this view.
|
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 the style of an
IlpClass. |
IlpStyle |
getStyle(IlpObject object)
Deprecated.
Gets a style by
IlpObject. |
IlpStyle |
getStyle(IlpRepresentationObject ro)
Deprecated.
Return the correct style for this representation object.
|
IlpStyle |
getStyle(IlpRepresentationObject ro,
IlpAttribute attribute)
Deprecated.
Return the correct style for this representation object.
|
IlpStyle |
getStyle(IlpStyleContext styleContext)
Deprecated.
Gets a style by style context.
|
IlpStyle |
getStyle(String name)
Deprecated.
Gets a style by name.
|
List |
getStyleContexts()
Deprecated.
Returns a list of all contexts for available styles.
|
IlpGraphicView |
getView()
Deprecated.
Returns the graphic view which is using this configuration.
|
Collection |
loadStyleModule(String name)
Deprecated.
Loads all styles from a module into the buffer.
|
void |
loadStyles()
Deprecated.
Loads all available styles into the buffer.
|
protected IlpStyle |
prepareCustomAttributeStyle(IlpStyleContext instanceContext)
Deprecated.
Prepares the style for an attribute which is only available in
the graphic view.
|
protected IlpStyle |
prepareGraphicViewStyle(IlpStyleContext instanceContext)
Deprecated.
Prepares the graphic view style.
|
protected IlpStyle |
prepareROAttributeStyle(IlpStyleContext instanceContext)
Deprecated.
Prepares the style for an attribute in a representation object
|
protected IlpStyle |
prepareROStyle(IlpStyleContext instanceContext)
Deprecated.
Prepares the representation object style.
|
void |
recustomizeStyles()
Deprecated.
Updates the contents of the styles after the style sheets have changed.
|
boolean |
removeStyle(IlpRepresentationObject ro)
Deprecated.
Remove an instance style from the currently buffered styles.
|
boolean |
removeStyle(IlpStyleContext id)
Deprecated.
Removes a style with the given id.
|
void |
resetStyles()
Deprecated.
Cleans the contents of all currently buffered styles.
|
void |
saveStyles()
Deprecated.
Saves all buffered styles to the underlying storage.
|
void |
saveStyles(File outputFile)
Deprecated.
Saves all buffered styles to the given underlying storage.
|
public IlpBasicGraphicViewStyleManager(IlpContext context, IlpGraphicView graphicView)
context - Context.graphicView - Graphic view.public IlpStyleManager getDefaultStyleManager()
getDefaultStyleManager in interface IlpGraphicViewStyleManagerpublic IlpGraphicView getView()
public IlpStyle getStyle()
getStyle in interface IlpGraphicViewStyleManagerpublic IlpStyle getStyle(IlpRepresentationObject ro)
The style created for the given representation object will contain a list of pre-defined default styles, which are listed below:
getStyle in interface IlpGraphicViewStyleManagerro - Representation object.public IlpStyle getStyle(IlpRepresentationObject ro, IlpAttribute attribute)
The style created for the given attribute in the representation object contains a pre-defined default style:
If the attribute is not defined in a business object class, this style contains
getStyle in interface IlpGraphicViewStyleManagerro - Representation object.attribute - Attribute linked to representation object.public IlpStyle getStyle(String name)
Important: Returns the shared style instance corresponding to the given name. Changing the returned style may affect your whole application.
getStyle in interface IlpStyleManagername - The name of the style to retrieve.public IlpStyle getStyle(IlpClass clazz)
IlpClass. This method is used for IlpClass styles.
Important : Returns the shared style instance which corresponds to the given business class. Changing the returned style may affect your whole application.
getStyle in interface IlpStyleManagerclazz - The IlpClass associated with the style.public IlpStyle getStyle(IlpObject object)
IlpObject. This method is used for IlpObject
instance styles.
Important : Returns the shared style instance which corresponds to the given business object. Changing the returned style may affect all representations of the given object.
getStyle in interface IlpStyleManagerobject - The IlpObject of the style.public IlpStyle getStyle(IlpAttribute attribute)
Important : Returns the shared style instance which corresponds to the given business attribute. Changing the returned style may affect your whole application.
getStyle in interface IlpStyleManagerattribute - The IlpAttribute of the style.public IlpStyle getStyle(IlpAttribute attribute, IlpClass clazz)
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.
Important : Returns the shared style instance which corresponds to the given business attribute. Changing the returned style may affect your whole application.
getStyle in interface IlpStyleManagerattribute - The IlpAttribute of the style.clazz - The business class where this attribute is contained.public IlpStyle getStyle(Class clazz)
Important : Returns the shared style instance which corresponds to the given Java class. Changing the returned style may affect your whole application.
getStyle in interface IlpStyleManagerclazz - The class of the style.public void resetStyles()
resetStyles in interface IlpStyleManagerpublic void recustomizeStyles()
recustomizeStyles in interface IlpStyleManagerpublic void saveStyles()
public void saveStyles(File outputFile)
public void loadStyles()
public Collection loadStyleModule(String name)
name - Name of style module.IlpStyleContext present in this modulepublic IlpStyle getExistingStyle(IlpStyleContext styleContext)
getExistingStyle in interface IlpStyleManagerstyleContext - The style context.null
if the style does not yet exist.
NOTE: The style returned by this method must not be modified.
public void cleanup()
This method cleans up instance styles, mainly styles which are only removed when the objects are garbage collected.
cleanup in interface IlpStyleManagerpublic IlpStyle getStyle(IlpStyleContext styleContext)
getStyle in interface IlpStyleManagerstyleContext - The style context.public boolean removeStyle(IlpRepresentationObject ro)
removeStyle in interface IlpGraphicViewStyleManagerro - The representation object that is associated to the style.public boolean removeStyle(IlpStyleContext id)
removeStyle in interface IlpStyleManagerid - The style context identifying the style.true if the style identified by the given style
context has been removed.public List getStyleContexts()
getStyleContexts in interface IlpStyleManagerIlpStyleContexts for all available styles.protected IlpStyle prepareROStyle(IlpStyleContext instanceContext)
protected IlpStyle prepareROAttributeStyle(IlpStyleContext instanceContext)
protected IlpStyle prepareGraphicViewStyle(IlpStyleContext instanceContext)
protected IlpStyle prepareCustomAttributeStyle(IlpStyleContext instanceContext)
© Copyright Rogue Wave Software, Inc. 1997, 2017. All Rights Reserved.