|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent javax.swing.JPanel com.dlsc.flexgantt.swing.layer.timeline.DefaultTimelineObjectRenderer
public class DefaultTimelineObjectRenderer
The default timeline object renderer implementation draws a bar with rounded corners and fills its background with a smooth gradient paint. The renderer allows the rounded corners to be turned off and the two colors used for filling the gradient background can be changed as well (different colors are supported for selected, focused, or highlighted timeline objects). The renderer also adds a shadow to each timeline object. The offset of this shadow can be changed, too.
Due to the fact that this renderer uses several Java2D features it is not the fastest one that can be written. Less fancy renderers should be even faster. Applications that need to render larger volumes of timeline objects should consider writing their own and slimmed down version of a timeline object renderer.
LayerContainer.setTimelineObjectRenderer(Class, ITimelineObjectRenderer)
,
Serialized FormNested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
javax.swing.JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
javax.swing.JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
java.awt.Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.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 | |
---|---|
DefaultTimelineObjectRenderer()
Constructs a new renderer. |
Method Summary | |
---|---|
void |
firePropertyChange(java.lang.String propertyName,
boolean oldValue,
boolean newValue)
Overriden for performance reasons. |
void |
firePropertyChange(java.lang.String propertyName,
byte oldValue,
byte newValue)
Overriden for performance reasons. |
void |
firePropertyChange(java.lang.String propertyName,
char oldValue,
char newValue)
Overriden for performance reasons. |
void |
firePropertyChange(java.lang.String propertyName,
double oldValue,
double newValue)
Overriden for performance reasons. |
void |
firePropertyChange(java.lang.String propertyName,
float oldValue,
float newValue)
Overriden for performance reasons. |
void |
firePropertyChange(java.lang.String propertyName,
long oldValue,
long newValue)
Overriden for performance reasons. |
protected void |
firePropertyChange(java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue)
Overriden for performance reasons. |
void |
firePropertyChange(java.lang.String propertyName,
short oldValue,
short newValue)
Overriden for performance reasons. |
java.awt.Color |
getActivityFillColor1()
Returns the first color that will be used for filling the background of the timeline object with a gradient paint. |
java.awt.Color |
getActivityFillColor2()
Returns the second color that will be used for filling the background of the timeline object with a gradient paint. |
java.awt.Color |
getActivityLineColor()
Returns the line color that will be used for drawing the border of a timeline object if it is an activity (different start and end times). |
int |
getBarHeight()
Returns the height that will be used for the bar that will represent an activity timeline object. |
int |
getDiamondSize()
Returns the size of the event diamons. |
java.awt.Color |
getEventFillColor1()
Returns the first color that will be used for filling the background of the timeline object with a gradient paint in situations where the object is an event (same start and end time). |
java.awt.Color |
getEventFillColor2()
Returns the second color that will be used for filling the background of the timeline object with a gradient paint in situations where the object is an event (same start and end time). |
java.awt.Color |
getEventLineColor()
Returns the line color that will be used for drawing the border of a timeline object in situations where the object is an event (same start and end time). |
java.awt.Color |
getFocusFillColor1()
Returns the first color that will be used for filling the background of the timeline object with a gradient paint in situations where the object has the focus. |
java.awt.Color |
getFocusFillColor2()
Returns the second color that will be used for filling the background of the timeline object with a gradient paint in situations where the object has the focus. |
java.awt.Color |
getFocusLineColor()
Returns the line color that will be used for drawing the border of a timeline object in situations where the object has the focus. |
java.awt.Color |
getHighlightFillColor1()
Returns the first color that will be used for filling the background of the timeline object with a gradient paint in situations where the object is highlighted. |
java.awt.Color |
getHighlightFillColor2()
Returns the second color that will be used for filling the background of the timeline object with a gradient paint in situations where the object is highlighted. |
java.awt.Color |
getHighlightLineColor()
Returns the line color that will be used for drawing the border of a timeline object in situations where the object is highlighted. |
protected IGanttChartModel |
getModel()
Returns the model that provided the currently rendered timeline object. |
protected java.lang.Object |
getNode()
Returns the hierarchy (tree) node of the row in which the currently rendered timeline object is located. |
java.awt.Color |
getParentFillColor1()
Returns the first background color used for those timeline objects that are parent timeline objects (own children timeline objects). |
java.awt.Color |
getParentFillColor2()
Returns the second background color used for those timeline objects that are parent timeline objects (own children timeline objects). |
java.awt.Color |
getParentLineColor()
Returns the line color used for those timeline objects that are parent timeline objects (own children timeline objects). |
java.awt.Color |
getPastFillColor1()
Returns the first color used for filling the background of an activity when the activity is located in the past (earlier than time now). |
java.awt.Color |
getPastFillColor2()
Returns the second color used for filling the background of an activity when the activity is located in the past (earlier than time now). |
java.awt.Color |
getResizeHandleColor()
Returns the color used for the resize handles. |
java.awt.Color |
getSelectionFillColor1()
Returns the first color that will be used for filling the background of the timeline object with a gradient paint in situations where the object is selected. |
java.awt.Color |
getSelectionFillColor2()
Returns the second color that will be used for filling the background of the timeline object with a gradient paint in situations where the object is selected. |
java.awt.Color |
getSelectionLineColor()
Sets the line color that will be used for drawing the border of a timeline object in situations where the object is selected. |
java.awt.Color |
getShadowColor()
Returns the color that will be used for drawing a shadow below and behind the timeline object. |
int |
getShadowOffsetX()
Returns the x offset that will be applied to the shadow of the timeline object. |
int |
getShadowOffsetY()
Returns the y offset that will be applied to the shadow of the timeline object. |
float |
getShadowOpacity()
Returns the opacity of the shadow that will be rendered below and behind the timeline object. |
protected java.lang.Object |
getTimelineObject()
Returns the timeline object that is currently being rendered. |
protected TimelineObjectLayer |
getTimelineObjectLayer()
Returns the timeline object layer where the current rendering operation takes place. |
java.awt.Component |
getTimelineObjectRendererComponent(TimelineObjectLayer layer,
java.lang.Object node,
java.lang.Object timelineObject,
boolean selected,
boolean hasFocus,
boolean highlighted,
int row)
Returns a component that will be used to renderer the given timeline object. |
java.awt.Insets |
getTimelineObjectRendererInsets(int x,
int y,
int width,
int height)
Returns the insets of the object renderer. |
boolean |
hasFocus()
Determines whether the currently painted timeline object has the focus or not. |
void |
invalidate()
Overriden for performance reasons. |
protected boolean |
isDurationChangeable()
Checks the IEditTimelineObjectPolicy to see if the duration of
the currently rendered timeline object can be changed. |
protected boolean |
isEvent()
Determines whether the currently rendered timeline object represents an event. |
boolean |
isHighlighted()
Determines whether the timeline object should be rendered in its highlighted state or not. |
boolean |
isParent()
Determines whether the currently rendered timeline object is a parent timeline object, meaning that it contains children timeline objects (also called summary timeline object, compound timeline object). |
boolean |
isRoundedCorners()
Determines whether the bars of activity timeline objects will be drawn with rounded corners or not. |
protected boolean |
isSelected()
Determines if the rendered timeline object is currently selected. |
protected boolean |
isStartTimeChangeable()
Checks the IEditTimelineObjectPolicy to see if the start time of
the currently rendered timeline object can be changed. |
boolean |
isVisualizingPastTime()
Determines whether the renderer will draw the timeline object differently if the object is located in the past (e.g. gray out). |
protected void |
paintActivityBorder(java.awt.Graphics g)
Paints the border of the activity object. |
protected void |
paintActivityContent(java.awt.Graphics g)
Renders the timeline object if it is an activity (different start and end time = duration). |
protected void |
paintActivityFocus(java.awt.Graphics g)
Adds visual feedback to an activity if it owns the focus. |
protected void |
paintActivityShadow(java.awt.Graphics g)
Paints the shadow of the activity object. |
protected void |
paintComponent(java.awt.Graphics g)
|
protected void |
paintEvent(java.awt.Graphics g)
Renders the timeline object if it is an event (same start and end time). |
protected void |
paintParent(java.awt.Graphics g)
Renders the timeline object if it is a parent timeline object, meaning that it contains child timeline objects. |
void |
repaint()
Overriden for performance reasons. |
void |
repaint(int x,
int y,
int width,
int height)
Overriden for performance reasons. |
void |
repaint(long tm)
Overriden for performance reasons. |
void |
revalidate()
Overriden for performance reasons. |
void |
setActivityFillColor1(java.awt.Color color)
Sets the first color that will be used for filling the background of the timeline object with a gradient paint. |
void |
setActivityFillColor2(java.awt.Color color)
Sets the second color that will be used for filling the background of the timeline object with a gradient paint. |
void |
setActivityLineColor(java.awt.Color color)
Sets the line color that will be used for drawing the border of a timeline object if it is an activity (different start and end times). |
void |
setBarHeight(int height)
Sets the height that will be used for the bar that will represent an activity timeline object. |
void |
setDiamondSize(int size)
Sets the size of the event diamonds. |
void |
setEventFillColor1(java.awt.Color color)
Sets the first color that will be used for filling the background of the timeline object with a gradient paint in situations where the object is an event (same start and end time). |
void |
setEventFillColor2(java.awt.Color color)
Sets the second color that will be used for filling the background of the timeline object with a gradient paint in situations where the object is an event (same start and end time). |
void |
setEventLineColor(java.awt.Color color)
Sets the line color that will be used for drawing the border of a timeline object in situations where the object is an event (same start and end time). |
void |
setFocusFillColor1(java.awt.Color color)
Sets the first color that will be used for filling the background of the timeline object with a gradient paint in situations where the object has the focus. |
void |
setFocusFillColor2(java.awt.Color color)
Sets the second color that will be used for filling the background of the timeline object with a gradient paint in situations where the object has the focus. |
void |
setFocusLineColor(java.awt.Color color)
Sets the line color that will be used for drawing the border of a timeline object in situations where the object has the focus. |
void |
setHighlightFillColor1(java.awt.Color color)
Sets the first color that will be used for filling the background of the timeline object with a gradient paint in situations where the object is highlighted. |
void |
setHighlightFillColor2(java.awt.Color color)
Sets the second color that will be used for filling the background of the timeline object with a gradient paint in situations where the object is highlighted. |
void |
setHighlightLineColor(java.awt.Color color)
Sets the line color that will be used for drawing the border of a timeline object in situations where the object is highlighted. |
void |
setParentFillColor1(java.awt.Color color)
Sets the first background color used for those timeline objects that are parent timeline objects (own children timeline objects). |
void |
setParentFillColor2(java.awt.Color color)
Sets the second background color used for those timeline objects that are parent timeline objects (own children timeline objects). |
void |
setParentLineColor(java.awt.Color color)
Sets the line color used for those timeline objects that are parent timeline objects (own children timeline objects). |
void |
setPastFillColor1(java.awt.Color color)
Sets the first color used for filling the background of an activity when the activity is located in the past (earlier than time now). |
void |
setPastFillColor2(java.awt.Color color)
Sets the second color used for filling the background of an activity when the activity is located in the past (earlier than time now). |
void |
setResizeHandleColor(java.awt.Color color)
Sets the color used for the resize handles. |
void |
setRoundedCorners(boolean b)
Specifies whether the bars of activity timeline objects will be drawn with rounded corners or not. |
void |
setSelectionFillColor1(java.awt.Color color)
Sets the first color that will be used for filling the background of the timeline object with a gradient paint in situations where the object is selected. |
void |
setSelectionFillColor2(java.awt.Color color)
Sets the second color that will be used for filling the background of the timeline object with a gradient paint in situations where the object is selected. |
void |
setSelectionLineColor(java.awt.Color color)
Sets the line color that will be used for drawing the border of a timeline object in situations where the object is selected. |
void |
setShadowColor(java.awt.Color color)
Sets the color that will be used for drawing a shadow below and behind the timeline object. |
void |
setShadowOffsetX(int offset)
Sets the x offset that will be applied to the shadow of the timeline object. |
void |
setShadowOffsetY(int offset)
Sets the y offset that will be applied to the shadow of the timeline object. |
void |
setShadowOpacity(float opacity)
Sets the opacity of the shadow that will be rendered below and behind the timeline object. |
void |
setVisualizingPastTime(boolean b)
Specifies whether the renderer will draw the timeline object differently if the object is located in the past (e.g. gray out). |
void |
validate()
Overriden for performance reasons. |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class javax.swing.JComponent |
---|
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
Methods inherited from class java.awt.Container |
---|
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validateTree |
Methods inherited from class java.awt.Component |
---|
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DefaultTimelineObjectRenderer()
Method Detail |
---|
public java.awt.Component getTimelineObjectRendererComponent(TimelineObjectLayer layer, java.lang.Object node, java.lang.Object timelineObject, boolean selected, boolean hasFocus, boolean highlighted, int row)
ITimelineObjectRenderer
getTimelineObjectRendererComponent
in interface ITimelineObjectRenderer
layer
- the layer in which the timeline object will be renderednode
- the tree node that 'owns' the timeline objecttimelineObject
- the actual timeline object that requires visualizationselected
- if TRUE the object is currently selected and the rendering
needs to express thathasFocus
- if TRUE the focus is currently on the timeline object and the
rendering needs to express thathighlighted
- if TRUE the timeline object is highlighted and its appearance
needs to vary from its normal appearance (causing a blinking
effect)row
- the row in which the object gets drawn
public java.awt.Insets getTimelineObjectRendererInsets(int x, int y, int width, int height)
ITimelineObjectRenderer
DefaultActivityObjectRenderer
).
getTimelineObjectRendererInsets
in interface ITimelineObjectRenderer
x
- the x-coordinate of the bounds that will be assigned to the
renderer componenty
- the y-coordinate of the bounds that will be assigned to the
renderer componentwidth
- the width of the bounds that will be assigned to the renderer
componentheight
- the height of the bounds that will be assigned to the renderer
component
protected void paintComponent(java.awt.Graphics g)
paintComponent
in class javax.swing.JComponent
protected void paintParent(java.awt.Graphics g)
g
- the graphics context into which to drawprotected void paintActivityFocus(java.awt.Graphics g)
g
- the graphics context into which to drawprotected void paintEvent(java.awt.Graphics g)
g
- the graphics context into which to drawprotected void paintActivityContent(java.awt.Graphics g)
g
- the graphics context into which to drawpaintActivityBorder(Graphics)
,
paintActivityShadow(Graphics)
protected void paintActivityShadow(java.awt.Graphics g)
g
- the graphics context into which to drawsetShadowOffsetX(int)
,
setShadowOffsetY(int)
,
setShadowOpacity(float)
protected void paintActivityBorder(java.awt.Graphics g)
g
- the graphics context into which to drawsetRoundedCorners(boolean)
public int getBarHeight()
public void setBarHeight(int height)
height
- the height of the barpublic java.awt.Color getActivityFillColor1()
public void setActivityFillColor1(java.awt.Color color)
color
- the first fill color for the gradient backgroundpublic java.awt.Color getActivityFillColor2()
public void setActivityFillColor2(java.awt.Color color)
color
- the second fill color for the gradient backgroundpublic java.awt.Color getFocusFillColor1()
public void setFocusFillColor1(java.awt.Color color)
color
- the first fill color for the gradient background of focused
timeline objectspublic java.awt.Color getFocusFillColor2()
public void setFocusFillColor2(java.awt.Color color)
color
- the second fill color for the gradient background of focused
timeline objectspublic java.awt.Color getFocusLineColor()
public void setFocusLineColor(java.awt.Color color)
color
- the line color for the focused timeline objectpublic java.awt.Color getHighlightFillColor1()
public void setHighlightFillColor1(java.awt.Color color)
color
- the first fill color for the gradient background of
highlighted timeline objectspublic java.awt.Color getHighlightFillColor2()
public void setHighlightFillColor2(java.awt.Color color)
color
- the second fill color for the gradient background of
highlighted timeline objectspublic java.awt.Color getHighlightLineColor()
public void setHighlightLineColor(java.awt.Color color)
color
- the line color for the highlighted timeline objectpublic java.awt.Color getActivityLineColor()
public void setActivityLineColor(java.awt.Color color)
color
- the line color for the activity timeline objectpublic java.awt.Color getSelectionFillColor1()
public void setSelectionFillColor1(java.awt.Color color)
color
- the first fill color for the gradient background of selected
timeline objectspublic java.awt.Color getSelectionFillColor2()
public void setSelectionFillColor2(java.awt.Color color)
color
- the second fill color for the gradient background of selected
timeline objectspublic java.awt.Color getSelectionLineColor()
public void setSelectionLineColor(java.awt.Color color)
color
- the line color for the highlighted timeline objectpublic java.awt.Color getShadowColor()
public void setShadowColor(java.awt.Color color)
color
- the color of the shadowpublic int getShadowOffsetX()
public void setShadowOffsetX(int offset)
offset
- the x offset of the shadowpublic int getShadowOffsetY()
public void setShadowOffsetY(int offset)
offset
- the y offset of the shadowpublic float getShadowOpacity()
public void setShadowOpacity(float opacity)
opacity
- the shadow opacitypublic java.awt.Color getEventFillColor1()
public void setEventFillColor1(java.awt.Color color)
color
- the first fill color for the gradient background of timeline
objects that are eventspublic java.awt.Color getEventFillColor2()
public void setEventFillColor2(java.awt.Color color)
color
- the second fill color for the gradient background of timeline
objects that are eventspublic void setEventLineColor(java.awt.Color color)
color
- the line color for the event timeline objectpublic java.awt.Color getEventLineColor()
protected boolean isEvent()
public boolean isParent()
public boolean hasFocus()
isFocused()
but the user could get confused
with the hasFocus()
method of the superclass.
hasFocus
in class java.awt.Component
protected TimelineObjectLayer getTimelineObjectLayer()
protected IGanttChartModel getModel()
protected java.lang.Object getNode()
protected java.lang.Object getTimelineObject()
protected boolean isSelected()
public boolean isHighlighted()
LayerContainer
. This thread runs whenever at least one timeline
object is highlighted.
LayerContainer.addHighlightedObjects(java.util.Collection)
,
LayerContainer.isHighlighted(com.dlsc.flexgantt.model.gantt.TimelineObjectPath)
public boolean isVisualizingPastTime()
public void setVisualizingPastTime(boolean b)
b
- TRUE timeline objects located in the past will be drawn in a
different waypublic boolean isRoundedCorners()
public void setRoundedCorners(boolean b)
b
- if TRUE the activity bars will feature rounded cornerspublic java.awt.Color getResizeHandleColor()
public void setResizeHandleColor(java.awt.Color color)
color
- the handle colorpublic int getDiamondSize()
public void setDiamondSize(int size)
size
- the diamond sizepublic java.awt.Color getParentFillColor1()
IGanttChartModel.isParentTimelineObject(Object)
public void setParentFillColor1(java.awt.Color color)
color
- the first parent background colorIGanttChartModel.isParentTimelineObject(Object)
public java.awt.Color getParentFillColor2()
IGanttChartModel.isParentTimelineObject(Object)
public void setParentFillColor2(java.awt.Color color)
color
- the second parent background colorIGanttChartModel.isParentTimelineObject(Object)
public java.awt.Color getParentLineColor()
IGanttChartModel.isParentTimelineObject(Object)
public void setParentLineColor(java.awt.Color color)
color
- the parent line colorIGanttChartModel.isParentTimelineObject(Object)
public java.awt.Color getPastFillColor1()
public void setPastFillColor1(java.awt.Color color)
color
- the first background color for past activitiespublic java.awt.Color getPastFillColor2()
public void setPastFillColor2(java.awt.Color color)
color
- the second background color for past activitiesprotected boolean isStartTimeChangeable()
IEditTimelineObjectPolicy
to see if the start time of
the currently rendered timeline object can be changed. This is important
to know when drawing resize handles. These can only be added on the left
edge of the eventline object when its duration AND its start time can be
changed.
protected boolean isDurationChangeable()
IEditTimelineObjectPolicy
to see if the duration of
the currently rendered timeline object can be changed. This is important
to know when drawing resize handles.
public void validate()
validate
in class java.awt.Container
public void invalidate()
invalidate
in class java.awt.Container
public void revalidate()
revalidate
in class javax.swing.JComponent
public void firePropertyChange(java.lang.String propertyName, boolean oldValue, boolean newValue)
firePropertyChange
in class javax.swing.JComponent
public void firePropertyChange(java.lang.String propertyName, byte oldValue, byte newValue)
firePropertyChange
in class java.awt.Component
public void firePropertyChange(java.lang.String propertyName, char oldValue, char newValue)
firePropertyChange
in class javax.swing.JComponent
public void firePropertyChange(java.lang.String propertyName, double oldValue, double newValue)
firePropertyChange
in class java.awt.Component
public void firePropertyChange(java.lang.String propertyName, float oldValue, float newValue)
firePropertyChange
in class java.awt.Component
public void firePropertyChange(java.lang.String propertyName, long oldValue, long newValue)
firePropertyChange
in class java.awt.Component
protected void firePropertyChange(java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue)
firePropertyChange
in class java.awt.Component
public void firePropertyChange(java.lang.String propertyName, short oldValue, short newValue)
firePropertyChange
in class java.awt.Component
public void repaint()
repaint
in class java.awt.Component
public void repaint(int x, int y, int width, int height)
repaint
in class java.awt.Component
public void repaint(long tm)
repaint
in class java.awt.Component
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |