Class pvc.visual.Sign
Constructor Attributes | Constructor Name and Description |
---|---|
The Sign class represents thin wrappers around Protovis marks
which configure them with special CCC behavior.
|
Method Attributes | Method Name and Description |
---|---|
Color | |
dimColor(color, type)
Gets a dimmed/gray-scale version of a given color.
|
|
scaleColor(scene)
Gets the color to use for a given scene according to the color scale.
|
|
Interactivity | |
Gets a value that indicates if the sign reveals the active state of scenes.
|
|
Gets a value that indicates if the sign reveals the interactive state of scenes.
|
|
Gets a value that indicates if the sign reveals the selected state of datums.
|
Class Detail
pvc.visual.Sign
The Sign class represents thin wrappers around Protovis marks
which configure them with special CCC behavior.
Method Detail
{!pv.FillStyle}
dimColor(color, type)
Gets a dimmed/gray-scale version of a given color.
- Arguments:
- {string|!pv.FillStyle|!pv.Color} color
- The color to transform.
- {string} type
- The type of graphical element for which the color will be used. Can be one of fill, stroke or text. Depending on the specified type, different effects may be used.
- Returns:
- {!pv.FillStyle} A Protovis color.
{!pv.FillStyle}
scaleColor(scene)
Gets the color to use for a given scene according to the color scale.
Usually, calling Context#delegate returns the color scale's color. However, in some rare cases, delegating already returns a modified version of it. For these cases, this method can be used to obtain a color directly from the plot's color scale.
When the associated panel has a color axis, its scale is used to encode the value of the color scene variable. If there is no color axis, the value of pvc.defaultColor is used.
- Arguments:
- {!pvc.visual.Scene} scene
- The scene.
- Returns:
- {!pv.FillStyle} A Protovis color.
{boolean}
showsActivity()
Gets a value that indicates if the sign reveals the active state of scenes.
- Returns:
- {boolean} true if it reveals; false, otherwise.
- See:
- #showsInteraction
- #showsSelection
- pvc.visual.Scene#isActive
- pvc.options.marks.MarkExtensionPoint#ibits
- pvc.options.marks.MarkExtensionPoint#imask
{boolean}
showsInteraction()
Gets a value that indicates if the sign reveals the interactive state of scenes.
- Returns:
- {boolean} true if it reveals; false, otherwise.
- See:
- #showsActivity
- #showsSelection
- pvc.visual.Scene#anyInteraction
- pvc.options.marks.MarkExtensionPoint#ibits
- pvc.options.marks.MarkExtensionPoint#imask
{boolean}
showsSelection()
Gets a value that indicates if the sign reveals the selected state of datums.
- Returns:
- {boolean} true if it reveals; false, otherwise.
- See:
- #showsInteraction
- #showsActivity
- pvc.data.Datum#isSelected
- pvc.options.marks.MarkExtensionPoint#ibits
- pvc.options.marks.MarkExtensionPoint#imask