java.lang.Object | |||||
↳ | com.microstrategy.web.transform.AbstractTransform | ||||
↳ | com.microstrategy.web.transform.AbstractLayoutTransform | ||||
↳ | com.microstrategy.web.app.transforms.AbstractAppTransform | ||||
↳ | com.microstrategy.web.app.transforms.AbstractTabTransform | ||||
↳ | com.microstrategy.web.app.transforms.TabGraphTitlesTransform |
This class transforms a TabBean
allowing users to view/modify
formatting properties for the graph titles (mainly font properties).
As with other TabTransforms, this one assumes
its TabManagerBean
will take care of rendering the required HTML & Javascript
allowing users to switch between different formatting TabBean
instances.
The output of this transform can be divided into several sections:
render
method.
Furthermore each section generates individual settings which have been divided into their own
render method.
This Transform implements LayoutTransform
, therefore its render methods
can be invoked using a custom layout-xml. When this is the case, the layout-xml specified in
the style-catalog
controls which methods are called and in which order. Otherwise, the default output of
this transform is divided as follows: ContentsBody ----------------------------------------------------- | TitlesCombo | ----------------------------------------------------- | | | | | | | | | FontSection | StyleSection | SizeSection | | | | | | | | | ----------------------------------------------------- | | | | EffectsSection | ColorSection | | | | | |--------------------------------| | | | | | SampleSection | | | | -----------------------------------------------------
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | FP_COLOR_PICKER_NAME | Constant specifying the name of the formal parameter for defining the id of a system picker that contains the possible color options. | |||||||||
String | FP_FILL_COLOR_PICKER_NAME | Constant specifying the name of the formal parameter for defining the id of a system picker that contains the possible color options. | |||||||||
String | FP_FILL_EFFECT_PICKER_NAME | Constant specifying the name of the formal parameter for defining the name of the system picker that provides the fill effect options. | |||||||||
String | FP_FONT_COLOR_PICKER_NAME | Constant specifying the name of the formal parameter for defining the id of a system picker that contains the possible color options for font. | |||||||||
String | FP_FONT_NAME_PICKER_NAME | Constant specifying the name of the formal parameter for defining the name of the system picker that provides the font name options. | |||||||||
String | FP_FONT_SIZE_PICKER_NAME | Constant specifying the name of the formal parameter for defining the name of the system picker that provides the font size options. | |||||||||
String | FP_FONT_STYLE_PICKER_NAME | Constant specifying the name of the formal parameter for defining the name of the system picker that provides the font style options. | |||||||||
String | FP_TITLE_LIST | Constant specifying the name of the formal parameter for defining the list of titles that will be rendered by this transform as possible format options. |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
public FormalParameter | colorPickerName | Indicates the id of a system picker that contains the possible color options | |||||||||
public FormalParameter | fillColorPickerName | Indicates the id of a system picker that contains the possible fill color options | |||||||||
public FormalParameter | fillEffectPickerName | Indicates the name of the system picker that contains the fill effects that shall be displayed to the user as possible options for fill formatting. | |||||||||
public FormalParameter | fontColorPickerName | Indicates the id of a system picker that contains the possible color options for font | |||||||||
public FormalParameter | fontNamePickerName | Indicates the name of the system picker that contains the font names that shall be displayed to the user as possible options for font formatting. | |||||||||
public FormalParameter | fontSizePickerName | Indicates the name of the system picker that contains the font sizes that shall be displayed to the user as possible options for font formatting. | |||||||||
public FormalParameter | fontStylePickerName | Indicates the name of the system picker that contains the font styles that shall be displayed to the user as possible options for font formatting. | |||||||||
public FormalParameter | titleList | Indicates which titles that will be rendered by this format tab as options, as long as the current graph major type supports them. |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
TabGraphTitlesTransform()
Default no-argument constructor.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ShortcutList |
getColorPicker()
Returns the color picker.
| ||||||||||
String |
getDescription()
Returns the textual description of the transform
| ||||||||||
ShortcutList |
getFillColorPicker()
Returns the fill color picker.
| ||||||||||
ShortcutList |
getFillEffectsPicker()
Returns the font style picker.
| ||||||||||
ShortcutList |
getFontColorPicker()
Returns the font color picker.
| ||||||||||
ShortcutList |
getFontNamePicker()
Returns the font name picker.
| ||||||||||
ShortcutList |
getFontSizePicker()
Returns the font size picker.
| ||||||||||
ShortcutList |
getFontStylePicker()
Returns the font style picker.
| ||||||||||
Class |
getSupportedBeanType()
Returns the supported bean type.
| ||||||||||
void |
initializeCss()
Initializes the Css Classes to use.
| ||||||||||
void |
initializeJavaScriptAttributes()
For JavaScript, certain properties are required to be added to the
HTML tags to generate for its integration with the code generated for the
feature to work in DHTML environments.
| ||||||||||
void |
initializeTransform(Transformable data)
This method initialize the private and protected fields of the transform.
| ||||||||||
void |
renderColorSection(MarkupOutput out)
Generates the HTML output for the Color section on this tab instance, that allows users
to select the font color to use for formatting the currently selected target(s).
| ||||||||||
void |
renderContentSection(MarkupOutput out)
Generates the HTML output for the Content section on this tab instance, that allows users
to specify the text they want to have displayed on a given location on the graph.
| ||||||||||
void |
renderContentsBody(MarkupOutput out)
This is the entry point for the Tranform, and generates the body of the Tab. | ||||||||||
void |
renderEffectsSection(MarkupOutput out)
Generates the HTML output for the Effects section on this tab instance, that allows users
to select the font effects (underline, strikeout) to use for formatting the currently selected target(s).
| ||||||||||
void |
renderFillColorSection(MarkupOutput out)
Generates the HTML output for the Line Color section on this tab instance, that allows users
to select the font color to use for formatting the currently selected target(s).
| ||||||||||
void |
renderFillEffectSection(MarkupOutput out)
Generates the HTML output for the Fill Effect section on this tab instance, that allows users
to select the effect to use for formatting the currently selected target(s).
| ||||||||||
void | renderFontBoxStyle(MarkupOutput out) | ||||||||||
void |
renderFontSection(MarkupOutput out)
Generates the HTML output for the Font section on this tab instance, that allows users
to select the font name to use for formatting the currently selected target(s).
| ||||||||||
void |
renderJavascriptLinks(MarkupOutput out)
Render any JavaScript information required for this tab to work correctly on client side.
| ||||||||||
void |
renderLineColorSection(MarkupOutput out)
Generates the HTML output for the Line Color section on this tab instance, that allows users
to select the font color to use for formatting the currently selected target(s).
| ||||||||||
void |
renderMacroInformation(MarkupOutput out)
Called from
renderContentSection(MarkupOutput) , generates an information image icon
which will display the macro options that can be typed in on the content text box. | ||||||||||
void |
renderPositionSection(MarkupOutput out)
Generates the HTML output for the Legend Position section on this tab instance, that allows users
to define where the legends should be located on the graph image.
| ||||||||||
void |
renderSampleSection(MarkupOutput out)
Generates the HTML output for the Sample section on this tab instance, that allows users
to preview how the formatting changes will update the selected target(s).
| ||||||||||
void |
renderShowSection(MarkupOutput out)
Generates the HTML output for the Show section on this tab instance, that allows users
to select whether the title should be shown or not.
| ||||||||||
void |
renderSizeSection(MarkupOutput out)
Generates the HTML output for the Size section on this tab instance, that allows users
to select the font size to use for formatting the currently selected target(s).
| ||||||||||
void |
renderStyleSection(MarkupOutput out)
Generates the HTML output for the Style section on this tab instance, that allows users
to select the font style to use for formatting the currently selected target(s).
| ||||||||||
void |
renderTitlesCombo(MarkupOutput out)
Convenience method that displays the HTML required for rendering the title of a section.
| ||||||||||
void | renderTooltipsSection(MarkupOutput out) | ||||||||||
void | renderTransparencySection(MarkupOutput out) | ||||||||||
void |
setColorPicker(ShortcutList picker)
Register the color picker. | ||||||||||
void |
setFillColorPicker(ShortcutList picker)
Register the fill color picker. | ||||||||||
void |
setFontColorPicker(ShortcutList picker)
Register the font color picker. | ||||||||||
void |
setFontNamePicker(ShortcutList fontNamePicker)
Register the font name picker. | ||||||||||
void |
setFontSizePicker(ShortcutList picker)
Register the font size picker. | ||||||||||
void |
setFontStylePicker(ShortcutList picker)
Register the font style picker. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
Constant specifying the name of the formal parameter for defining the id of a system picker that contains the possible color options. Value is colorPickerName.
Constant specifying the name of the formal parameter for defining the id of a system picker that contains the possible color options. Value is colorPickerName.
Constant specifying the name of the formal parameter for defining the name of the system picker that provides the fill effect options. Value is fillEffectPickerName.
Constant specifying the name of the formal parameter for defining the id of a system picker that contains the possible color options for font. Value is fontColorPickerName.
Constant specifying the name of the formal parameter for defining the name of the system picker that provides the font name options. Value is fontNamePickerName.
Constant specifying the name of the formal parameter for defining the name of the system picker that provides the font size options. Value is fontSizePickerName.
Constant specifying the name of the formal parameter for defining the name of the system picker that provides the font style options. Value is fontStylePickerName.
Constant specifying the name of the formal parameter for defining the list of titles that will be rendered by this transform as possible format options. Value is titleList.
Indicates the id of a system picker that contains the possible color options
Indicates the id of a system picker that contains the possible fill color options
Indicates the name of the system picker that contains the fill effects that shall be displayed to the user as possible options for fill formatting.
Indicates the id of a system picker that contains the possible color options for font
Indicates the name of the system picker that contains the font names that shall be displayed to the user as possible options for font formatting.
Indicates the name of the system picker that contains the font sizes that shall be displayed to the user as possible options for font formatting.
Indicates the name of the system picker that contains the font styles that shall be displayed to the user as possible options for font formatting.
Indicates which titles that will be rendered by this format tab as options, as long as the current graph major type supports them.
Value is a series of title identifiers (from EnumDSSXMLGraphObjectID
) separated by commas.
Default no-argument constructor. Initializes formal parameters.
Returns the color picker.
If a non-null instance have been registered
through the setColorPicker
method, it will return that one,
otherwise, it will search for a system picker with the name specified in
colorPickerName
.
Returns the textual description of the transform
Returns the fill color picker.
If a non-null instance have been registered
through the setColorPicker
method, it will return that one,
otherwise, it will search for a system picker with the name specified in
fillColorPickerName
.
Returns the font style picker.
If a non-null instance have been registered
through the setFontStylePicker
method, it will return that one,
otherwise, it will search for a system picker with the name specified in
fillEffectPickerName
.
Returns the font color picker.
If a non-null instance have been registered
through the setColorPicker
method, it will return that one,
otherwise, it will search for a system picker with the name specified in
colorPickerName
.
Returns the font name picker.
If a non-null instance have been registered
through the setFontNamePicker
method, it will return that one,
otherwise, it will search for a system picker with the name specified in
fontNamePickerName
.
Returns the font size picker.
If a non-null instance have been registered
through the setFontSizePicker
method, it will return that one,
otherwise, it will search for a system picker with the name specified in
fontSizePickerName
.
Returns the font style picker.
If a non-null instance have been registered
through the setFontStylePicker
method, it will return that one,
otherwise, it will search for a system picker with the name specified in
fontStylePickerName
.
Returns the supported bean type. This transform supports any of the TabBean
instances
Initializes the Css Classes to use. For each one of the css classes to use, the prefix indicated on the formal parameter is added to the name of the class to use.
For JavaScript, certain properties are required to be added to the
HTML tags to generate for its integration with the code generated for the
feature to work in DHTML environments. This method assigns values to these
attributes, so they can be displayed together with the tags they represent.
If a value is set to be null, it won't be included on the HTML tag definition.
By default, it includes the definition of values for properties such as
styFrame
, tyFrame
and scriptClassFrame
.
This method initialize the private and protected fields of the transform.
data | Transformable instance to be transformed.
|
---|
Generates the HTML output for the Color section on this tab instance, that allows users to select the font color to use for formatting the currently selected target(s).
out | MarkupOutput instance where the HTML contents to render will be saved.
|
---|
Generates the HTML output for the Content section on this tab instance, that allows users to specify the text they want to have displayed on a given location on the graph.
out | MarkupOutput instance where the HTML contents to render will be saved.
|
---|
This is the entry point for the Tranform, and generates the body of the Tab.
If a layout-xml is specified, this method will delegate the output generation to the
Layout parser, otherwise it calls renderTitlesCombo
, renderFontSection()
,
renderStyleSection()
,
renderSizeSection()
, renderEffectsSection()
,
renderColorSection()
and renderSampleSection()
out | MarkupOutput instance where the HTML contents to render will be saved.
|
---|
Generates the HTML output for the Effects section on this tab instance, that allows users to select the font effects (underline, strikeout) to use for formatting the currently selected target(s).
out | MarkupOutput instance where the HTML contents to render will be saved.
|
---|
Generates the HTML output for the Line Color section on this tab instance, that allows users to select the font color to use for formatting the currently selected target(s).
out | MarkupOutput instance where the HTML contents to render will be saved. |
---|
Generates the HTML output for the Fill Effect section on this tab instance, that allows users to select the effect to use for formatting the currently selected target(s).
out | MarkupOutput instance where the HTML contents to render will be saved. |
---|
Generates the HTML output for the Font section on this tab instance, that allows users to select the font name to use for formatting the currently selected target(s).
out | MarkupOutput instance where the HTML contents to render will be saved.
|
---|
Render any JavaScript information required for this tab to work correctly on client side.
out | MarkupOutput instance where the HTML contents to render will be saved.
|
---|
Generates the HTML output for the Line Color section on this tab instance, that allows users to select the font color to use for formatting the currently selected target(s).
out | MarkupOutput instance where the HTML contents to render will be saved. |
---|
Called from renderContentSection(MarkupOutput)
, generates an information image icon
which will display the macro options that can be typed in on the content text box.
out | MarkupOutput instance where the HTML contents to render will be saved. |
---|
Generates the HTML output for the Legend Position section on this tab instance, that allows users to define where the legends should be located on the graph image.
out | MarkupOutput instance where the HTML contents to render will be saved.
|
---|
Generates the HTML output for the Sample section on this tab instance, that allows users to preview how the formatting changes will update the selected target(s).
out | MarkupOutput instance where the HTML contents to render will be saved.
|
---|
Generates the HTML output for the Show section on this tab instance, that allows users to select whether the title should be shown or not.
out | MarkupOutput instance where the HTML contents to render will be saved.
|
---|
Generates the HTML output for the Size section on this tab instance, that allows users to select the font size to use for formatting the currently selected target(s).
out | MarkupOutput instance where the HTML contents to render will be saved.
|
---|
Generates the HTML output for the Style section on this tab instance, that allows users to select the font style to use for formatting the currently selected target(s).
out | MarkupOutput instance where the HTML contents to render will be saved.
|
---|
Convenience method that displays the HTML required for rendering the title of a section.
out | MarkupOutput instance where the HTML contents to render will be saved.
|
---|
Register the color picker. This allows the transform to use a ShortcutList that is not defined inside the pageConfig.
picker | The colorPicker to set. |
---|
Register the fill color picker. This allows the transform to use a ShortcutList that is not defined inside the pageConfig.
picker | The colorPicker to set. |
---|
Register the font color picker. This allows the transform to use a ShortcutList that is not defined inside the pageConfig.
picker | The colorPicker to set. |
---|
Register the font name picker. This allows the transform to use a ShortcutList that is not defined inside the pageConfig.
fontNamePicker | The fontNamePicker to set. |
---|
Register the font size picker. This allows the transform to use a ShortcutList that is not defined inside the pageConfig.
picker | The fontSizePicker to set. |
---|
Register the font style picker. This allows the transform to use a ShortcutList that is not defined inside the pageConfig.
picker | The fontStylePicker to set. |
---|