biggests.utils
Class VerticalTextIconWithArrow

java.lang.Object
  extended by biggests.utils.VerticalTextIcon
      extended by biggests.utils.VerticalTextIconWithArrow
All Implemented Interfaces:
java.beans.PropertyChangeListener, java.util.EventListener, javax.swing.Icon

public class VerticalTextIconWithArrow
extends VerticalTextIcon

Title: Vertical Text Icon With Arrow

Description: Implements an icon with vertical text and an arrow.

Copyright: Copyright (c) 2008

Copyright: Copyright (C) 2007 Joana P. Gonçalves This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.


Field Summary
 
Fields inherited from class biggests.utils.VerticalTextIcon
DEFAULT_CJK, DEFAULT_MUST_ROTATE, DEFAULT_ROMAN, fCharHeight, fCharStrings, fCharWidths, fComponent, fDescent, fHeight, fLabel, fPosition, fRotation, fWidth, kBufferSpace, LEGAL_MUST_ROTATE, LEGAL_ROMAN, NINETY_DEGREES, POSITION_FAR_TOP_RIGHT, POSITION_NORMAL, POSITION_TOP_RIGHT, ROTATE_DEFAULT, ROTATE_LEFT, ROTATE_NONE, ROTATE_RIGHT
 
Constructor Summary
VerticalTextIconWithArrow(javax.swing.Icon arrow, java.awt.Component component, java.lang.String label)
           
VerticalTextIconWithArrow(javax.swing.Icon arrow, java.awt.Component component, java.lang.String label, int rotateHint)
           
 
Method Summary
 void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
          Draws the icon at the specified location.
 
Methods inherited from class biggests.utils.VerticalTextIcon
getIconHeight, getIconWidth, propertyChange, setLabel, verifyRotation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VerticalTextIconWithArrow

public VerticalTextIconWithArrow(javax.swing.Icon arrow,
                                 java.awt.Component component,
                                 java.lang.String label)

VerticalTextIconWithArrow

public VerticalTextIconWithArrow(javax.swing.Icon arrow,
                                 java.awt.Component component,
                                 java.lang.String label,
                                 int rotateHint)
Method Detail

paintIcon

public void paintIcon(java.awt.Component c,
                      java.awt.Graphics g,
                      int x,
                      int y)
Draws the icon at the specified location. Icon implementations may use the Component argument to get properties useful for painting, e.g. the foreground or background color.

Specified by:
paintIcon in interface javax.swing.Icon
Overrides:
paintIcon in class VerticalTextIcon
Parameters:
c - the Component to draw
g - the Graphics where to draw the component
x - int the x-coordinate of the component's location
y - int the y-coordinate of the component's location