JIDE 3.5.15

com.jidesoft.scale
Class ResizePeriodsPopupMenuCustomizer<T>

java.lang.Object
  extended by com.jidesoft.scale.ResizePeriodsPopupMenuCustomizer<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 ResizePeriodsPopupMenuCustomizer<T>
extends Object
implements ScaleAreaPopupMenuCustomizer<T>, ActionListener

ResizePeriodsPopupMenuCustomizer works with ScaleArea and provides period resizing related menu items to the ScaleArea's context menu.


Field Summary
static String AUTO_RESIZE_PERIODS
           
static String AUTO_RESIZE_PERIODS_VISIBLE_ENTRIES
           
static String RESIZE_PERIOD_TO_FIT
           
static String RESOURCE_PREFIX
           
static String ZOOM_IN
           
static String ZOOM_OUT
           
 
Constructor Summary
ResizePeriodsPopupMenuCustomizer(GanttChart<T,?> chart)
           
 
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

AUTO_RESIZE_PERIODS

public static final String AUTO_RESIZE_PERIODS
See Also:
Constant Field Values

AUTO_RESIZE_PERIODS_VISIBLE_ENTRIES

public static final String AUTO_RESIZE_PERIODS_VISIBLE_ENTRIES
See Also:
Constant Field Values

RESIZE_PERIOD_TO_FIT

public static final String RESIZE_PERIOD_TO_FIT
See Also:
Constant Field Values

ZOOM_IN

public static final String ZOOM_IN
See Also:
Constant Field Values

ZOOM_OUT

public static final String ZOOM_OUT
See Also:
Constant Field Values
Constructor Detail

ResizePeriodsPopupMenuCustomizer

public ResizePeriodsPopupMenuCustomizer(GanttChart<T,?> chart)
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