SMART datagrid v.1 > Classes

Back  Forward

DataLudi.ShapeCellRenderer  class

It is the renderer which displays the text and shape of polygon or ellipse at the same time. If specify textVisible property of renderer as false, it will not display the text. The display location of shape is specified by GridStyles.shapeLocation. When GridStyles.shapeLocation is CENTER, the text will not be displayed either. 

The size of shape is determined by the value which has been specified in GridStyles.shapeSize. shapeSize value can be a ratio value. When shapeSize has not been determined, the size will be determined by the percentage which has been set in sizeRate of renderer property. 

The space between the text and shape is determined by GridStyles.shapePadding, and the space between the shape and data cell border is determined by GridStyles.shapeOffset

The form of shape is specified by shapeName, and the shapes which can be displayed currently have been listed in the table below. 

It specifies the type as "shape" when setting the column renderer. 

Base Classes
DataCellRenderer > GridObject > EventAware > DLBase
Constructor
function ShapeCellRenderer ();
Properties
scaleX
scaleY
sizeRate
textVisible
Inherited Properties
GridObject.owner
DataCellRenderer.showTooltip
Inherited Methods
EventAware.addListener
DLBase.assign
GridObject.ctor
DataCellRenderer.ctor
DLBase.getProperties
DLBase.getProperty
EventAware.removeListener
DLBase.setProperties
DLBase.setProperty
DLBase.toggle

 

Table-1  Shape name
NameExplanation
emptyTake up room without drawing.
rectangleRectangle
triangleTriangle
itriangleUpside-down triangle
diamondDiamond
uparrowUp arrow
downarrowDown arrow
leftarrowLeft arrow
rightarrowRight arrow
plusPlus
minusMinus
equalEquality sign
starStar
ellipseEllipse
See Also
IconCellRenderer
ImageCellRenderer
Examples
ShapeRenderer