|
Adempiere 3.5.2a | |||||||||
| 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
org.adempiere.apps.graph.BarGraphColumn
public class BarGraphColumn
Bar Graph Column
| Nested Class Summary |
|---|
| 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 |
|---|
| 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 java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
BarGraphColumn(MAchievement achievement)
Single Achievement Constructor |
|
BarGraphColumn(MGoal goal,
BigDecimal data)
Achievement Goal Constructor |
|
BarGraphColumn(MMeasureCalc mc,
BigDecimal data)
Measure Calc Constructor |
|
BarGraphColumn(MProjectType pt,
BigDecimal data,
int id)
Project Type Constructor |
|
BarGraphColumn(MRequestType rt,
BigDecimal data,
int id)
Request Type Constructor |
|
BarGraphColumn(String label,
double value)
Base Constructor |
|
| Method Summary | |
|---|---|
void |
addActionListener(ActionListener l)
Adds an ActionListener to the indicator. |
protected void |
fireActionPerformed(MouseEvent event)
Notifies all listeners that have registered interest for notification on this event type. |
MAchievement |
getAchievement()
Get Single Achievement |
ActionListener[] |
getActionListeners()
Returns an array of all the ActionListeners added
to this indicator with addActionListener(). |
double |
getColHeight()
|
double |
getColWidth()
|
Timestamp |
getDate()
|
MGoal |
getGoal()
Get Achievement Goal |
int |
getID()
|
String |
getLabel()
|
Dimension |
getMaximumSize()
Get Maximum Size |
MMeasureCalc |
getMeasureCalc()
Get MeasureCalc |
String |
getMeasureDisplay()
|
Dimension |
getMinimumSize()
Get Minimum Size |
Dimension |
getPreferredSize()
Get Preferred Size |
MProjectType |
getProjectType()
|
MRequestType |
getRequestType()
|
double |
getTargetValue()
|
double |
getValue()
|
void |
mouseClicked(MouseEvent e)
Mouse Clicked |
void |
mouseEntered(MouseEvent e)
|
void |
mouseExited(MouseEvent e)
|
void |
mousePressed(MouseEvent e)
|
void |
mouseReleased(MouseEvent e)
|
protected void |
paintComponent(Graphics g)
Paint Component |
void |
removeActionListener(ActionListener l)
Removes an ActionListener from the indicator. |
void |
setBackground(Color bg)
Set Background and matching Foreground |
void |
setColHeight(double height)
|
void |
setColWidth(double width)
|
void |
setLabel(String label)
|
void |
setLabel(Timestamp date,
String MeasureDisplay)
|
void |
setTargetValue(double targetValue)
|
void |
setValue(double value)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BarGraphColumn(String label,
double value)
label - labelvalue - valuepublic BarGraphColumn(MAchievement achievement)
achievement - achievement
public BarGraphColumn(MGoal goal,
BigDecimal data)
goal - goaldata - count
public BarGraphColumn(MMeasureCalc mc,
BigDecimal data)
mc - MeasureCalc
public BarGraphColumn(MRequestType rt,
BigDecimal data,
int id)
rt - Request Type
public BarGraphColumn(MProjectType pt,
BigDecimal data,
int id)
pt - Procet Type| Method Detail |
|---|
public MGoal getGoal()
public MAchievement getAchievement()
public MMeasureCalc getMeasureCalc()
public MRequestType getRequestType()
public MProjectType getProjectType()
public String getMeasureDisplay()
public Timestamp getDate()
public int getID()
public void setBackground(Color bg)
setBackground in class JComponentbg - backgroundpublic String getLabel()
public void setLabel(String label)
label - The label to set.
public void setLabel(Timestamp date,
String MeasureDisplay)
date - for label.MeasureDisplay - measure displaypublic double getTargetValue()
public void setTargetValue(double targetValue)
targetValue - The targetValue to set.public double getValue()
public void setValue(double value)
value - The data value to set.public double getColWidth()
public void setColWidth(double width)
width - The column width in pixles.public double getColHeight()
public void setColHeight(double height)
height - The hight in pixles.public Dimension getMaximumSize()
getMaximumSize in class JComponentpublic Dimension getMinimumSize()
getMinimumSize in class JComponentpublic Dimension getPreferredSize()
getPreferredSize in class JComponentprotected void paintComponent(Graphics g)
paintComponent in class JComponentg - graphicspublic void addActionListener(ActionListener l)
ActionListener to the indicator.
l - the ActionListener to be addedpublic void removeActionListener(ActionListener l)
ActionListener from the indicator.
l - the listener to be removedpublic ActionListener[] getActionListeners()
ActionListeners added
to this indicator with addActionListener().
ActionListeners added or an empty
array if no listeners have been addedprotected void fireActionPerformed(MouseEvent event)
event
parameter.
event - the ActionEvent objectEventListenerListpublic void mouseClicked(MouseEvent e)
mouseClicked in interface MouseListenere - mouse eventpublic void mousePressed(MouseEvent e)
mousePressed in interface MouseListenerpublic void mouseReleased(MouseEvent e)
mouseReleased in interface MouseListenerpublic void mouseEntered(MouseEvent e)
mouseEntered in interface MouseListenerpublic void mouseExited(MouseEvent e)
mouseExited in interface MouseListener
|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||