public class Bucket extends Object
Modifier and Type | Field and Description |
---|---|
static int |
MIN_BUCKET_SIZE |
Constructor and Description |
---|
Bucket(int x,
int y,
int w,
int h,
int bucket_side) |
Modifier and Type | Method and Description |
---|---|
void |
debug() |
static int |
getBucketSide(Bucketable container,
Layer la) |
boolean |
isBetter(Rectangle r,
Bucketable container)
Determine whether the rectangle is smaller than the layer dimensions padded in by one bucket_side -- if not, makes little sense to use buckets, and it's better to do linear search without the TreeMap overhead.
|
void |
paint(Graphics2D g,
Rectangle srcRect,
double mag,
Color color) |
String |
toString() |
public static final int MIN_BUCKET_SIZE
public void paint(Graphics2D g, Rectangle srcRect, double mag, Color color)
public final boolean isBetter(Rectangle r, Bucketable container)
public void debug()
public static int getBucketSide(Bucketable container, Layer la)
Copyright © 2015–2021 Fiji. All rights reserved.