gdx-studio
git clone https://git.pyrossh.dev/gdx-studio
An IDE for creating Games using libgdx and Java supported on all platforms Android, iOS, Desktop
src_libs/com/badlogic/gdx/tools/hiero/unicodefont/effects/ConfigurableEffect.java
| a62d533 | 1 | /******************************************************************************* |
| a62d533 | 2 | * Copyright 2011 See AUTHORS file. |
| a62d533 | 3 | * |
| a62d533 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| a62d533 | 5 | * you may not use this file except in compliance with the License. |
| a62d533 | 6 | * You may obtain a copy of the License at |
| a62d533 | 7 | * |
| a62d533 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| a62d533 | 9 | * |
| a62d533 | 10 | * Unless required by applicable law or agreed to in writing, software |
| a62d533 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| a62d533 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| a62d533 | 13 | * See the License for the specific language governing permissions and |
| a62d533 | 14 | * limitations under the License. |
| a62d533 | 15 | ******************************************************************************/ |
| a62d533 | 16 | |
| a62d533 | 17 | package com.badlogic.gdx.tools.hiero.unicodefont.effects; |
| a62d533 | 18 | |
| a62d533 | 19 | import java.util.List; |
| a62d533 | 20 | |
| a62d533 | 21 | /** An effect that has a number of configuration values. This allows the effect to be configured in the Hiero GUI and to be saved |
| a62d533 | 22 | * and loaded to and from a file. |
| a62d533 | 23 | * @author Nathan Sweet */ |
| a62d533 | 24 | public interface ConfigurableEffect extends Effect {
|
| a62d533 | 25 | /** Returns the list of {@link Value}s for this effect. This list is not typically backed by the effect, so changes to the
|
| a62d533 | 26 | * values will not take affect until {@link #setValues(List)} is called. */
|
| a62d533 | 27 | public List getValues (); |
| a62d533 | 28 | |
| a62d533 | 29 | /** Sets the list of {@link Value}s for this effect. */
|
| a62d533 | 30 | public void setValues (List values); |
| a62d533 | 31 | |
| a62d533 | 32 | /** Represents a configurable value for an effect. */ |
| a62d533 | 33 | static public interface Value {
|
| a62d533 | 34 | /** Returns the name of the value. */ |
| a62d533 | 35 | public String getName (); |
| a62d533 | 36 | |
| a62d533 | 37 | /** Sets the string representation of the value. */ |
| a62d533 | 38 | public void setString (String value); |
| a62d533 | 39 | |
| a62d533 | 40 | /** Gets the string representation of the value. */ |
| a62d533 | 41 | public String getString (); |
| a62d533 | 42 | |
| a62d533 | 43 | /** Gets the object representation of the value. */ |
| a62d533 | 44 | public Object getObject (); |
| a62d533 | 45 | |
| a62d533 | 46 | /** Shows a dialog allowing a user to configure this value. */ |
| a62d533 | 47 | public void showDialog (); |
| a62d533 | 48 | } |
| a62d533 | 49 | } |