ComponentFactory source = getFactory();
if (source == null) return;
if (state == SHOW_GHOST) {
source.drawGhost(context, Color.GRAY, x, y, getBaseAttributes());
} else if (state == SHOW_ADD) {
source.drawGhost(context, Color.BLACK, x, y, getBaseAttributes());
}
}
private AttributeSet getBaseAttributes() {
AttributeSet ret = attrs;