APIdia Launch Partner
Top Description Inners Fields Constructors Methods
com.badlogic.gdx.tools.hiero

public Class Hiero

extends JFrame
Class Inheritance
Static Imports
org.lwjgl.opengl.GL11.*

A tool to visualize settings for UnicodeFont and to export BMFont files for use with BitmapFont.

This tool is quite old. It was originally written for Slick, then ported to libgdx. It has had a few different contributors over the years, the FreeType rendering was tacked on and in general the code isn't great. It does its job though!

Author
Nathan Sweet

Nested and Inner Type Summary

Modifier and TypeClass and Description
private class
pack-priv class

Field Summary

Modifier and TypeField and Description
pack-priv JButton
pack-priv JPanel
pack-priv JScrollPane
pack-priv JLabel
pack-priv boolean
pack-priv JPanel
pack-priv JCheckBox
pack-priv JButton
pack-priv ColorEffect
pack-priv List<Hiero.EffectPanel>
pack-priv JList<E>
pack-priv DefaultComboBoxModel<E>
pack-priv JPanel
pack-priv JScrollPane
pack-priv JMenuItem
public static final String
pack-priv JRadioButton
pack-priv JTextField
pack-priv JList<E>
pack-priv DefaultComboBoxModel<E>
pack-priv JSpinner
pack-priv JRadioButton
pack-priv JPanel
pack-priv JSpinner
pack-priv JPanel
pack-priv JRadioButton
pack-priv JComboBox<E>
pack-priv DefaultComboBoxModel<E>
pack-priv JComboBox<E>
pack-priv JLabel
pack-priv JComboBox<E>
pack-priv JLabel
pack-priv JCheckBox
pack-priv JRadioButton
pack-priv String
pack-priv String
pack-priv String
pack-priv JCheckBox
pack-priv JRadioButton
pack-priv static final String
pack-priv JMenuItem
pack-priv JSpinner
pack-priv JSpinner
pack-priv JSpinner
pack-priv JSpinner
pack-priv JSpinner
pack-priv JSpinner
pack-priv Preferences
pack-priv LwjglCanvas
pack-priv Color
pack-priv JButton
pack-priv JButton
pack-priv JButton
pack-priv JButton
pack-priv JTextPane
pack-priv JRadioButton
pack-priv File
pack-priv JMenuItem
pack-priv JMenuItem
pack-priv JRadioButton
pack-priv UnicodeFont
pack-priv JPanel
Inherited from javax.swing.JFrame:
accessibleContextrootPanerootPaneCheckingEnabled

Constructor Summary

AccessConstructor and Description
public
Hiero(String[] args)

Method Summary

Modifier and TypeMethod and Description
pack-priv void
exit(final int exitCode)

pack-priv static Icon
pack-priv void
private void
private void
private void
public static void
main(final String[] args)

pack-priv void
open(File file)

private void
parseArgs(String[] args)

pack-priv void
save(File file)

pack-priv void
saveBm(File file)

pack-priv void
pack-priv void
Inherited from javax.swing.JFrame:
addImplcreateRootPaneframeInitgetAccessibleContextgetContentPanegetDefaultCloseOperationgetGlassPanegetGraphicsgetJMenuBargetLayeredPanegetRootPanegetTransferHandlerisDefaultLookAndFeelDecoratedisRootPaneCheckingEnabledparamStringprocessWindowEventremoverepaintsetContentPanesetDefaultCloseOperationsetDefaultLookAndFeelDecoratedsetGlassPanesetIconImagesetJMenuBarsetLayeredPanesetLayoutsetRootPanesetRootPaneCheckingEnabledsetTransferHandlerupdate

Field Detail

