com.jidesoft.scale
Class VisiblePeriodsPopupMenuCustomizer<T>
java.lang.Object
com.jidesoft.scale.VisiblePeriodsPopupMenuCustomizer<T>
- Type Parameters:
T
- The type of the bases unit of the scale, for example Date or Integer.
- All Implemented Interfaces:
- ScaleAreaPopupMenuCustomizer<T>, ActionListener, EventListener
public class VisiblePeriodsPopupMenuCustomizer<T>
- extends Object
- implements ScaleAreaPopupMenuCustomizer<T>, ActionListener
VisiblePeriodsPopupMenuCustomizer
works with ScaleArea
and provides showing/hiding period
related menu items to the ScaleArea's context menu.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RESOURCE_PREFIX
public static final String RESOURCE_PREFIX
- See Also:
- Constant Field Values
PERIOD_TIER_UP
public static final String PERIOD_TIER_UP
- See Also:
- Constant Field Values
PERIOD_TIER_DOWN
public static final String PERIOD_TIER_DOWN
- See Also:
- Constant Field Values
HIDE_PERIOD_TIER
public static final String HIDE_PERIOD_TIER
- See Also:
- Constant Field Values
TOGGLE_PERIOD_VISIBILITY_TIER_X
public static final String TOGGLE_PERIOD_VISIBILITY_TIER_X
- This name should be appended with the index of the period in the
ScaleModel.getPeriods()
.
- See Also:
- Constant Field Values
VisiblePeriodsPopupMenuCustomizer
public VisiblePeriodsPopupMenuCustomizer()
customizePopup
public void customizePopup(JPopupMenu menu,
ScaleArea<T> scaleArea,
Period clickedPeriod,
T clickedInstant)
- Specified by:
customizePopup
in interface ScaleAreaPopupMenuCustomizer<T>
getResourceString
protected String getResourceString(String key)
actionPerformed
public void actionPerformed(ActionEvent e)
- Specified by:
actionPerformed
in interface ActionListener