Class VerticalLabelUI

All Implemented Interfaces:
PropertyChangeListener, EventListener

public class VerticalLabelUI extends BasicLabelUI
Allows a JLabel to be displayed vertically, with a defined orientation. Usage (for a vertical label with anti-clockwise orientation):
JLabel label = new JLabel("Vertical Label");
label.setUI(new VerticalLabelUI(VerticalLabelUI.ANTICLOCKWISE));

This file is part of JMRI.

JMRI is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as published by the Free Software Foundation. See the "COPYING" file for a copy of this license.

JMRI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.