addEffectButtonback to summary
pack-priv JButton addEffectButton
appliedEffectsPanelback to summary
pack-priv JPanel appliedEffectsPanel
appliedEffectsScrollback to summary
pack-priv JScrollPane appliedEffectsScroll
backgroundColorLabelback to summary
pack-priv JLabel backgroundColorLabel
batchModeback to summary
pack-priv boolean batchMode
bitmapPanelback to summary
pack-priv JPanel bitmapPanel
boldCheckBoxback to summary
pack-priv JCheckBox boldCheckBox
browseButtonback to summary
pack-priv JButton browseButton
colorEffectback to summary
pack-priv ColorEffect colorEffect
effectPanelsback to summary
pack-priv List<Hiero.EffectPanel> effectPanels
effectsListback to summary
pack-priv JList<E> effectsList
effectsListModelback to summary
pack-priv DefaultComboBoxModel<E> effectsListModel
effectsPanelback to summary
pack-priv JPanel effectsPanel
effectsScrollback to summary
pack-priv JScrollPane effectsScroll
exitMenuItemback to summary
pack-priv JMenuItem exitMenuItem
EXTENDED_CHARSback to summary
public static final String EXTENDED_CHARS
fontFileRadioback to summary
pack-priv JRadioButton fontFileRadio
fontFileTextback to summary
pack-priv JTextField fontFileText
fontListback to summary
pack-priv JList<E> fontList
fontListModelback to summary
pack-priv DefaultComboBoxModel<E> fontListModel
fontSizeSpinnerback to summary
pack-priv JSpinner fontSizeSpinner
freeTypeRadioback to summary
pack-priv JRadioButton freeTypeRadio
gamePanelback to summary
pack-priv JPanel gamePanel
gammaSpinnerback to summary
pack-priv JSpinner gammaSpinner
glyphCachePanelback to summary
pack-priv JPanel glyphCachePanel
glyphCacheRadioback to summary
pack-priv JRadioButton glyphCacheRadio
glyphPageComboback to summary
pack-priv JComboBox<E> glyphPageCombo
glyphPageComboModelback to summary
pack-priv DefaultComboBoxModel<E> glyphPageComboModel
glyphPageHeightComboback to summary
pack-priv JComboBox<E> glyphPageHeightCombo
glyphPagesTotalLabelback to summary
pack-priv JLabel glyphPagesTotalLabel
glyphPageWidthComboback to summary
pack-priv JComboBox<E> glyphPageWidthCombo
glyphsTotalLabelback to summary
pack-priv JLabel glyphsTotalLabel
italicCheckBoxback to summary
pack-priv JCheckBox italicCheckBox
javaRadioback to summary
pack-priv JRadioButton javaRadio
lastOpenFilenameback to summary
pack-priv String lastOpenFilename
lastSaveBMFilenameback to summary
pack-priv String lastSaveBMFilename
lastSaveFilenameback to summary
pack-priv String lastSaveFilename
monoCheckBoxback to summary
pack-priv JCheckBox monoCheckBox
nativeRadioback to summary
pack-priv JRadioButton nativeRadio
NEHE_CHARSback to summary
pack-priv static final String NEHE_CHARS
openMenuItemback to summary
pack-priv JMenuItem openMenuItem
padAdvanceXSpinnerback to summary
pack-priv JSpinner padAdvanceXSpinner
padAdvanceYSpinnerback to summary
pack-priv JSpinner padAdvanceYSpinner
padBottomSpinnerback to summary
pack-priv JSpinner padBottomSpinner
padLeftSpinnerback to summary
pack-priv JSpinner padLeftSpinner
padRightSpinnerback to summary
pack-priv JSpinner padRightSpinner
padTopSpinnerback to summary
pack-priv JSpinner padTopSpinner
prefsback to summary
pack-priv Preferences prefs
rendererCanvasback to summary
pack-priv LwjglCanvas rendererCanvas
renderingBackgroundColorback to summary
pack-priv Color renderingBackgroundColor
resetCacheButtonback to summary
pack-priv JButton resetCacheButton
sampleAsciiButtonback to summary
pack-priv JButton sampleAsciiButton
sampleExtendedButtonback to summary
pack-priv JButton sampleExtendedButton
sampleNeheButtonback to summary
pack-priv JButton sampleNeheButton
sampleTextPaneback to summary
pack-priv JTextPane sampleTextPane
sampleTextRadioback to summary
pack-priv JRadioButton sampleTextRadio
saveBmFontFileback to summary
pack-priv File saveBmFontFile
saveBMFontMenuItemback to summary
pack-priv JMenuItem saveBMFontMenuItem
saveMenuItemback to summary
pack-priv JMenuItem saveMenuItem
systemFontRadioback to summary
pack-priv JRadioButton systemFontRadio
unicodeFontback to summary
pack-priv UnicodeFont unicodeFont
unicodePanelback to summary
pack-priv JPanel unicodePanel

Constructor Detail

Hieroback to summary
public Hiero(String[] args)

Method Detail

