Package ca.phon.media
Class TimeComponentUI
java.lang.Object
javax.swing.plaf.ComponentUI
ca.phon.media.TimeComponentUI
- Direct Known Subclasses:
RecordGridUI
,TimebarUI
,WaveformDisplayUI
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
beginDrag
(TimeUIModel.Interval interval, TimeUIModel.Marker marker) Begin drag with givenTimeUIModel.Interval
andTimeUIModel.Marker
void
beginDrag
(TimeUIModel.Marker marker) Begin drag with givenTimeUIModel.Marker
void
Swap dragged marker for currently dragged interval.void
void
endDrag()
End current dragvoid
void
paintInterval
(Graphics2D g2, TimeUIModel.Interval interval, boolean paintBackground) void
paintMarker
(Graphics2D g2, TimeUIModel.Marker marker) void
Methods inherited from class javax.swing.plaf.ComponentUI
contains, createUI, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, paint, update
-
Field Details
-
MARKER_PADDING
public static final int MARKER_PADDING- See Also:
-
-
Constructor Details
-
TimeComponentUI
public TimeComponentUI()
-
-
Method Details
-
installUI
- Overrides:
installUI
in classComponentUI
-
uninstallUI
- Overrides:
uninstallUI
in classComponentUI
-
getPreferredSize
- Overrides:
getPreferredSize
in classComponentUI
-
getTimeComponent
-
paintMarker
-
paintInterval
-
beginDrag
Begin drag with givenTimeUIModel.Marker
- Parameters:
marker
-
-
beginDrag
Begin drag with givenTimeUIModel.Interval
andTimeUIModel.Marker
- Parameters:
interval
-marker
-
-
beginDragOtherIntervalMarker
public void beginDragOtherIntervalMarker()Swap dragged marker for currently dragged interval. Has no effect if no interval is currently being dragged. -
endDrag
public void endDrag()End current drag -
cancelDrag
public void cancelDrag() -
getCurrentlyDraggedInterval
-
getCurrentlyDraggedMarker
-