colorModel = colormodel;
if (colorModel == OMRasterObject.COLORMODEL_DIRECT) {
// have to set the location and pixels later.
image = new OMScalingRaster(0f, 0f, 0f, 0f, PIXEL_EDGE_SIZE, PIXEL_EDGE_SIZE, new int[PIXEL_EDGE_SIZE
* PIXEL_EDGE_SIZE]);
}
// Have to set the location, colortable, pixel indexes later
else {
image = new OMScalingRaster(0f, 0f, 0f, 0f, PIXEL_EDGE_SIZE, PIXEL_EDGE_SIZE, (byte[]) null, (Color[]) null, opaqueness);
}
information = new OMText(0f, 0f, 10, 20, "***", new java.awt.Font("Helvetica", java.awt.Font.PLAIN, 10), OMText.JUSTIFY_LEFT);
information.setLinePaint(Color.yellow);
information.setFillPaint(new Color(100, 100, 100, 200));
rectangle = new OMRect(0f, 0f, 0f, 0f, OMGraphic.LINETYPE_STRAIGHT);