|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--org.opennms.bb.eui.operator.components.OperatorBar
OperatorBar is the 'bar' component in the real time chart The bar knows/stores info. about the level it belongs to in order - to send the request and create the next level and - to bring up the appropriate right-click popup menu The bar paints itself by asking its parent, the chart panel for the appropriate size it ought to be
Inner Class Summary | |
protected class |
OperatorBar.OperatorBarListener
This is the mouse listener for the bar. |
(package private) class |
OperatorBar.PopupMenuActionListener
The PopupMenu listener - depending on what option the user chooses, create the next level panel |
Inner classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent, JComponent.ActionStandin, JComponent.IntVector, JComponent.KeyboardState |
Inner classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Inner classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.AWTTreeLock |
Field Summary | |
(package private) Color |
backColor
|
static String |
CATEGORY_LEVEL
|
static String |
DAILY_LEVEL
|
static String |
DEVICES_LEVEL
|
static String |
EVENTS_LEVEL
|
static int |
HORIZONTAL
|
static String |
HOURLY_LEVEL
|
(package private) String |
ID
|
(package private) String |
ID_SEPARATOR
|
(package private) String |
LABEL
|
(package private) double |
length
|
(package private) String |
LEVEL
|
(package private) OperatorInterfacePanel |
operatorParent
|
(package private) int |
orientation
|
(package private) JPopupMenu |
popup
|
static String |
SERVICES_LEVEL
|
(package private) double |
translatedLength
|
static int |
VERTICAL
|
static String |
VIEWS_LEVEL
|
Fields inherited from class java.awt.Container |
component, containerListener, containerSerializedDataVersion, dbg, dispatcher, layoutMgr, listeningBoundsChildren, listeningChildren, maxSize, ncomponents, needsPaint, printing, printingThreads, serialVersionUID |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
OperatorBar(OperatorInterfacePanel parentPanel,
String level,
String id,
String label,
int orient,
double len,
Color inpBackColor)
|
Method Summary | |
(package private) String |
addRelevantInfo(String nextReqLevel,
String curID)
When the user skips levels, add current date/time info. |
protected JMenu |
createDaysMenu()
|
protected JMenu |
createDevicesMenu()
|
protected JMenu |
createEventsMenu()
|
protected JMenu |
createHoursMenu()
|
protected void |
createNextPanel(String nextLevel,
String id,
String dataFileName)
Create the next level panel and set the tabbedpane component |
protected JMenu |
createServicesMenu()
|
(package private) String |
getCurrentDateStr()
Get current date |
(package private) String |
getCurrentTimeStr()
Get current time |
String |
getID()
Return id |
protected String |
getLabel()
Return label |
protected double |
getLength()
Return actual bar size |
protected String |
getLevel()
Return level |
protected String |
getNextLevel()
next level |
OperatorInterfacePanel |
getOpParent()
Get the operator parent panel |
protected double |
getTranslatedLength()
Return translated length (length to which the bar should draw itself based on the parent chart size) |
void |
paintComponent(Graphics g)
Asks the parent chart panel for the appropriate size and paints itself acordingly Paints the size as well - reduces the font size so the label will fit |
protected void |
populatePopup(JPopupMenu popup)
Create the popup menu based on the current level |
(package private) String |
sendLeftRequestForData()
Send standard request based on level |
(package private) String |
sendRequestForData(String nextReqLevel,
String qty)
|
(package private) String |
sendRequestForData(String nextReqLevel,
String qty,
String severity)
Create request for next level, send request and receive response |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait |
Field Detail |
public static final int HORIZONTAL
public static final int VERTICAL
OperatorInterfacePanel operatorParent
String LEVEL
String ID
String LABEL
int orientation
double length
double translatedLength
Color backColor
public static final String VIEWS_LEVEL
public static final String CATEGORY_LEVEL
public static final String DEVICES_LEVEL
public static final String DAILY_LEVEL
public static final String HOURLY_LEVEL
public static final String SERVICES_LEVEL
public static final String EVENTS_LEVEL
JPopupMenu popup
final String ID_SEPARATOR
Constructor Detail |
public OperatorBar(OperatorInterfacePanel parentPanel, String level, String id, String label, int orient, double len, Color inpBackColor)
Method Detail |
public void paintComponent(Graphics g)
Asks the parent chart panel for the appropriate size and paints itself acordingly Paints the size as well - reduces the font size so the label will fit
paintComponent
in class JComponent
protected String getNextLevel()
String sendLeftRequestForData()
String sendRequestForData(String nextReqLevel, String qty)
String sendRequestForData(String nextReqLevel, String qty, String severity)
protected void createNextPanel(String nextLevel, String id, String dataFileName)
protected void populatePopup(JPopupMenu popup)
protected JMenu createDevicesMenu()
protected JMenu createDaysMenu()
protected JMenu createHoursMenu()
protected JMenu createServicesMenu()
protected JMenu createEventsMenu()
String addRelevantInfo(String nextReqLevel, String curID)
String getCurrentDateStr()
String getCurrentTimeStr()
protected String getLabel()
public String getID()
protected String getLevel()
protected double getTranslatedLength()
protected double getLength()
public OperatorInterfacePanel getOpParent()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |