public class Mapping
extends java.lang.Object
Constructor and Description |
---|
Mapping(playn.core.GroupLayer graphLayer,
Tuple2f pos1,
Tuple2f pos2)
Constructor of the Mapping
|
Modifier and Type | Method and Description |
---|---|
void |
destroy()
destroys the mapping layer
|
playn.core.ImageLayer |
getLayer() |
int |
getPoints() |
boolean |
isVisible() |
void |
paint()
paints the mapping image and applies all the transformations
|
void |
paintVisibility(boolean visible)
sets the visibiliy(transparency level) of the Mapping image according to the given vibility flag
|
void |
setMapping(Tuple2f pos1,
Tuple2f pos2)
places the positions of the mapping
|
void |
setPoints(int points)
Sets the points of this mapping to the given value
|
void |
setVisible(boolean visible)
Set the visibility flag to true
|
public boolean isVisible()
public void setVisible(boolean visible)
visible
- - the boolean flagpublic void paintVisibility(boolean visible)
visible
- - the boolean flagpublic void setMapping(Tuple2f pos1, Tuple2f pos2)
pos1
- - the coordinates of node1pos2
- - the coordinates of node2public void paint()
public playn.core.ImageLayer getLayer()
public int getPoints()
public void setPoints(int points)
points
- - integerpublic void destroy()