|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JLabel
jmri.jmrit.display.PositionableLabel
jmri.jmrit.display.PositionableIcon
public class PositionableIcon
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JLabel |
|---|
JLabel.AccessibleJLabel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
protected String |
_iconFamily
|
protected Hashtable<String,NamedIcon> |
_iconMap
|
protected int |
_rotate
|
protected double |
_scale
|
| Fields inherited from class jmri.jmrit.display.PositionableLabel |
|---|
_control, _controlling, _displayLevel, _editable, _editor, _hidden, _icon, _namedIcon, _positionable, _showTooltip, _text, _tooltip, _viewCoordinates, rb, rbean |
| Fields inherited from class javax.swing.JLabel |
|---|
labelFor |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface javax.swing.SwingConstants |
|---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
PositionableIcon(Editor editor)
|
|
PositionableIcon(NamedIcon s,
Editor editor)
|
|
PositionableIcon(String s,
Editor editor)
|
|
| Method Summary | |
|---|---|
protected Hashtable<String,NamedIcon> |
cloneMap(Hashtable<String,NamedIcon> map,
PositionableLabel pos)
|
int |
getDegrees()
|
String |
getFamily()
|
NamedIcon |
getIcon(String state)
Get icon by its bean state name key found in jmri.NamedBeanBundle.properties Get icon by its localized bean state name |
Enumeration<String> |
getIconStateNames()
|
double |
getScale()
|
int |
maxHeight()
|
int |
maxWidth()
|
void |
rotate(int deg)
|
protected void |
rotateOrthogonal()
popup AbstractAction method overrides |
void |
setFamily(String family)
|
void |
setScale(double s)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface jmri.jmrit.display.Positionable |
|---|
contains, getBackground, getBounds, getFont, getForeground, getHeight, getLocation, getParent, getPreferredSize, getWidth, getX, getY, invalidate, isOpaque, repaint, setBackground, setBorder, setForeground, setLocation, setLocation, setOpaque, setSize, setVisible |
| Field Detail |
|---|
protected Hashtable<String,NamedIcon> _iconMap
protected String _iconFamily
protected double _scale
protected int _rotate
| Constructor Detail |
|---|
public PositionableIcon(Editor editor)
public PositionableIcon(NamedIcon s,
Editor editor)
public PositionableIcon(String s,
Editor editor)
| Method Detail |
|---|
public NamedIcon getIcon(String state)
public String getFamily()
public void setFamily(String family)
public Enumeration<String> getIconStateNames()
public int maxHeight()
maxHeight in interface PositionablemaxHeight in class PositionableLabelpublic int maxWidth()
maxWidth in interface PositionablemaxWidth in class PositionableLabelprotected void rotateOrthogonal()
rotateOrthogonal in class PositionableLabelpublic void setScale(double s)
setScale in interface PositionablesetScale in class PositionableLabelpublic void rotate(int deg)
rotate in interface Positionablerotate in class PositionableLabelpublic double getScale()
getScale in interface PositionablegetScale in class PositionableLabelpublic int getDegrees()
getDegrees in interface PositionablegetDegrees in class PositionableLabel
protected Hashtable<String,NamedIcon> cloneMap(Hashtable<String,NamedIcon> map,
PositionableLabel pos)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||