Side of Software
Marker Bar Library 1.0

sos.marker
Class MarkerBarUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by sos.marker.MarkerBarUI
Direct Known Subclasses:
BasicMarkerBarUI

public abstract class MarkerBarUI
extends javax.swing.plaf.ComponentUI

The JMarkerBar pluggable look-and-feel UI delegate. Clients typically do not work with this class directly. Instead, they use the similar-named methods in JMarkerBar.

Since:
1.0
See Also:
JMarkerBar, BasicMarkerBarUI

Constructor Summary
MarkerBarUI()
           
 
Method Summary
abstract  java.awt.Rectangle getMarkerBounds(JMarkerBar markerBar, int markerIndex)
          Returns the rectangle for which the marker at the specified index is rendered, in the marker bar's coordinate system.
abstract  int[] locationToIndices(JMarkerBar markerBar, java.awt.Point point)
          Returns the indexes of the markers that are rendered at the specified point.
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, createUI, getAccessibleChild, getAccessibleChildrenCount, getMaximumSize, getMinimumSize, getPreferredSize, installUI, paint, uninstallUI, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MarkerBarUI

public MarkerBarUI()
Method Detail

getMarkerBounds

public abstract java.awt.Rectangle getMarkerBounds(JMarkerBar markerBar,
                                                   int markerIndex)
Returns the rectangle for which the marker at the specified index is rendered, in the marker bar's coordinate system.

Parameters:
markerBar - marker bar containing the marker in question
markerIndex - index of the marker in the marker bar's model for which the region is requested
Returns:
the rectangle where the specified marker is rendered, or null if the index is out of range

locationToIndices

public abstract int[] locationToIndices(JMarkerBar markerBar,
                                        java.awt.Point point)
Returns the indexes of the markers that are rendered at the specified point.

Parameters:
markerBar - marker bar containing the markers
point - point in question
Returns:
the indexes of the markers rendered at the specified point

Side of Software
Marker Bar Library 1.0

Copyright 2009 Side of Software (SOS). All rights reserved.