Package com.openinventor.meshviz.graph
Class PoLegend
- All Implemented Interfaces:
SafeDisposable
- Direct Known Subclasses:
PoItemLegend,PoValueLegend
Abstract class for legend representations.
This class handles the title, the values, the margins and the path of the legend.
All legend texts depend on the current miscellaneous text attributes which define the font name, line length and so on. If the method setMiscTextAttr(textAttr) is called, the current miscellaneous text attributes are defined by "textAttr". Otherwise the current miscellaneous text attributes are specified in the current inherited state (cf property node PoMiscTextAttr).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumType of values incrementation.static enumType of margins.static enumType of position.static enumText path.static enumType of visibility.Nested classes/interfaces inherited from class com.openinventor.meshviz.graph.PoBase
PoBase.NodeWriteFormats, PoBase.TextTypes, PoBase.UpdateMethodTypesNested classes/interfaces inherited from class com.openinventor.inventor.nodes.SoNode
SoNode.RenderModesNested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal SoSFFloatRatio between width and height of the colored boxes in the legend.final SoSFEnum<PoLegend.IncrementTypes> Increment type for the values of legend.final SoSFFloatBottom margin.final SoSFFloatLeft margin.final SoSFFloatRight margin.final SoSFFloatTop margin.final SoSFEnum<PoLegend.MarginTypes> Margin type.final SoSFUShortNumber of columns of the legend.final SoSFStringFont name of the title.final SoSFFloatFont size of the title.final SoSFEnum<PoLegend.TextPaths> Title path.final SoSFEnum<PoLegend.Positions> Title position.final SoSFStringTitle string.final SoSFEnum<PoLegend.Visibilities> Title visibility.final SoSFStringString to be concatenated.final SoSFBoolVisibility of a string concatenated to the values.final SoSFStringFont name of values.final SoSFEnum<PoLegend.Positions> Values positions.final SoSFEnum<PoLegend.Visibilities> Values visibility.Fields inherited from class com.openinventor.inventor.nodekits.SoBaseKit
boundingBoxIgnoringFields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle -
Method Summary
Modifier and TypeMethodDescriptionstatic SoNodekitCatalogReturns theSoNodekitCatalogfor this class.Gets a reference to aPbMiscTextAttrfor miscellaneous text attributes.voidsetMiscTextAttr(PbMiscTextAttr textAttr) Sets a reference to aPbMiscTextAttrfor miscellaneous text attributes of all legend texts.Methods inherited from class com.openinventor.meshviz.graph.PoBase
addPostRebuildCallback, addPreRebuildCallback, getDomain, getNodeWriteFormat, getTextType, getUpdateMethod, isBuilt, isModified, isVRML2Mode, rebuild, setDomain, setNodeWriteFormat, setTextType, setUpdateMethod, setVRML2Mode, touchKitMethods inherited from class com.openinventor.inventor.nodekits.SoBaseKit
getNodekitCatalog, getPart, getPart, getPartString, getViewportIsEnabled, getViewportOrigin, getViewportSize, isSearchingChildren, set, set, setPart, setSearchingChildrenMethods inherited from class com.openinventor.inventor.nodes.SoNode
affectsState, callback, copy, copy, distribute, doAction, getAlternateRep, getBoundingBox, getByName, getMatrix, getPrimitiveCount, getRenderEngineMode, getRenderUnitID, GLRender, GLRenderBelowPath, GLRenderInPath, GLRenderOffPath, grabEventsCleanup, grabEventsSetup, handleEvent, isBoundingBoxIgnoring, isOverride, pick, rayPick, search, setOverride, touch, writeMethods inherited from class com.openinventor.inventor.fields.SoFieldContainer
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, setToDefaultsMethods inherited from class com.openinventor.inventor.misc.SoBase
dispose, getName, isDisposable, isSynchronizable, setName, setSynchronizableMethods inherited from class com.openinventor.inventor.Inventor
getNativeResourceHandle
-
Field Details
-
titleVisibility
Title visibility. -
titlePosition
Title position. -
titlePath
Title path. . -
titleFontSize
Font size of the title. -
titleFontName
Font name of the title. If the font is equal to its default value, the font used is the font of the current miscellaneous text attributes. -
titleString
Title string. -
valueVisibility
Values visibility. -
valuePosition
Values positions. -
valueFontName
Font name of values. If the font is equal to its default value, the font used is the font of the current miscellaneous text attributes. -
valueAddStringVisibility
Visibility of a string concatenated to the values. -
valueAddString
String to be concatenated. -
marginType
Margin type. -
marginLeft
Left margin. -
marginRight
Right margin. -
marginBottom
Bottom margin. -
marginTop
Top margin. -
incrementType
Increment type for the values of legend. (the values can be incremented vertically or horizontally). -
numColumns
Number of columns of the legend. -
boxRatio
Ratio between width and height of the colored boxes in the legend.
-
-
Method Details
-
getMiscTextAttr
Gets a reference to aPbMiscTextAttrfor miscellaneous text attributes. -
setMiscTextAttr
Sets a reference to aPbMiscTextAttrfor miscellaneous text attributes of all legend texts. If this method is not called (or called passing NULL as argument), this is the miscellaneous text attributes defined in the current inherited state (defined with the property nodePoMiscTextAttr) which are used. -
getClassNodekitCatalog
Returns theSoNodekitCatalogfor this class.
-