@Deprecated public class IlpDefaultGraphicViewStyleManager extends IlpDefaultStyleManager implements IlpGraphicViewStyleManager
It stores information about styles that are specific to a view and that are used to create the graphic representation of objects.
The styles created by this graphic view style manager overwrite the styles defined at the style manager level.
context, JAVACLASS_STYLES_BLACK_LIST, styles, stylesInProgress| Constructor and Description |
|---|
IlpDefaultGraphicViewStyleManager(IlpContext context,
IlpGraphicView graphicView)
Deprecated.
Creates a default 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(IlpAttribute attribute)
Deprecated.
Gets a style by attribute.
|
IlpStyle |
getStyle(IlpAttribute attribute,
IlpClass clazz)
Deprecated.
Gets a style by attribute.
|
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.
|
IlpGraphicView |
getView()
Deprecated.
Returns the graphic view which is using this configuration.
|
protected IlpStyle |
postCreateStyle(IlpStyle original,
IlpStyleContext styleContext)
Deprecated.
This method changes the given style, if this is a style for
JTGO - because we need to transform an IlpStyle to IltClassLegend,
IltObjectLegend and IltLegend for compatibility
This method also defined the search strategy that will be used
by the style instance to look for a key value.
|
protected IlpStyle |
prepareBizAttributeStyle(IlpStyleContext styleContext,
IlpStyle style)
Deprecated.
Updates automatically created settings and default styles for a new
attribute style.
|
protected IlpStyle |
prepareBizClassStyle(IlpStyleContext styleContext,
IlpStyle style)
Deprecated.
Updates automatically created settings and default styles for a new
IlpClass style. |
protected IlpStyle |
prepareBizObjectStyle(IlpStyleContext instanceContext,
IlpStyle style)
Deprecated.
Updates automatically created settings and default styles for a new
IlpObject style. |
protected IlpStyle |
prepareGraphicViewStyle(IlpStyleContext instanceContext,
IlpStyle style)
Deprecated.
Prepares the graphic view style.
|
protected IlpStyle |
prepareJavaClassStyle(IlpStyleContext styleContext,
IlpStyle style)
Deprecated.
Updates automatically created settings and default styles for a new
Java class style.
|
protected IlpStyle |
prepareNamedStyle(IlpStyleContext styleContext,
IlpStyle style)
Deprecated.
Updates automatically created settings and default styles for a new
Named style.
|
protected IlpStyle |
prepareROAttributeStyle(IlpStyleContext instanceContext,
IlpStyle style)
Deprecated.
Prepares the style for an attribute in a representation object
|
protected IlpStyle |
prepareROStyle(IlpStyleContext instanceContext,
IlpStyle style)
Deprecated.
Prepares the representation object style.
|
protected IlpStyle |
prepareStyle(IlpStyle style,
IlpStyleContext styleContext)
Deprecated.
Creates the style hierarchy according to the style category.
|
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.
|
getStyle, getStyle, getStyle, getStyle, getStyle, getStyleContexts, removeStyle, resetStylesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetStyle, getStyle, getStyle, getStyle, getStyle, getStyleContexts, removeStyle, resetStylespublic IlpDefaultGraphicViewStyleManager(IlpContext context, IlpGraphicView graphicView)
context - Context.graphicView - Graphic view.public IlpStyleManager getDefaultStyleManager()
getDefaultStyleManager in interface IlpGraphicViewStyleManagerpublic IlpGraphicView getView()
public void cleanup()
This method cleans up instance styles, mainly styles which are only removed when the objects are garbage collected.
cleanup in interface IlpStyleManagercleanup in class IlpDefaultStyleManagerpublic IlpStyle getStyle()
getStyle in interface IlpGraphicViewStyleManagerpublic IlpStyle getStyle(IlpAttribute attribute)
IlpClass linked in the attribute
will be used.
The following default styles are set for an attribute style:
IlpClass containing the attribute is NOT automatically
added as a default style.
A style cannot be retrieved for a custom attribute that does not belong to
an IlpClass.
getStyle in interface IlpStyleManagergetStyle in class IlpDefaultStyleManagerattribute - The IlpAttribute of the style.null if it was impossible to
get or create the style.public IlpStyle getStyle(IlpAttribute attribute, IlpClass clazz)
IlpClass parameter must be the class where the attribute
was declared or one of its subclasses. Otherwise, this method returns
null.
If the given class corresponds to the IlpClass where the
attribute was declared, the resulting style will have the following
default styles :
If the given class is a subclass of the IlpClass where
the attribute was declared, the resulting style will have the following
default styles:
IlpClass superclass.
IlpClass.getStyle in interface IlpStyleManagergetStyle in class IlpDefaultStyleManagerattribute - The IlpAttribute of the style.clazz - The IlpClass where the style was declared or one
of its subclasses.null if it was impossible to
get or create the style.public 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 boolean removeStyle(IlpRepresentationObject ro)
removeStyle in interface IlpGraphicViewStyleManagerro - The representation object that is associated to this stylepublic IlpStyle getExistingStyle(IlpStyleContext styleContext)
getExistingStyle in interface IlpStyleManagergetExistingStyle in class IlpDefaultStyleManagerstyleContext - The style contextnull
if the style does not yet exist.
NOTE: The style returned by this method must not be modified.
protected IlpStyle prepareStyle(IlpStyle style, IlpStyleContext styleContext)
prepareStyle in class IlpDefaultStyleManagerprotected IlpStyle prepareNamedStyle(IlpStyleContext styleContext, IlpStyle style)
The following default styles are set for a Java class style:
protected IlpStyle prepareJavaClassStyle(IlpStyleContext styleContext, IlpStyle style)
The following default styles are set for a Java class style:
IlpRepresentationObject, styles for this interface
and subinterfaces are also added.
IlpRepresentationObject, no interface styles are
added as defaults.prepareJavaClassStyle in class IlpDefaultStyleManagerprotected IlpStyle prepareBizClassStyle(IlpStyleContext styleContext, IlpStyle style)
IlpClass style.
The following default styles are set for an IlpClass style:
IlpClass (and thereby also its
superclasses, if any).
prepareBizClassStyle in class IlpDefaultStyleManagerprotected IlpStyle prepareBizAttributeStyle(IlpStyleContext styleContext, IlpStyle style)
The following default styles are set for an attribute style:
IlpClass containing the attribute is NOT automatically
added as a default style.prepareBizAttributeStyle in class IlpDefaultStyleManagerprotected IlpStyle prepareBizObjectStyle(IlpStyleContext instanceContext, IlpStyle style)
IlpObject style.
The following default styles are set for an IlpObject style:
IlpClass style (and thereby also the IlpClass parents)
prepareBizObjectStyle in class IlpDefaultStyleManagerprotected IlpStyle prepareROStyle(IlpStyleContext instanceContext, IlpStyle style)
protected IlpStyle prepareROAttributeStyle(IlpStyleContext instanceContext, IlpStyle style)
protected IlpStyle prepareGraphicViewStyle(IlpStyleContext instanceContext, IlpStyle style)
protected IlpStyle postCreateStyle(IlpStyle original, IlpStyleContext styleContext)
postCreateStyle in class IlpDefaultStyleManagerpublic void recustomizeStyles()
recustomizeStyles in interface IlpStyleManagerrecustomizeStyles in class IlpDefaultStyleManager© Copyright Rogue Wave Software, Inc. 1997, 2017. All Rights Reserved.