Class Flag
java.lang.Object
org.episteme.social.politics.flags.Flag
- All Implemented Interfaces:
Serializable, Commented, Named
Represents a flag as a symbolic and visual identifier for a political or social entity.
This class stores both the physical image and the structural/symbolic data (colors, symbols, meaning).
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the standard width-to-height ratio.Returns an unmodifiable list of the primary colors.Returns the comments associated with this object.getImage()Returns the visual representation of the flag.Returns the symbolic meaning of the flag.getName()Returns an unmodifiable set of the symbols.Returns the map of traits/attributes for this object.toString()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Commented
getTrait, getTrait, setComments, setTrait
-
Constructor Details
-
Flag
public Flag(String name, Image image, List<Color> colors, Set<String> symbols, String meaning, double aspectRatio) Creates a new flag.- Parameters:
name- the name of the flag (e.g., "Tricolore", "Stars and Stripes")image- the visual representationcolors- the primary colors used in the flagsymbols- the key symbols present on the flag (e.g., "Star", "Crescent")meaning- the symbolic meaning or history of the designaspectRatio- the standard width-to-height ratio (e.g., 1.5 for 3:2)
-
-
Method Details
-
getName
-
getComments
Description copied from interface:CommentedReturns the comments associated with this object. Maps to a "comments" trait.- Specified by:
getCommentsin interfaceCommented- Returns:
- the comments
-
getImage
Returns the visual representation of the flag.- Returns:
- the image, or null if not unmanaged
-
getColors
-
getSymbols
-
getMeaning
-
getAspectRatio
public double getAspectRatio()Returns the standard width-to-height ratio.- Returns:
- the aspect ratio
-
toString
-
getTraits
-