// Our standardRegions only react to pluginStatesFlavor, so
// this is what we check for.
if (flavors.contains(StandardFlavors.PLUGIN) || flavors.contains(StandardFlavors.PLUGIN_STATE))
{
// Create and add our standard regions
BasicDropRegion region;
// Identifier for NORTH, this is DropCLient, shape, framecolor black, no Stroke,
// Fill Red, default cursor, no overlay, copy and move actions, this component.
region = new BasicDropRegion(REGION_NORTH, this, new RectangleSegment(this, 15, PluginContainer.NORTH), this);
region.setFrameColor(Color.BLACK);
region.setPaint(Color.GREEN);
result.add(region);
region = new BasicDropRegion(REGION_SOUTH, this, new RectangleSegment(this, 15, PluginContainer.SOUTH), this);
region.setFrameColor(Color.BLACK);
region.setPaint(Color.GREEN);
result.add(region);
region = new BasicDropRegion(REGION_WEST, this, new RectangleSegment(this, 15, PluginContainer.WEST), this);
region.setFrameColor(Color.BLACK);
region.setPaint(Color.GREEN);
result.add(region);
region = new BasicDropRegion(REGION_EAST, this, new RectangleSegment(this, 15, PluginContainer.EAST), this);
region.setFrameColor(Color.BLACK);
region.setPaint(Color.GREEN);
result.add(region);
}
return result;
}