java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
weka.clusterers.forOPTICSAndDBScan.OPTICS_GUI.GraphPanel
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, RevisionHandler

public class GraphPanel extends JComponent implements RevisionHandler

GraphPanel.java
Authors: Rainer Holzmann, Zhanna Melnikova-Albrecht
Date: Sep 16, 2004
Time: 10:28:19 AM
$ Revision 1.4 $

Version:
$Revision: 1.4 $
Author:
Zhanna Melnikova-Albrecht (melnikov@cip.ifi.lmu.de), Rainer Holzmann (holzmann@cip.ifi.lmu.de)
See Also:
  • Constructor Details

    • GraphPanel

      public GraphPanel(FastVector resultVector, int verticalAdjustment, boolean showCoreDistances, boolean showReachbilityDistances)
  • Method Details

    • setResultVector

      public void setResultVector(FastVector resultVector)
      Sets a new resultVector
      Parameters:
      resultVector -
    • setNewToolTip

      public void setNewToolTip(String toolTip)
      Displays a toolTip for the selected DataObject
      Parameters:
      toolTip -
    • adjustSize

      public void adjustSize(SERObject serObject)
      Adjusts the size of this panel in respect of the shown content
      Parameters:
      serObject - SERObject that contains the OPTICS clustering results
    • isShowCoreDistances

      public boolean isShowCoreDistances()
      Returns the flag for showCoreDistances
      Returns:
      True or false
    • setShowCoreDistances

      public void setShowCoreDistances(boolean showCoreDistances)
      Sets the flag for showCoreDistances
      Parameters:
      showCoreDistances -
    • isShowReachabilityDistances

      public boolean isShowReachabilityDistances()
      Returns the flag for showReachabilityDistances
      Returns:
      True or false
    • setShowReachabilityDistances

      public void setShowReachabilityDistances(boolean showReachabilityDistances)
      Sets the flag for showReachabilityDistances
      Parameters:
      showReachabilityDistances -
    • setVerticalAdjustment

      public void setVerticalAdjustment(int verticalAdjustment)
      Sets a new value for the vertical verticalAdjustment
      Parameters:
      verticalAdjustment -
    • setCoreDistanceColor

      public void setCoreDistanceColor(Color coreDistanceColor)
      Sets a new color for the coreDistance
      Parameters:
      coreDistanceColor -
    • setReachabilityDistanceColor

      public void setReachabilityDistanceColor(Color reachabilityDistanceColor)
      Sets a new color for the reachabilityDistance
      Parameters:
      reachabilityDistanceColor -
    • getRevision

      public String getRevision()
      Returns the revision string.
      Specified by:
      getRevision in interface RevisionHandler
      Returns:
      the revision