public class DataCell extends PrintCell
Modifier and Type | Field and Description |
---|---|
int |
alignment |
int |
anchor |
PointImage |
image |
static int |
ROTATE_180 |
static int |
ROTATE_270 |
static int |
ROTATE_90 |
static int |
ROTATE_NONE |
int |
rotation |
String |
text |
AlwaysRecalculateSizes, backGround, borderColor, borderRect, borderStyle, borderThickness, bottomSpace, constraints, font, foreGround, height, leftSpace, maxHeight, maxWidth, minHeight, minWidth, modifiers, name, pointGraphics, preferredHeight, preferredWidth, RECT_INSET_BORDER, RECT_SIDE_BOTTOM, RECT_SIDE_FULL, RECT_SIDE_FULL_AS_INDIVIDUAL_LINES, RECT_SIDE_LEFT, RECT_SIDE_RIGHT, RECT_SIDE_TOP, rightSpace, topSpace, width, x, y
BOTTOM, CELLFLAG, CELLMASK, CENTER, CONTROLMASK, DONTCHANGE, DONTFILL, DONTSTRETCH, EAST, FILL, GROW, HCENTER, HCONTRACT, HEXPAND, HFILL, HGROW, HSHRINK, HSTRETCH, INITIALLY_CLOSED, INITIALLY_MINIMIZED, INITIALLY_PREFERRED_SIZE, LEFT, NORTH, NORTHEAST, NORTHWEST, RIGHT, SHRINK, SOUTH, SOUTHEAST, SOUTHWEST, STRETCH, TAG_BACKGROUND_IMAGE, TAG_BORDER, TAG_FIXEDSIZE, TAG_INSETS, TAG_MAXIMUMSIZE, TAG_MINIMUMSIZE, TAG_PREFERREDSIZE, TAG_RECT, TAG_SPAN, TAG_TEXTSIZE, TOP, VCENTER, VCONTRACT, VEXPAND, VFILL, VGROW, VSHRINK, VSTRETCH, WEST
Constructor and Description |
---|
DataCell() |
DataCell(ImageData im,
double width,
double height) |
DataCell(PointImage image) |
DataCell(String text) |
Modifier and Type | Method and Description |
---|---|
protected void |
calculateSizes()
Override this to calculate the preferred, minimum and maximum size of your control.
|
void |
doPaint(PointGraphics g,
PointRect r)
This is the main method to override when doing custom Control painting.
|
void |
getText(StringList destination)
Place the text in a StringList.
|
void |
setImage(ImageData im,
double width,
double height)
Set the image using a source ImageData.
|
DataCell |
setText(String text) |
DataCell |
setTextPosition(int alignment,
int anchor) |
contains, contains, doBackground, doBorder, doPaintChildren, draw, getAllDescendants, getAllSubControls, getBackground, getCachedDim, getCachedText, getChildren, getChildrenBackwards, getDim, getExtent, getFont, getForeground, getMaximumSize, getMinimumSize, getPreferredSize, getRect, getSizes, getSubControls, getTag, getTextSize, hasTag, isChildOf, make, modify, resizeTo, setCell, setControl, setFixedSize, setMaximumSize, setMinimumSize, setPreferredSize, setRect, setSpacing, setSpacing, setTag, setTextSize, setup
public String text
public PointImage image
public int alignment
public int anchor
public int rotation
public static final int ROTATE_NONE
public static final int ROTATE_90
public static final int ROTATE_180
public static final int ROTATE_270
public DataCell()
public DataCell(String text)
public DataCell(PointImage image)
public DataCell(ImageData im, double width, double height)
public void setImage(ImageData im, double width, double height)
im
- the ImageData.width
- the width in points for the Image.height
- the height in points for the Image.protected void calculateSizes()
PrintCell
calculateSizes
in class PrintCell
public void getText(StringList destination)
PrintCell
public DataCell setTextPosition(int alignment, int anchor)
public void doPaint(PointGraphics g, PointRect r)
PrintCell