public class WorldArea extends WorldElement
Area.| Constructor and Description |
|---|
WorldArea(Area area)
Creates a new
WorldArea element which represents an actual
Area. |
| Modifier and Type | Method and Description |
|---|---|
Area |
getArea()
Gets the underlying
Area. |
int |
getColor()
Gets the color of this element.
|
int |
getFrameColor()
Gets the color of the frame.
|
boolean |
isAlwaysVisible()
Gets whether this element is always visible (i.e. visible through walls etc)
or not.
|
boolean |
isFrameVisible() |
void |
setAlwaysVisible(boolean set)
Determines if the element should be always visible (i.e. visible
through walls etc) or not.
|
void |
setArea(Area area)
Sets the underlying
Area. |
void |
setColor(float r,
float g,
float b,
float a)
Sets the color (RGBA) of this element.
|
void |
setColor(int color)
Sets the color (RGBA) of this element.
|
void |
setFrameColor(float r,
float g,
float b,
float a)
Sets the color (RGBA) of the frame.
|
void |
setFrameColor(int color)
Sets the color (RGBA) of the frame.
|
void |
setFrameVisible(boolean set) |
void |
updateCoordinates()
Updates this element.
|
deleteAttribute, destroy, getAttribute, getID, getPosition, getRotation, getVisibleRange, hasAttribute, moveTo, moveTo, refresh, setAttribute, setPosition, setPosition, setRotation, setRotation, setVisibleRangepublic WorldArea(Area area)
WorldArea element which represents an actual
Area. Can be used to visaulize an Area.Area (i.e. if you change its coordinates)
requires you to update this WorldArea accordingly.area - the Area you want to represent.public void setArea(Area area)
Area.area - the new area.public void updateCoordinates()
setArea(getArea());public Area getArea()
Area.public void setAlwaysVisible(boolean set)
set - set to true to make this element always visible.public boolean isAlwaysVisible()
public void setFrameVisible(boolean set)
public boolean isFrameVisible()
public void setColor(int color)
color - the new color as an RGBA int value.public void setColor(float r,
float g,
float b,
float a)
r - the red color value (0-1)g - the green color value (0-1)b - the blue color value (0-1)a - the alpha value (0-1), 0 makes the element invisible, 1 fully
opaque.public int getColor()
public void setFrameColor(int color)
color - the new frame color as an RGBA int value.public void setFrameColor(float r,
float g,
float b,
float a)
r - the red color value (0-1)g - the green color value (0-1)b - the blue color value (0-1)a - the alpha value (0-1), 0 makes the frame invisible, 1 fully
opaque.public int getFrameColor()