Rogue Wave Views 5.6 |
Rogue Wave Views |
Rogue Wave Views Documentation Home |
Matrix item class. More...
#include <ilviews/gadgets/matrix.h>
Public Member Functions | |
IlvFilledDoubleMatrixItem (IlvPalette *matrix, IlDouble value) | |
Constructor. More... | |
IlvFilledDoubleMatrixItem (IlvMatrix *matrix, IlDouble value) | |
Constructor. More... | |
IlvFilledDoubleMatrixItem (IlDouble value, IlvPalette *palette, IlvPalette *invpal) | |
Constructor. More... | |
virtual IlvAbstractMatrixItem * | copy () const |
Copies this object. More... | |
virtual void | draw (const IlvMatrix *, IlUShort i, IlUShort j, IlvPort *dst, const IlvRect &bbox, const IlvRect *clip) const |
Is called to draw the matrix item. More... | |
IlvPalette * | getInvertedPalette () const |
Returns the palette used to display this matrix item when it is selected. More... | |
virtual const char * | getLabel () const |
Returns the label that identifies this matrix item. More... | |
IlvPalette * | getPalette () const |
Returns the palette used to display this matrix item. More... | |
virtual void | minimumSize (const IlvMatrix *, IlvDim &w, IlvDim &h) const |
Returns the preferred size of the item. More... | |
virtual void | setBackground (IlvColor *) |
Sets the background color of this matrix item. More... | |
virtual void | setFont (IlvFont *) |
Sets the font of this matrix item. More... | |
virtual void | setForeground (IlvColor *) |
Sets the foreground color of this matrix item. More... | |
virtual void | setLabel (const char *, IlBoolean copy=IlTrue) |
Sets the label of the matrix item. More... | |
virtual void | setPalette (IlvPalette *) |
Sets the palette of this matrix item. More... | |
virtual void | write (IlvOutputFile &) const |
Writes an object description to a file. More... | |
Public Member Functions inherited from IlvDoubleMatrixItem | |
IlvDoubleMatrixItem (IlDouble value) | |
Constructor. More... | |
IlDouble | getDouble () const |
Returns the double-precision floating-point value stored in the matrix item. More... | |
virtual const char * | getFormat () const |
Returns the format used to display the double-precision floating-point value. More... | |
void | setDouble (IlDouble value) |
Sets the double-precision floating-point value stored in the matrix item. More... | |
Public Member Functions inherited from IlvAbstractMatrixItem | |
void | drawLabel (const char *label, const IlvMatrix *matrix, IlUShort col, IlUShort row, IlvPort *dst, const IlvRect &bbox, const IlvRect *clip=0) const |
Is called to draw the label of the matrix item. More... | |
virtual IlBoolean | handleSelectionDrawing () const |
Indicates whether the selection drawing is handled by the matrix item. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from IlvAbstractMatrixItem | |
static IlvAbstractMatrixItem * | readItem (IlvInputFile &file, IlvDisplay *display) |
Reads an object description from a file. More... | |
Matrix item class.
Library: ilvadvgdt
Use this class to define a matrix item as a double-precision floating-point value with a filled background.
IlvMatrix
, IlvPalette
IlvFilledDoubleMatrixItem::IlvFilledDoubleMatrixItem | ( | IlvPalette * | matrix, |
IlDouble | value | ||
) |
Constructor.
Initializes a new instance of the class IlvFilledDoubleMatrixItem
.
palette | The matrix item palette. |
value | The double-precision floating-point value encapsulated by the item. |
Constructor.
Initializes a new instance of the class IlvFilledDoubleMatrixItem
.
matrix | The matrix to which the item belongs. This parameter is used to compute the matrix item palette. |
value | The double-precision floating-point value encapsulated by the item. |
IlvFilledDoubleMatrixItem::IlvFilledDoubleMatrixItem | ( | IlDouble | value, |
IlvPalette * | palette, | ||
IlvPalette * | invpal | ||
) |
Constructor.
Initializes a new instance of the class IlvFilledDoubleMatrixItem
.
value | The double-precision floating-point value encapsulated by the item. |
palette | The matrix item palette. |
invpal | The inverted palette used by the matrix item when it is selected. When using other constructors, the inverted palette is automatically computed from the matrix item palette. |
|
virtual |
Copies this object.
Allocates and returns a copy of this object.
IlvPredefinedMatrixItemIOMembers
. Reimplemented from IlvDoubleMatrixItem.
|
virtual |
Is called to draw the matrix item.
The default implementation of the method calls IlvAbstractMatrixItem::drawLabel
.
matrix | The matrix to which the item belongs. |
col | The column where the matrix item is located. |
row | The row where the matrix item is located. |
dst | The destination drawing port. |
bbox | The bounding box of the matrix item. |
clip | The clipping area. |
IlvAbstractMatrix::drawItem
, drawLabel
Reimplemented from IlvAbstractMatrixItem.
IlvPalette* IlvFilledDoubleMatrixItem::getInvertedPalette | ( | ) | const |
Returns the palette used to display this matrix item when it is selected.
getPalette
|
virtual |
Returns the label that identifies this matrix item.
setLabel
Reimplemented from IlvDoubleMatrixItem.
IlvPalette* IlvFilledDoubleMatrixItem::getPalette | ( | ) | const |
Returns the palette used to display this matrix item.
getInvertedPalette
|
virtual |
Returns the preferred size of the item.
The preferred size is the size that the item must have for its content to be entirely visible. Uses width and height to return the preferred size of this item when stored in matrix. This method is called by the member functions IlvMatrix::getColumnFittingSize
and IlvMatrix::getRowFittingSize
.
matrix | The matrix to which the item belongs. |
width | The returned preferred width of the item. |
height | The returned preferred height of the item. |
Reimplemented from IlvAbstractMatrixItem.
|
virtual |
Sets the background color of this matrix item.
The default implementation does nothing.
color | The new background color. |
setPalette
, setForeground
, setFont
, IlvFilledLabelMatrixItem
, IlvFilledIntMatrixItem
, IlvFilledFloatMatrixItem
, IlvFilledDoubleMatrixItem
Reimplemented from IlvAbstractMatrixItem.
|
virtual |
Sets the font of this matrix item.
The default implementation does nothing.
font | The new font. |
setPalette
, setForeground
, setBackground
, IlvFilledLabelMatrixItem
, IlvFilledIntMatrixItem
, IlvFilledFloatMatrixItem
, IlvFilledDoubleMatrixItem
Reimplemented from IlvAbstractMatrixItem.
|
virtual |
Sets the foreground color of this matrix item.
The default implementation does nothing.
color | The new foreground color. |
setPalette
, setBackground
, setFont
, IlvFilledLabelMatrixItem
, IlvFilledIntMatrixItem
, IlvFilledFloatMatrixItem
, IlvFilledDoubleMatrixItem
Reimplemented from IlvAbstractMatrixItem.
|
virtual |
Sets the label of the matrix item.
label | The label of the matrix item. |
copy | A Boolean value specifying whether a label should be copied. If the value is IlFalse |
getLabel
Reimplemented from IlvDoubleMatrixItem.
|
virtual |
Sets the palette of this matrix item.
The default implementation does nothing.
palette | The new palette. |
setBackground
, setForeground
, setFont
, IlvFilledLabelMatrixItem
, IlvFilledIntMatrixItem
, IlvFilledFloatMatrixItem
, IlvFilledDoubleMatrixItem
Reimplemented from IlvAbstractMatrixItem.
|
virtual |
Writes an object description to a file.
Writes out, in a file, the object description. This description contains all the information necessary to create an exact copy of this object by means of the member function readItem
.
file | The name of the file to be written to. |
Reimplemented from IlvDoubleMatrixItem.
© Copyright 2012, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.