code
stringlengths
3
1.18M
language
stringclasses
1 value
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Write a description of class Saw here. * * @author (your name) * @version (a version number or a date) */ public class Saw extends Trap { private int distance; private boolean goingBack; private int mov...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) import java.awt.Color; import java.util.List; /** * Write a description of class TestWorld here. * * @author (your name) * @version (a version number or a date) */ public class GameWorld extends World { private int s...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Write a description of class Scythe here. * * @author (your name) * @version (a version number or a date) */ public class Scythe extends Trap { private int dir; private int step=0; private final int RIG...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Write a description of class Trap here. * * @author (your name) * @version (a version number or a date) */ public abstract class Trap extends Actor { protected int damage; protected int delay; protected...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) import java.awt.Color; /** * Write a description of class CollisionBar here. * * @author (your name) * @version (a version number or a date) */ public class CollisionBox extends Actor { private int posX; private ...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Write a description of class Boulder here. * * @author (your name) * @version (a version number or a date) */ public class Boulder extends Trap { private int yVel=0; private int dir; private int xVel=20...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) import java.awt.Color; /** * Write a description of class Screen here. * * @author (your name) * @version (a version number or a date) */ public class Screen extends Actor { private boolean isAnimationPlaying; pr...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Write a description of class Button here. * * @author (your name) * @version (a version number or a date) */ public abstract class Button extends Actor { protected int xPos; protected int yPos; pu...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) import java.awt.Color; /** * Write a description of class CollisionBar here. * * @author (your name) * @version (a version number or a date) */ public class CollisionBar extends Actor { private int posX; private ...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) import java.awt.Color; import java.util.List; /** * An actor class that can display a scoreboard, using Greenfoot's * UserInfo class. * * You typically use this by including some code into the world for when your game ends: * * <...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Write a description of class Play here. * * @author (your name) * @version (a version number or a date) */ public class Play extends Button { public Play(int x,int y) { super(x,y); setImage...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Write a description of class Spikes here. * * @author (your name) * @version (a version number or a date) */ public class Spikes extends Trap { private int skinIndex; public Spikes(int x,int del,int in...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Write a description of class Player here. * * @author (your name) * @version (a version number or a date) */ public class Player extends Actor { private Whip whip; private CollisionBox colDown; private ...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Write a description of class GUI here. * * @author (your name) * @version (a version number or a date) */ public class GUI extends Actor { public GUI() { setImage("gui.png"); } publi...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Write a description of class Whip here. * * @author (your name) * @version (a version number or a date) */ public class Whip extends Actor { private GreenfootImage[][] skins=new GreenfootImage[20][2]; privat...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Write a description of class Return here. * * @author (your name) * @version (a version number or a date) */ public class Return extends Button { public Return(int x,int y) { super(x,y); se...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Write a description of class Ledge here. * * @author (your name) * @version (a version number or a date) */ public class Ledge extends Actor { int index; int terrainNum; /** * Creates a new ...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Write a description of class BoulderSpawner here. * * @author (your name) * @version (a version number or a date) */ public class BoulderSpawner extends Trap { private int dir=0; private int skin=0; pri...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Write a description of class Wall here. * * @author (your name) * @version (a version number or a date) */ public class Wall extends Trap { private boolean goingDown; private int minY; private int maxY;...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Write a description of class SnakeSpawner here. * * @author (your name) * @version (a version number or a date) */ public class SnakeSpawner extends Trap { public SnakeSpawner(int x,int del,int iniD) { ...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Write a description of class HealthBar here. * * @author (your name) * @version (a version number or a date) */ public class HealthBar extends Actor { private int health; private Timer timer=new Timer(); ...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Write a description of class Background here. * * @author (your name) * @version (a version number or a date) */ public class Background extends Actor { int index; int terrainNum; /** * Crea...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Write a description of class Next here. * * @author (your name) * @version (a version number or a date) */ public class Next extends Button { public Next(int x,int y) { super(x,y); setImage...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) import java.awt.Color; /** * Write a description of class Lives here. * * @author (your name) * @version (a version number or a date) */ public class Lives extends Actor { public Lives() { setImage("hat....
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Write a description of class Ground here. * * @author (your name) * @version (a version number or a date) */ public class Ground extends Actor { int index; int terrainNum; /** * Creates a ne...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) import java.awt.Color; import java.awt.Font; /** * Write a description of class Display here. * * @author (your name) * @version (a version number or a date) */ public class Display extends Actor { public Display(Str...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Write a description of class Help here. * * @author (your name) * @version (a version number or a date) */ public class Help extends Button { public Help(int x,int y) { super(x,y); setImage...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Write a description of class Scores here. * * @author (your name) * @version (a version number or a date) */ public class Scores extends Button { public Scores(int x,int y) { super(x,y); se...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Write a description of class Credits here. * * @author (your name) * @version (a version number or a date) */ public class Credits extends Button { public Credits(int x,int y) { super(x,y); ...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Write a description of class Rock here. * * @author (your name) * @version (a version number or a date) */ public class Rock extends Trap { private int yVel=0; private boolean exists; private Timer spaw...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Write a description of class Snake here. * * @author (your name) * @version (a version number or a date) */ public class Snake extends Trap { private int yVel=0; private int skinIndex=0; private boole...
Java
/* * Copyright (C) 2007 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
Java
/* * Copyright (C) 2007 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
Java
/* * Copyright (C) 2007 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
Java
/* * Copyright (C) 2007 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
Java
package com.project; import java.util.Collection; import java.util.TreeMap; import javax.swing.tree.DefaultMutableTreeNode; import javax.swing.tree.DefaultTreeModel; /** * Implementation of a Trie node and contains everything we need to be able to implement our trie and GUI. * @author Anthony and Kevin * */ publi...
Java
package com.project; import java.awt.BorderLayout; import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.event.TreeSelectionEvent; import javax.swing.event.TreeSelectionListener; @SuppressWarnings("serial") public class TreePanel extends JFrame implements TreeSelectionListener{ privat...
Java
package com.project; import java.awt.Dimension; import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.JScrollPane; import javax.swing.JTextArea; @SuppressWarnings("serial") public class DetailPanel extends JPanel{ private static JFrame tree; private static JTextArea output; priv...
Java
package com.project; import java.awt.Dimension; import java.util.ArrayList; import java.util.Collection; import java.util.HashMap; import java.util.Map; import java.util.Map.Entry; import java.util.Set; import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.JScrollPane; import javax.swi...
Java
package com.project; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.util.Collection; import javax.swing.JButton; import javax.swing.JPanel; import javax.swing.JTextField; @SuppressWarnings("serial") public class InputPanel extends JPanel{ JButton adding; JButton...
Java
package com.project; import javax.swing.JFrame; public class TrieDriver { /** * Runs the GUI for our Trie * @param args */ public static void main(String[] args) { TreePanel treePanel = new TreePanel(); treePanel.setSize(500, 500); treePanel.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); treePane...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package client; import org.apache.thrift.TException; import org.apache.thrift.protocol.TBinaryProtocol; import org.apache.thrift.protocol.TProtocol; import org.apache.thrift.transport.TFramedTransport; import org.apache...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package server; import DAO.StatusDAO; import DAO.TagDAO; import DAO.UserDAO; import java.util.logging.Level; import java.util.logging.Logger; import org.apache.cassandra.thrift.Cassandra; import org.apache.cassandra.thr...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package server; import org.apache.thrift.server.TNonblockingServer; import org.apache.thrift.server.TServer; import org.apache.thrift.transport.TNonblockingServerSocket; import org.apache.thrift.transport.TNonblockingSe...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package pojo; import java.util.List; /** * * @author tipuder */ public class User { public static String col_favorite = "list_status_ID"; public static String col_parent = "FavoriteStatus"; private Strin...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package pojo; /** * * @author tipuder */ public class Status { public static String colname_content = "content"; public static String colname_tags = "tags"; public static String colname_likecount = "like_...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package pojo; import java.util.List; /** * * @author tipuder */ public class Tag { public static String name_col_cdate = "create_date"; public static String name_col_mdate = "modify_date"; public st...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package common; import org.apache.cassandra.thrift.ConsistencyLevel; /** * * @author tipuder */ public class Constants { public static final String UTF8 = "UTF8"; public static final String KEYSPACE = "NghiN...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package common; import static common.Constants.UTF8; import java.io.UnsupportedEncodingException; import java.nio.ByteBuffer; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.logging.Level...
Java
package DAO; import java.io.UnsupportedEncodingException; import java.nio.ByteBuffer; import java.util.ArrayList; import java.util.List; import java.util.logging.Level; import java.util.logging.Logger; import org.apache.cassandra.thrift.*; import org.apache.thrift.TException; import pojo.User; public class UserDAO { ...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package DAO; import static common.Constants.*; import org.apache.cassandra.thrift.Cassandra; import org.apache.cassandra.thrift.InvalidRequestException; import org.apache.thrift.TException; import org.apache.thrift.prot...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package DAO; import common.GeneralHandling; import java.io.UnsupportedEncodingException; import java.nio.ByteBuffer; import java.util.*; import java.util.logging.Level; import java.util.logging.Logger; import org.apache...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package DAO; import common.GeneralHandling; import java.io.UnsupportedEncodingException; import java.nio.ByteBuffer; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; imp...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package ServicesAccessData; /** * * @author tipuder */ public class Server { }
Java
package Testing; import DAO.TagDAO; import DAO.UserDAO; import java.util.logging.Level; import java.util.logging.Logger; import org.apache.cassandra.thrift.Cassandra; import org.apache.cassandra.thrift.InvalidRequestException; import org.apache.thrift.TException; import org.apache.thrift.protocol.TBinaryProtocol; imp...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ /** * * @author mvaleev */ import java.io.BufferedWriter; import java.io.File; import java.io.FileWriter; import java.io.IOException; import java.util.logging.Level; import java.util.logging.Logger; import javax.swin...
Java
package net.coobird.thumbnailator; import java.awt.Dimension; import java.awt.image.BufferedImage; import java.util.ArrayList; import java.util.List; import net.coobird.thumbnailator.filters.ImageFilter; import net.coobird.thumbnailator.resizers.FixedResizerFactory; import net.coobird.thumbnailator.geometry....
Java
package net.coobird.thumbnailator.makers; import java.awt.Dimension; import java.awt.image.BufferedImage; import java.util.HashMap; import java.util.Map; import net.coobird.thumbnailator.builders.BufferedImageBuilder; import net.coobird.thumbnailator.resizers.FixedResizerFactory; import net.coobird.thumbnail...
Java
package net.coobird.thumbnailator.makers; import java.awt.image.BufferedImage; /** * A {@link ThumbnailMaker} which resizes an image to a specified dimension * when producing a thumbnail. * <p> * Optionally, if the aspect ratio of the thumbnail is to be maintained the same * as the original image (by ca...
Java
/** * This package provides classes which can be used to make thumbnails given * parameters to create the images. */ package net.coobird.thumbnailator.makers;
Java
package net.coobird.thumbnailator.makers; import java.awt.image.BufferedImage; /** * A {@link ThumbnailMaker} which scales an image by a specified scaling factor * when producing a thumbnail. * <p> * Upon calculating the size of the thumbnail, if any of the dimensions are * {@code 0}, then that dimensio...
Java
package net.coobird.thumbnailator.geometry; import java.awt.Point; /** * This interface is implemented by classes which calculate how to position an * object inside of an enclosing object. * * @author coobird * */ public interface Position { /** * Calculates the position of an object enclosed ...
Java
package net.coobird.thumbnailator.geometry; import java.awt.Point; /** * This class calculates the position of an image which is to be enclosed, * using an absolute coordinate at which the image should be located. * * @author coobird * */ public final class Coordinate implements Position { /** ...
Java
/** * This package contains classes used to specify positioning of watermarks and * other objects in Thumbnailator. */ package net.coobird.thumbnailator.geometry;
Java
package net.coobird.thumbnailator.geometry; import java.awt.Dimension; /** * A {@link Size} object which indicates that the size of the enclosed object * should be the specified absolute size. * * @author coobird * @since 0.3.4 * */ public class AbsoluteSize implements Size { /** * The size ...
Java
package net.coobird.thumbnailator.geometry; import java.awt.Dimension; /** * Calculates the size of an enclosed object relative to the enclosing object. * * @author coobird * @since 0.3.4 * */ public class RelativeSize implements Size { /** * The scaling factor to use for the enclosed object. ...
Java
package net.coobird.thumbnailator.geometry; import java.awt.Dimension; import java.awt.Point; import java.awt.Rectangle; /** * A representation of a region, using a {@link Position} object and a * {@link Dimension} object. * * @author coobird * @since 0.3.4 * */ public final class Region { /*...
Java
package net.coobird.thumbnailator.geometry; import java.awt.Point; import net.coobird.thumbnailator.filters.Caption; import net.coobird.thumbnailator.filters.ImageFilter; import net.coobird.thumbnailator.filters.Watermark; /** * An enum of predefined {@link Position}s. * <p> * Primary use of this enum ...
Java
package net.coobird.thumbnailator.geometry; import java.awt.Dimension; /** * This interface is implemented by classes which calculate the size of an * object inside of an enclosing object. * * @author coobird * @since 0.3.4 * */ public interface Size { /** * Calculates the size of the object...
Java
package net.coobird.thumbnailator; import java.awt.Dimension; import java.awt.Rectangle; import java.awt.RenderingHints; import java.awt.image.BufferedImage; import java.io.File; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.net.URL; import java.util.ArrayL...
Java
/** * This package contains classes which provide the core functionalities of * Thumbnailator. */ package net.coobird.thumbnailator;
Java
package net.coobird.thumbnailator.tasks; import java.awt.image.BufferedImage; import java.io.File; import java.io.IOException; import net.coobird.thumbnailator.ThumbnailParameter; import net.coobird.thumbnailator.tasks.io.FileImageSink; import net.coobird.thumbnailator.tasks.io.FileImageSource; /** * A t...
Java
package net.coobird.thumbnailator.tasks; import java.io.IOException; /** * An exception used to indicate that the specified format could not be * used in an operation. * * @author coobird * */ public class UnsupportedFormatException extends IOException { /** * An ID used for serialization. ...
Java
/** * This package provides classes which perform image input and output * operations, which can be used to aid in creating and writing thumbnails * to and from external sources. */ package net.coobird.thumbnailator.tasks;
Java
package net.coobird.thumbnailator.tasks; import java.awt.image.BufferedImage; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import net.coobird.thumbnailator.ThumbnailParameter; import net.coobird.thumbnailator.tasks.io.InputStreamImageSource; import net.coobird.thumbnai...
Java
package net.coobird.thumbnailator.tasks; import java.awt.image.BufferedImage; import java.io.IOException; import net.coobird.thumbnailator.ThumbnailParameter; import net.coobird.thumbnailator.tasks.io.ImageSink; import net.coobird.thumbnailator.tasks.io.ImageSource; /** * A {@link ThumbnailTask} which hol...
Java
package net.coobird.thumbnailator.tasks; import java.awt.image.BufferedImage; import java.io.IOException; import net.coobird.thumbnailator.ThumbnailParameter; /** * This class is used by {@link ThumbnailTask} implementations which is used * when creating thumbnails from external sources and destinations. ...
Java
package net.coobird.thumbnailator.tasks.io; import net.coobird.thumbnailator.ThumbnailParameter; /** * An abstract class for {@link ImageSource}s. * * @author coobird * */ public abstract class AbstractImageSource<T> implements ImageSource<T> { /** * The image format of the input image. */ ...
Java
package net.coobird.thumbnailator.tasks.io; import java.awt.image.BufferedImage; import java.io.IOException; /** * An {@link ImageSink} which stores the resulting thumbnail to a * {@link BufferedImage}. * * @author coobird * */ public class BufferedImageSink extends AbstractImageSink<BufferedImage>...
Java
package net.coobird.thumbnailator.tasks.io; import java.awt.image.BufferedImage; import java.io.IOException; import net.coobird.thumbnailator.ThumbnailParameter; /** * An abstract class for {@link ImageSink}s. * * @author coobird * */ public abstract class AbstractImageSink<T> implements ImageSink...
Java
package net.coobird.thumbnailator.tasks.io; import java.awt.image.BufferedImage; import java.io.IOException; import java.io.OutputStream; import java.util.Iterator; import java.util.List; import javax.imageio.IIOImage; import javax.imageio.ImageIO; import javax.imageio.ImageWriteParam; import javax.imageio...
Java
package net.coobird.thumbnailator.tasks.io; import java.awt.image.BufferedImage; import java.io.IOException; import net.coobird.thumbnailator.ThumbnailParameter; /** * An interface to be implemented by classes which read or retrieve images * from which a thumbnail should be produced. * * @param <T> ...
Java
/** * This package provides classes which perform image input and output * operations in conjunction with the * {@link net.coobird.thumbnailator.tasks.SourceSinkThumbnailTask} class. */ package net.coobird.thumbnailator.tasks.io;
Java
package net.coobird.thumbnailator.tasks.io; import java.awt.Rectangle; import java.awt.image.BufferedImage; import java.io.IOException; import net.coobird.thumbnailator.geometry.Region; /** * An {@link ImageSource} which uses a {@link BufferedImage} as the source * image. * * @author coobird * *...
Java
package net.coobird.thumbnailator.tasks.io; import java.awt.Rectangle; import java.awt.image.BufferedImage; import java.io.File; import java.io.FileNotFoundException; import java.io.IOException; import java.util.Iterator; import java.util.List; import javax.imageio.ImageIO; import javax.imageio.ImageReadPa...
Java
package net.coobird.thumbnailator.tasks.io; import java.awt.image.BufferedImage; import java.io.IOException; import java.net.MalformedURLException; import java.net.Proxy; import java.net.URL; /** * An {@link ImageSource} which retrieves a source image from a URL. * * @author coobird * */ public cl...
Java
package net.coobird.thumbnailator.tasks.io; import java.awt.image.BufferedImage; import java.io.IOException; import net.coobird.thumbnailator.ThumbnailParameter; /** * An interface to be implemented by classes which stores the image resulting * from a thumbnail generation task. * * @param <T> The d...
Java
package net.coobird.thumbnailator.tasks.io; import java.awt.image.BufferedImage; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.util.Iterator; import java.util.List; import java.util.NoSuchElementException; import javax.imageio.IIOImage; import javax.imageio.I...
Java
package net.coobird.thumbnailator.tasks.io; import java.awt.Rectangle; import java.awt.image.BufferedImage; import java.io.IOException; import java.io.InputStream; import java.util.Iterator; import java.util.List; import javax.imageio.ImageIO; import javax.imageio.ImageReadParam; import javax.imageio.Image...
Java
package net.coobird.thumbnailator.resizers; import java.awt.Dimension; /** * This interface is implemented by all classes which will return a * {@link Resizer} that should be used when creating a thumbnail. * * @author coobird * @since 0.4.0 * */ public interface ResizerFactory { /** * Retur...
Java
package net.coobird.thumbnailator.resizers; import java.awt.Graphics; import java.awt.RenderingHints; import java.awt.RenderingHints.Key; import java.awt.image.BufferedImage; import java.util.Collections; import java.util.Map; /** * A {@link Resizer} which does not actually resize the image. * <p> * Th...
Java
/** * */ package net.coobird.thumbnailator.resizers.configurations; import java.awt.RenderingHints; import java.awt.RenderingHints.Key; /** * An enum which is used to specify the alpha interpolation settings of the * resizing operations. * * @author coobird * */ public enum AlphaInterpolation...
Java
/** * This package provides enums which are used to set rendering hints used when * using {@link net.coobird.thumbnailator.resizers.Resizers} to create * thumbnails. */ package net.coobird.thumbnailator.resizers.configurations;
Java
package net.coobird.thumbnailator.resizers.configurations; import java.awt.RenderingHints; import net.coobird.thumbnailator.resizers.Resizer; /** * An interface which are implemented by classes and enums which provide * configuration information for {@link Resizer}s. * * @author coobird * */ publ...
Java
/** * */ package net.coobird.thumbnailator.resizers.configurations; import java.awt.RenderingHints; import java.awt.RenderingHints.Key; /** * An enum which is used to specify the antialiasing settings of the * resizing operations. * * @author coobird * */ public enum Antialiasing implements R...
Java
/** * */ package net.coobird.thumbnailator.resizers.configurations; import java.awt.RenderingHints; import java.awt.RenderingHints.Key; /** * An enum which is used to specify the dithering settings of the * resizing operations. * * @author coobird * */ public enum Dithering implements Resizer...
Java
/** * */ package net.coobird.thumbnailator.resizers.configurations; import java.awt.RenderingHints; import java.awt.RenderingHints.Key; /** * An enum which is used to specify the dithering settings of the * resizing operations. * * @author coobird * */ public enum Rendering implements Resizer...
Java
/** * */ package net.coobird.thumbnailator.resizers.configurations; import net.coobird.thumbnailator.resizers.ProgressiveBilinearResizer; /** * An enum which is used to specify how to scale images when creating * thumbnails. * * @author coobird * */ public enum ScalingMode { /** * A hint...
Java
package net.coobird.thumbnailator.resizers; import java.awt.AlphaComposite; import java.awt.Graphics2D; import java.awt.RenderingHints; import java.awt.image.BufferedImage; import java.util.Collections; import java.util.Map; /** * A {@link Resizer} which performs resizing operations by using * progressiv...
Java
package net.coobird.thumbnailator.resizers; import java.awt.Dimension; /** * A {@link ResizerFactory} that returns a specific {@link Resizer} * unconditionally. * * @author coobird * @since 0.4.0 */ public class FixedResizerFactory implements ResizerFactory { /** * The resizer which is to be r...
Java