|
||||||||||
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.LabelLayer
public class LabelLayer
A layer that is specialized on drawing labels next to timeline objects. The
layer queries the labels from the ILabelPolicy
.
ILabelPolicy.getLabel(Object, Object, IGanttChartModel, LabelType)
,
ITimelineObject.getLabel(LabelType)
Field Summary |
---|
Fields inherited from class com.dlsc.flexgantt.swing.layer.AbstractLayer |
---|
alpha, changeSupport, ganttChart, layerContainer, PROPERTY_ALPHA, PROPERTY_VISIBLE |
Constructor Summary | |
---|---|
LabelLayer(LayerContainer lc)
Constructs a new label layer. |
Method Summary | |
---|---|
int |
getLabelGap()
Returns the number of pixels that will be placed between the timeline object and its label. |
protected void |
paintLayer(java.awt.Graphics g)
|
void |
setLabelGap(int gap)
Specifies the number of pixels that will be placed between the timeline object and its label. |
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 LabelLayer(LayerContainer lc)
lc
- the layer container that is the parent of the layerMethod Detail |
---|
protected void paintLayer(java.awt.Graphics g)
paintLayer
in class AbstractLayer
public int getLabelGap()
public void setLabelGap(int gap)
gap
- the pixel gap between the timeline object and the label
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |