JIDE 3.5.15

com.jidesoft.scale
Class VisiblePeriodsPopupMenuCustomizer<T>

java.lang.Object
  extended by 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.


Field Summary
static String HIDE_PERIOD_TIER
           
static String PERIOD_TIER_DOWN
           
static String PERIOD_TIER_UP
           
static String RESOURCE_PREFIX
           
static String TOGGLE_PERIOD_VISIBILITY_TIER_X
          This name should be appended with the index of the period in the ScaleModel.getPeriods().
 
Constructor Summary
VisiblePeriodsPopupMenuCustomizer()
           
 
Method Summary
 void actionPerformed(ActionEvent e)
           
 void customizePopup(JPopupMenu menu, ScaleArea<T> scaleArea, Period clickedPeriod, T clickedInstant)
           
protected  String getResourceString(String key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

VisiblePeriodsPopupMenuCustomizer

public VisiblePeriodsPopupMenuCustomizer()
Method Detail

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

JIDE 3.5.15