public abstract static class GralCanvasStorage.FigureData
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
GralColor |
color
Color for this simple element, foreground.
|
private java.lang.Object |
implData
The implementation data are graphic-platform-specific.
|
java.lang.String |
name |
(package private) static int |
nameId |
GralCanvasStorage.KindFigureData |
paintWhat
One of the static int of this class.
|
protected int |
variantMask
Supports 32 variants, each bit for one, default: all.
|
Constructor and Description |
---|
FigureData(java.lang.String name,
GralCanvasStorage.KindFigureData paintWhat,
GralColor color) |
FigureData(java.lang.String name,
GralCanvasStorage.KindFigureData paintWhat,
GralColor color,
int variantMask) |
Modifier and Type | Method and Description |
---|---|
boolean |
checkVariant(int variant)
True if the FigureData should be drawn in this variant.
|
java.lang.Object |
getImplData() |
void |
setImplData(java.lang.Object implData) |
void |
setVariantMask(int mask) |
static int nameId
public final java.lang.String name
public final GralCanvasStorage.KindFigureData paintWhat
GralCanvasStorage#paintLine
, GralCanvasStorage#paintImage
,public GralColor color
protected int variantMask
private java.lang.Object implData
public FigureData(java.lang.String name, GralCanvasStorage.KindFigureData paintWhat, GralColor color)
public FigureData(java.lang.String name, GralCanvasStorage.KindFigureData paintWhat, GralColor color, int variantMask)
public java.lang.Object getImplData()
public void setImplData(java.lang.Object implData)
public void setVariantMask(int mask)
public boolean checkVariant(int variant)
variant
- number 0..31