117118119120121122123124125126127128
if (!got_direction) { direction = isClockwise(); // base this on as few points as possible... got_direction = true; } Color fill_colour = direction ? Color.white : Color.black; Color outline_colour = Color.black; if (gdo.isFill()) { g.setColor(fill_colour); fillPolygon(g); }
243244245246247248249250251252253
boolean isAlphaComp = false; int rule = 0; float alpha = 0; boolean isXORComp = false; Color xorcolor = null; CompositeContext cont = null; if (comp instanceof AlphaComposite) { isAlphaComp = true;
211212213214215216217218219220221
} @Override public void clearRect(int x, int y, int width, int height) { Color c = getColor(); Paint p = getPaint(); setColor(getBackground()); fillRect(x, y, width, height); setColor(c); setPaint(p);