/* * [PosterProviderType.java] * * Summary: enumeration of places where posters come from. * * Copyright: (c) 2009-2017 Roedy Green, Canadian Mind Products, http://mindprod.com * * Licence: This software may be copied and used freely for any purpose but military. * http://mindprod.com/contact/nonmil.html * * Requires: JDK 1.8+ * * Created with: JetBrains IntelliJ IDEA IDE http://www.jetbrains.com/idea/ * * Version History: * 1.1 2008-08-31 screen scrape sizes and prices. */ package com.mindprod.poster; import com.mindprod.common18.ST; /** * enumeration of places where posters come from. * * @author Roedy Green, Canadian Mind Products * @version 1.1 2008-08-31 screen scrape sizes and prices. * @since 2008-08-01 */ public enum PosterProviderType { PLAIN { void changeImages() { ////////////////////////////////////////////////////////////////////// // // P L A I N H O M E final String bareImageName = "morgentaler.jpg"; final String background = ST.trimLeading( "020c06", '#' ); // default green is #f3fff6 final String foreground = ST.trimLeading( "#bdb7c2", '#' ); final String title = "Dr Henry Morgentaler"; final String linkToImageProvider = "http://www.conscientious-objection.info/conscientious-commitment/"; final String extraDescription = "

Dr. Morgentaler

\n" + "

Whenever anti-abortionists say that the famous abortion doctor, Dr. Morgentaler, murdered babies, this is\n" + "delusional. Do they have any idea what a blastula looks like or how microscopic it is? It is not a\n" + "baby! It is not even as human as a jellyfish, not even as human as a water flea. Further,\n" + "murder is a technical term meaning unlawful killing. Yet their complaint is that what\n" + "Morgentaler did was not unlawful. Their complaint is thus self contradictory. Creationists were\n" + "never big on logic or precision in language.

\n" + "

They may, for religious reasons, consider killing a blastula equally wicked to killing a baby, but it is most\n" + "definitely not literally baby killing. That is demented. Their reasons for objecting are superstitious, based on\n" + "the belief in a soul (ghost) possessing the fertilised egg at conception. This is a purely religious notion\n" + "without even a scintilla of evidence to support it. Christians should not be permitted to impose their religious\n" + "superstitions on others, especially when they jail or murder them as a consequence.

\n"; CompactAllPosters.compactAllPosters(); new PlainProvider( bareImageName, title, extraDescription, linkToImageProvider, background, foreground ).installPoster(); } /** * dir where the local image is stored on hard disk */ String providerName() { return "home"; } }; static PosterProviderType chooseSource() { return PLAIN; } /** * change images on home and other web pages for this poster */ abstract void changeImages(); /** * dir where the local image is stored on hard disk * * @return name of provider, also name of dir where corresponding poster images are stored. */ abstract String providerName(); }