|
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.compiere.apps.search.VScheduleTimePanel
public class VScheduleTimePanel
Schedule Time Panel. Manages slot layout
| 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 | |
|---|---|
static int |
HEADING
Heading Space |
static int |
LINE_HEIGHT
Line Height |
| 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 | |
|---|---|
VScheduleTimePanel()
|
|
| Method Summary | |
|---|---|
int |
getHeaderHeight()
Get the height of the Header |
int |
getSlotCount()
Get the height of a slot |
int |
getSlotHeight()
Get the height of a slot |
int |
getSlotYEnd(int slot)
Get Y end position of Slot |
int |
getSlotYStart(int slot)
Get Y start position of Slot |
static Stroke |
getStroke(boolean slotLine)
Get Stroke |
MAssignmentSlot |
getTimeSlot(int index)
Get Time Slot |
int |
getTimeSlotIndex(int yPos)
Get Time Slot Index |
int |
getTimeSlotIndex(Timestamp time,
boolean endTime)
Return the Time Slot index for the time. |
void |
paint(Graphics g)
Paint it |
void |
setTimeSlots(MAssignmentSlot[] timeSlots)
Set Time Slots and calculate width |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static int LINE_HEIGHT
public static int HEADING
| Constructor Detail |
|---|
public VScheduleTimePanel()
| Method Detail |
|---|
public void setTimeSlots(MAssignmentSlot[] timeSlots)
timeSlots - time slotspublic int getHeaderHeight()
public int getSlotHeight()
public int getSlotCount()
public int getSlotYStart(int slot)
slot - slot index
public int getSlotYEnd(int slot)
slot - slot index
public int getTimeSlotIndex(Timestamp time,
boolean endTime)
time - time (day is ignored)endTime - if true, the end time is included
public MAssignmentSlot getTimeSlot(int index)
index - time index
public int getTimeSlotIndex(int yPos)
yPos - Y position
public void paint(Graphics g)
paint in class JComponentg - the Graphics objectpublic static Stroke getStroke(boolean slotLine)
slotLine - if true return dashed line
|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||