Modifiers | Name | Description |
---|---|---|
protected boolean |
changingColor |
|
protected Color |
color |
|
protected boolean |
fill |
Constructor and description |
---|
NLImagePrimitive
(int c, boolean f, boolean change) Creates a new instance of NLImagePrimitive |
Type Params | Return Type | Name and description |
---|---|---|
|
Color |
getColor() |
|
boolean |
isChangingColor() |
|
Shape |
reLogoShape(Rectangle bb) |
|
void |
render(Graphics gc, Rectangle bb, Color clr) Render the primitive into the specified graphics context at the specified scale. |
|
String |
renderingCode(Rectangle bb) Generate code to render this image in the specified rectangle. |
|
Shape |
renderingShape(Rectangle bb) Generate a shape representation of this image in the specified rectangle. |
Creates a new instance of NLImagePrimitive
Render the primitive into the specified graphics context at the specified scale. The primitive's notional size (300x300) should be mapped to the specified dimensions. There is no guarantee that the specified bounds cover the rendering surface, although that is the assumption in Netlogo.
gc
- Graphics context in which to render the primitivebb
- Bounding box to which the primitive should be scaled.Generate code to render this image in the specified rectangle.