exitback to summary
pack-priv void exit(final int exitCode)
getColorIconback to summary
pack-priv static Icon getColorIcon(Color color)
initializeback to summary
pack-priv void initialize()
initializeComponentsback to summary
private void initializeComponents()
initializeEventsback to summary
private void initializeEvents()
initializeMenusback to summary
private void initializeMenus()
mainback to summary
public static void main(final String[] args) throws Exception
openback to summary
pack-priv void open(File file)
parseArgsback to summary
private void parseArgs(String[] args)
saveback to summary
pack-priv void save(File file) throws IOException
saveBmback to summary
pack-priv void saveBm(File file)
updateFontback to summary
pack-priv void updateFont()
updateFontSelectorback to summary
pack-priv void updateFontSelector()
com.badlogic.gdx.tools.hiero back to summary

private Class Hiero.EffectPanel

extends JPanel
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv GridBagConstraints
pack-priv JButton
pack-priv JButton
pack-priv final ConfigurableEffect
pack-priv JLabel
pack-priv final Color
pack-priv JButton
pack-priv List<E>
private JPanel

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
public boolean
equals(Object obj)

Overrides java.lang.Object.equals.

Indicates whether some other object is "equal to" this one.

public ConfigurableEffect
public void
moveEffect(int newIndex)

public void
public void
public void
Inherited from javax.swing.JPanel:
getAccessibleContextgetUIgetUIClassIDparamStringsetUIupdateUI

Field Detail

constrainsback to summary
pack-priv GridBagConstraints constrains
deleteButtonback to summary
pack-priv JButton deleteButton
downButtonback to summary
pack-priv JButton downButton
effectback to summary
pack-priv final ConfigurableEffect effect
nameLabelback to summary
pack-priv JLabel nameLabel
selectedColorback to summary
pack-priv final Color selectedColor
upButtonback to summary
pack-priv JButton upButton
valuesback to summary
pack-priv List<E> values
valuesPanelback to summary
private JPanel valuesPanel

Constructor Detail

EffectPanelback to summary
pack-priv EffectPanel(final ConfigurableEffect effect)

Method Detail

addValueback to summary
public void addValue(final ConfigurableEffect.Value value)
equalsback to summary
public boolean equals(Object obj)

Overrides java.lang.Object.equals.

Doc from java.lang.Object.equals.

Indicates whether some other object is "equal to" this one.

The equals method implements an equivalence relation on non-null object references:

  • It is reflexive: for any non-null reference value x, x.equals(x) should return true.
  • It is symmetric: for any non-null reference values x and y, x.equals(y) should return true if and only if y.equals(x) returns true.
  • It is transitive: for any non-null reference values x, y, and z, if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.
  • It is consistent: for any non-null reference values x and y, multiple invocations of x.equals(y) consistently return true or consistently return false, provided no information used in equals comparisons on the objects is modified.
  • For any non-null reference value x, x.equals(null) should return false.

An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.

getEffectback to summary
public ConfigurableEffect getEffect()
moveEffectback to summary
public void moveEffect(int newIndex)
removeback to summary
public void remove()
updateUpDownButtonsback to summary
public void updateUpDownButtons()
updateValuesback to summary
public void updateValues()
com.badlogic.gdx.tools.hiero back to summary

pack-priv Class Hiero.Renderer

extends ApplicationAdapter
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv SpriteBatch
pack-priv int
pack-priv int

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
public void
public void
resize(int width, int height)

Overrides com.badlogic.gdx.ApplicationAdapter.resize.

Implements com.badlogic.gdx.ApplicationListener.resize.

Called when the Application is resized.

Inherited from com.badlogic.gdx.ApplicationAdapter:
disposepauseresume

Field Detail

batchback to summary
pack-priv SpriteBatch batch
heightback to summary
pack-priv int height
widthback to summary
pack-priv int width

Constructor Detail

Rendererback to summary
pack-priv Renderer()

Method Detail

createback to summary
public void create()

Overrides com.badlogic.gdx.ApplicationAdapter.create.

Implements com.badlogic.gdx.ApplicationListener.create.

Doc from com.badlogic.gdx.ApplicationListener.create.

Called when the Application is first created.

renderback to summary
public void render()

Overrides com.badlogic.gdx.ApplicationAdapter.render.

Implements com.badlogic.gdx.ApplicationListener.render.

Doc from com.badlogic.gdx.ApplicationListener.render.

Called when the Application should render itself.

resizeback to summary
public void resize(int width, int height)

Overrides com.badlogic.gdx.ApplicationAdapter.resize.

Implements com.badlogic.gdx.ApplicationListener.resize.

Doc from com.badlogic.gdx.ApplicationListener.resize.

Called when the Application is resized. This can happen at any point during a non-paused state but will never happen before a call to create().