![]() |
GrammarScope
4.0.0
|


Classes | |
| enum | Direction |
Public Member Functions | |
| RotatedLabel () | |
| RotatedLabel (final Icon image, final int horizontalAlignment) | |
| RotatedLabel (final Icon image) | |
| RotatedLabel (final String text, final Icon icon, final int horizontalAlignment) | |
| RotatedLabel (final String text, final int horizontalAlignment) | |
| RotatedLabel (final String text) | |
| Direction | getDirection () |
| void | setDirection (final Direction direction) |
| Dimension | getPreferredSize () |
| Dimension | getSize () |
| int | getHeight () |
| int | getWidth () |
Protected Member Functions | |
| void | paintComponent (final Graphics g) |
Package Functions | |
| [instance initializer] | |
Private Attributes | |
| Direction | direction |
| boolean | needsRotate |
Static Private Attributes | |
| static final long | serialVersionUID = -5589305224172247331L |
A label, that can be rotated by 90 degrees either left or right. Thus the reading direction is either horizontal (the default), up or down.
| grammarscope.editor.component.RotatedLabel.RotatedLabel | ( | ) |
Initialises a new instance of the RotatedLabel class using default values.
| grammarscope.editor.component.RotatedLabel.RotatedLabel | ( | final Icon | image, |
| final int | horizontalAlignment | ||
| ) |
Initialises a new instance of the RotatedLabel class using the specified icon and horizontal alignment.
| image | The icon to use for this label. |
| horizontalAlignment | The horizontal alignment of the text. |
| grammarscope.editor.component.RotatedLabel.RotatedLabel | ( | final Icon | image | ) |
Initialises a new instance of the RotatedLabel class using the specified icon.
| image | The icon to use for this label. |
| grammarscope.editor.component.RotatedLabel.RotatedLabel | ( | final String | text, |
| final Icon | icon, | ||
| final int | horizontalAlignment | ||
| ) |
Initialises a new instance of the RotatedLabel class using the specified text, icon and horizontal alignment.
| text | The text to display. |
| icon | The icon to use for this label. |
| horizontalAlignment | The horizontal alignment of the text. |
| grammarscope.editor.component.RotatedLabel.RotatedLabel | ( | final String | text, |
| final int | horizontalAlignment | ||
| ) |
Initialises a new instance of the RotatedLabel class using the specified text and horizontal alignment.
| text | The text to display. |
| horizontalAlignment | The horizontal alignment of the text. |
| grammarscope.editor.component.RotatedLabel.RotatedLabel | ( | final String | text | ) |
Initialises a new instance of the RotatedLabel class using the specified text.
| text | The text to display. |
|
package |
| Direction grammarscope.editor.component.RotatedLabel.getDirection | ( | ) |
Gets the text direction of this RotatedLabel.
| int grammarscope.editor.component.RotatedLabel.getHeight | ( | ) |
| Dimension grammarscope.editor.component.RotatedLabel.getPreferredSize | ( | ) |
| Dimension grammarscope.editor.component.RotatedLabel.getSize | ( | ) |
| int grammarscope.editor.component.RotatedLabel.getWidth | ( | ) |
|
protected |
| void grammarscope.editor.component.RotatedLabel.setDirection | ( | final Direction | direction | ) |
Sets the text direction of this RotatedLabel.
| direction | The new direction. |
|
private |
The text direction.
|
private |
A flag indicating whether {link getSize()} and such methods need to return a rotated dimension.
|
staticprivate |
Serialisation ID.
1.8.17