de.uni_paderborn.fujaba.fsa.swing
Class LineUI

java.lang.Object
  extended byjavax.swing.plaf.ComponentUI
      extended byde.uni_paderborn.fujaba.fsa.swing.LineUI
Direct Known Subclasses:
DefaultLineUI

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

Base UI for JLines. New UIs for JLines must extend this class or subclasses of this class.

Version:
$Revision: 1.10.2.1 $
Author:
$Author: mksoft $

Field Summary
static java.awt.Stroke PLAIN_STROKE
          No comment provided by developer, please add a comment to improve documentation.
 
Constructor Summary
LineUI()
           
 
Method Summary
 boolean contains(javax.swing.JComponent c, int x, int y)
          No comment provided by developer, please add a comment to improve documentation.
 java.awt.Rectangle getPreferredBounds(javax.swing.JComponent c)
          Returns the preferred bounds for the given JLine, considering the preferred line bounds as given by getPreferredLineBounds and the child components of the JLine.
abstract  java.awt.Rectangle getPreferredLineBounds(JLine c)
          Returns the preferred bounds of the given JLine, based on its start and end points.
 java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
          Returns the optimal size of the given JLine.
 void paint(java.awt.Graphics g, javax.swing.JComponent c)
          Paints the given compontent, and especially the line using paintLine()
abstract  void paintLine(java.awt.Graphics g, JLine c)
          Interface for drawing the line of the JLine.
 
Methods inherited from class javax.swing.plaf.ComponentUI
createUI, getAccessibleChild, getAccessibleChildrenCount, getMaximumSize, getMinimumSize, installUI, uninstallUI, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PLAIN_STROKE

public static final java.awt.Stroke PLAIN_STROKE
No comment provided by developer, please add a comment to improve documentation.

Constructor Detail

LineUI

public LineUI()
Method Detail

contains

public boolean contains(javax.swing.JComponent c,
                        int x,
                        int y)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
c - No description provided
x - No description provided
y - No description provided
Returns:
No description provided

getPreferredSize

public java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
Returns the optimal size of the given JLine. In this case, simply the size of getPreferredBounds() is returned.

Parameters:
c - A JComponent for which the preferred size should be determined. Must be a JLine for this class.
Returns:
The preferredSize value

getPreferredBounds

public java.awt.Rectangle getPreferredBounds(javax.swing.JComponent c)
Returns the preferred bounds for the given JLine, considering the preferred line bounds as given by getPreferredLineBounds and the child components of the JLine.

Parameters:
c - No description provided
Returns:
The preferredBounds value
See Also:
getPreferredLineBounds(de.uni_paderborn.fujaba.fsa.swing.JLine)

getPreferredLineBounds

public abstract java.awt.Rectangle getPreferredLineBounds(JLine c)
Returns the preferred bounds of the given JLine, based on its start and end points.

Parameters:
c - A JComponent for which the preferred bounds should be determined. Must be a JLine for this class.
Returns:
The preferredLineBounds value

paint

public void paint(java.awt.Graphics g,
                  javax.swing.JComponent c)
Paints the given compontent, and especially the line using paintLine()

Parameters:
c - A JComponent that should be drawn. Must be a JLine for this class.
g - No description provided

paintLine

public abstract void paintLine(java.awt.Graphics g,
                               JLine c)
Interface for drawing the line of the JLine. Called by paint()

Parameters:
g - No description provided
c - No description provided