public class PortalView extends SlotView
Portal
class.Constructor and Description |
---|
PortalView(Portal model,
Direction direction,
Direction rotation,
Controller controller)
Creates a
PortalView based on the given parameters. |
Modifier and Type | Method and Description |
---|---|
void |
click()
Click event handler of this
PortalView . |
javafx.scene.image.Image |
getImage()
Returns the
Image object which belongs to this PortalView . |
draw, injectCanvas, injectPoint
getCanvas, getImage, getModel, getPoint
public PortalView(Portal model, Direction direction, Direction rotation, Controller controller)
PortalView
based on the given parameters.model
- the corresponding Portal
objectdirection
- the direction of ihe corresponding image's rotationrotation
- the shape of this viewcontroller
- reference to the controllerpublic javafx.scene.image.Image getImage()
Image
object which belongs to this PortalView
.getImage
in class SimpleView<Slot>
Image
public void click()
PortalView
.
Toggles the corresponding Portal
's open state.click
in class SimpleView<Slot>