Class DefaultRecordGridUI
java.lang.Object
javax.swing.plaf.ComponentUI
ca.phon.media.TimeComponentUI
ca.phon.app.session.editor.view.timeline.RecordGridUI
ca.phon.app.session.editor.view.timeline.DefaultRecordGridUI
-
Field Summary
Modifier and TypeFieldDescriptionprotected com.github.davidmoten.rtree.RTree<Action,
com.github.davidmoten.rtree.geometry.Rectangle> protected com.github.davidmoten.rtree.RTree<Integer,
com.github.davidmoten.rtree.geometry.Rectangle> protected com.github.davidmoten.rtree.RTree<String,
com.github.davidmoten.rtree.geometry.Rectangle> protected com.github.davidmoten.rtree.RTree<Integer,
com.github.davidmoten.rtree.geometry.Rectangle> protected com.github.davidmoten.rtree.RTree<Integer,
com.github.davidmoten.rtree.geometry.Rectangle> Fields inherited from class ca.phon.media.TimeComponentUI
MARKER_PADDING
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Rectangle2D
calculateSegmentLabelRect
(Graphics2D g2, int recordIndex, Record r, Rectangle2D segmentRect) void
getPreferredSize
(JComponent comp) getSegmentRect
(Record record) getSpeakerTierRect
(Participant participant) void
protected void
void
paint
(Graphics g, JComponent c) protected void
paintMultipleMarkers
(Graphics2D g2, Set<Integer> recordSet, Color color, Rectangle2D rect) protected Rectangle2D
paintRecordNumberLabel
(Graphics2D g2, int recordIndex, Icon icon, Color color, Rectangle2D segmentRect) protected Rectangle2D
paintSegment
(Graphics2D g2, int recordIndex, Record r, Rectangle2D segmentRect) protected void
paintSegmentLabel
(Graphics2D g2, Record r, String tierName, Rectangle2D labelRect) protected void
paintSegmentLabelAndActions
(Graphics2D g2, int recordIndex, Record r, Rectangle2D segmentRect) protected Rectangle
paintSpeakerLabel
(Graphics g2, Participant speaker) protected void
protected void
paintZeroLengthSegment
(Graphics2D g2, int recordIndex, Record r, Rectangle2D segmentRect) void
repaintOverlappingRecords
(Record record) void
repaintOverlappingRecords
(Rectangle2D segRect) void
selectRecords
(PhonActionEvent<Set<Integer>> pae) void
void
void
void
Methods inherited from class ca.phon.media.TimeComponentUI
beginDrag, beginDrag, beginDragOtherIntervalMarker, cancelDrag, endDrag, getCurrentlyDraggedInterval, getCurrentlyDraggedMarker, getTimeComponent, paintInterval, paintMarker
Methods inherited from class javax.swing.plaf.ComponentUI
contains, createUI, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, update
-
Field Details
-
recordLabelTree
protected com.github.davidmoten.rtree.RTree<Integer,com.github.davidmoten.rtree.geometry.Rectangle> recordLabelTree -
recordTree
protected com.github.davidmoten.rtree.RTree<Integer,com.github.davidmoten.rtree.geometry.Rectangle> recordTree -
markerTree
protected com.github.davidmoten.rtree.RTree<Integer,com.github.davidmoten.rtree.geometry.Rectangle> markerTree -
messageTree
protected com.github.davidmoten.rtree.RTree<String,com.github.davidmoten.rtree.geometry.Rectangle> messageTree -
actionsTree
protected com.github.davidmoten.rtree.RTree<Action,com.github.davidmoten.rtree.geometry.Rectangle> actionsTree
-
-
Constructor Details
-
DefaultRecordGridUI
public DefaultRecordGridUI()
-
-
Method Details
-
installUI
- Overrides:
installUI
in classTimeComponentUI
-
uninstallUI
- Overrides:
uninstallUI
in classTimeComponentUI
-
getRecordGrid
-
showSpeakerMenu
-
repaintOverlappingRecords
- Specified by:
repaintOverlappingRecords
in classRecordGridUI
-
repaintOverlappingRecords
- Specified by:
repaintOverlappingRecords
in classRecordGridUI
-
getSegmentRect
- Specified by:
getSegmentRect
in classRecordGridUI
-
getSpeakerTierRect
- Specified by:
getSpeakerTierRect
in classRecordGridUI
-
getSpeakerAtPoint
- Specified by:
getSpeakerAtPoint
in classRecordGridUI
-
getPreferredSize
- Overrides:
getPreferredSize
in classTimeComponentUI
-
paint
- Overrides:
paint
in classComponentUI
-
paintMultipleMarkers
protected void paintMultipleMarkers(Graphics2D g2, Set<Integer> recordSet, Color color, Rectangle2D rect) -
showMultipleMarkerMenu
-
setCurrentRecordIndex
-
selectRecords
-
painSelectionRect
-
paintStripes
-
paintSpeakerLabel
-
paintZeroLengthSegment
protected void paintZeroLengthSegment(Graphics2D g2, int recordIndex, Record r, Rectangle2D segmentRect) -
calculateSegmentLabelRect
protected Rectangle2D calculateSegmentLabelRect(Graphics2D g2, int recordIndex, Record r, Rectangle2D segmentRect) -
paintSegmentLabelAndActions
protected void paintSegmentLabelAndActions(Graphics2D g2, int recordIndex, Record r, Rectangle2D segmentRect) -
paintSegment
protected Rectangle2D paintSegment(Graphics2D g2, int recordIndex, Record r, Rectangle2D segmentRect) -
endSplitMode
-
paintRecordNumberLabel
protected Rectangle2D paintRecordNumberLabel(Graphics2D g2, int recordIndex, Icon icon, Color color, Rectangle2D segmentRect) -
paintSegmentLabel
-