Revision: 7076
Author: victormote
Date: 2006-04-27 06:16:19 -0700 (Thu, 27 Apr 2006)
ViewCVS: http://svn.sourceforge.net/foray/?rev=7076&view=rev
Log Message:
-----------
Remove no-longer-needed class.
Removed Paths:
-------------
trunk/foray/foray-font/src/java/org/foray/font/RegisteredAlias.java
Deleted: trunk/foray/foray-font/src/java/org/foray/font/RegisteredAlias.java
===================================================================
--- trunk/foray/foray-font/src/java/org/foray/font/RegisteredAlias.java 2006-04-26 20:50:21 UTC (rev 7075)
+++ trunk/foray/foray-font/src/java/org/foray/font/RegisteredAlias.java 2006-04-27 13:16:19 UTC (rev 7076)
@@ -1,82 +0,0 @@
-/*
- * Copyright 2004 The FOray Project.
- * http://www.foray.org
- *
- * 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 applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * This work is in part derived from the following work(s), used with the
- * permission of the licensor:
- * Apache FOP, licensed by the Apache Software Foundation
- *
- */
-
-/* $Id$ */
-
-package org.foray.font;
-
-import java.util.HashMap;
-
-/**
- * Class representing a font family alias.
- * Aliases allow a font-family to be found through more than one name, either
- * through its own name, or through a "pointer" name called an alias.
- * RegisteredAlias allows further flexibility by allowing an alias to be
- * configured multiple ways.
- * These configurations can be set at run time to allow a font-family alias to
- * point to different font-family items depending on context.
- */
-class RegisteredAlias {
-
- /** The name of this alias. */
- String name;
-
- /** The default font family that should be returned when the requested
- * one cannot be found. */
- RegisteredFontFamily defaultFamily;
-
- /** Map whose key is the configuration name (a String), and whose value
- * is the RegisteredFontFamily which should be returned when that
- * configuration is requested. */
- HashMap configurationMap = new HashMap();
-
- /**
- * Constructor.
- * @param name The name of the alias.
- */
- public RegisteredAlias(String name, RegisteredFontFamily defaultFamily) {
- this.name = name;
- this.defaultFamily = defaultFamily;
- }
-
- /**
- * Register a new configuration for this alias.
- * @param configuration The name of the configuration to which fontFamily
- * belongs.
- * @param fontFamily The font family that should be returned when
- * an alias is requested for configuration.
- */
- public void registerConfiguredAlias(String configuration,
- RegisteredFontFamily fontFamily) {
- this.configurationMap.put(configuration, fontFamily);
- }
-
- public RegisteredFontFamily getFontFamily(String configuration) {
- RegisteredFontFamily rff = (RegisteredFontFamily)
- this.configurationMap.get(configuration);
- if (rff == null) {
- return this.defaultFamily;
- }
- return rff;
- }
-
-}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|