|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.dlsc.flexgantt.swing.layer.AbstractLayer com.dlsc.flexgantt.swing.layer.system.AbstractSystemLayer com.dlsc.flexgantt.swing.layer.system.RowLayer
public class RowLayer
The row layer is responsible for looking up and invoking IRowRenderer
implementations for the Gantt chart nodes. The renderers draw extra
information for each row on the right-hand side of the Gantt chart.
Field Summary |
---|
Fields inherited from class com.dlsc.flexgantt.swing.layer.AbstractLayer |
---|
alpha, changeSupport, ganttChart, layerContainer, PROPERTY_ALPHA, PROPERTY_VISIBLE |
Constructor Summary | |
---|---|
RowLayer(LayerContainer lc)
Constructs a new row layer. |
Method Summary | |
---|---|
IRowRenderer |
getRowRenderer(java.lang.Class treeNodeType)
Returns a row renderer for an object (tree node). |
java.util.Map<java.lang.Class,IRowRenderer> |
getRowRendererMap()
Returns the map, which is storing the mapping between node types and renderer implementations. |
boolean |
isPaintingFocus()
Determines whether the layer will visualize whether a row has the focus or not. |
void |
mouseClicked(java.awt.event.MouseEvent evt)
|
void |
mouseDragged(java.awt.event.MouseEvent evt)
|
void |
mouseEntered(java.awt.event.MouseEvent evt)
|
void |
mouseExited(java.awt.event.MouseEvent evt)
|
void |
mouseMoved(java.awt.event.MouseEvent evt)
|
void |
mousePressed(java.awt.event.MouseEvent evt)
|
void |
mouseReleased(java.awt.event.MouseEvent evt)
|
protected void |
paintLayer(java.awt.Graphics g)
|
void |
setPaintingFocus(boolean paintingFocus)
Specifies whether the layer will visualize whether a row has the focus or not. |
void |
setRowRenderer(java.lang.Class treeNodeType,
IRowRenderer renderer)
Maps the implementation of a row renderer to a class definition, where the class is the type of a tree tree node. |
void |
setRowRendererMap(java.util.Map<java.lang.Class,IRowRenderer> map)
Sets the map, which is storing the mapping between node types and renderer implementations. |
Methods inherited from class com.dlsc.flexgantt.swing.layer.AbstractLayer |
---|
addPropertyChangeListener, getAlpha, getDateline, getEventline, getGanttChart, getLayerContainer, getLayerPolicyProvider, getModel, getName, getStartRow, getTimeAt, getTimeline, getTimeLocation, getTimeSpanUsed, getToolTipText, getTreeTable, getTreeTablePolicyProvider, isVisible, removePropertyChangeListener, repaint, repaint, repaint, setAlpha, setVisible, tearDown |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RowLayer(LayerContainer lc)
lc
- the parent layer containerMethod Detail |
---|
protected void paintLayer(java.awt.Graphics g)
paintLayer
in class AbstractLayer
public void mouseDragged(java.awt.event.MouseEvent evt)
mouseDragged
in interface java.awt.event.MouseMotionListener
public void mouseMoved(java.awt.event.MouseEvent evt)
mouseMoved
in interface java.awt.event.MouseMotionListener
public void mouseClicked(java.awt.event.MouseEvent evt)
mouseClicked
in interface java.awt.event.MouseListener
public void mouseEntered(java.awt.event.MouseEvent evt)
mouseEntered
in interface java.awt.event.MouseListener
public void mouseExited(java.awt.event.MouseEvent evt)
mouseExited
in interface java.awt.event.MouseListener
public void mousePressed(java.awt.event.MouseEvent evt)
mousePressed
in interface java.awt.event.MouseListener
public void mouseReleased(java.awt.event.MouseEvent evt)
mouseReleased
in interface java.awt.event.MouseListener
public void setRowRenderer(java.lang.Class treeNodeType, IRowRenderer renderer)
treeNodeType
- the type of the tree node shown in the rowrenderer
- an implementation that will be used to renderer the row
background of instances of the given object typeDefaultRowRenderer
,
getRowRenderer(Class)
public IRowRenderer getRowRenderer(java.lang.Class treeNodeType)
treeNodeType
- the type of the tree node shown in the row
setRowRenderer(Class, IRowRenderer)
,
DefaultRowRenderer
public java.util.Map<java.lang.Class,IRowRenderer> getRowRendererMap()
public void setRowRendererMap(java.util.Map<java.lang.Class,IRowRenderer> map)
map
- the row renderer mappublic boolean isPaintingFocus()
public void setPaintingFocus(boolean paintingFocus)
paintingFocus
- if TRUE the 'row focus' feature will be supported
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |