|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.awt.event.MouseAdapter
edu.psu.geovista.ui.ExcentricLabels
Display excentric labels around items in a visualization.
| Constructor Summary | |
ExcentricLabels()
Constructor for ExcentricLabels. |
|
| Method Summary | |
protected double |
comparableValueLeft(java.awt.geom.Point2D.Double pos)
|
protected double |
comparableValueRight(java.awt.geom.Point2D.Double pos)
|
int |
compare(java.lang.Object o1,
java.lang.Object o2)
For sorting points vertically. |
protected void |
computeExcentricLabels(java.awt.Graphics2D graphics,
java.awt.geom.Rectangle2D bounds)
|
protected void |
computeItemPositions(java.awt.Graphics2D graphics,
java.awt.geom.Rectangle2D bounds)
|
java.awt.Color |
getBackgroundColor()
Returns the backgroundColor. |
int |
getFocusSize()
Returns the focusSize. |
int |
getGap()
Returns the gap. |
int |
getMaxLabels()
Returns the maxLabels. |
int |
getThreshold()
Returns the threshold. |
boolean |
isOpaque()
Returns the opaque. |
boolean |
isVisible()
Returns the visible. |
void |
mouseDragged(java.awt.event.MouseEvent e)
|
void |
mouseEntered(java.awt.event.MouseEvent e)
|
void |
mouseExited(java.awt.event.MouseEvent e)
|
void |
mouseMoved(java.awt.event.MouseEvent e)
|
void |
mousePressed(java.awt.event.MouseEvent e)
|
void |
paint(java.awt.Graphics2D graphics,
java.awt.geom.Rectangle2D bounds)
|
protected void |
projectLeftRight(java.awt.Graphics2D graphics,
java.awt.geom.Rectangle2D bounds)
|
void |
setBackgroundColor(java.awt.Color backgroundColor)
Sets the backgroundColor. |
void |
setComponent(javax.swing.JComponent c)
|
void |
setFocusSize(int focusSize)
Sets the focusSize. |
void |
setGap(int gap)
Sets the gap. |
void |
setMaxLabels(int maxLabels)
Sets the maxLabels. |
void |
setOpaque(boolean opaque)
Sets the opaque. |
void |
setThreshold(int threshold)
Sets the threshold. |
void |
setVisible(boolean visible)
Sets the visible. |
| Methods inherited from class java.awt.event.MouseAdapter |
mouseClicked, mouseReleased |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Comparator |
equals |
| Constructor Detail |
public ExcentricLabels()
| Method Detail |
public void setComponent(javax.swing.JComponent c)
JToolTip.setComponent(JComponent)
public void paint(java.awt.Graphics2D graphics,
java.awt.geom.Rectangle2D bounds)
protected void computeExcentricLabels(java.awt.Graphics2D graphics,
java.awt.geom.Rectangle2D bounds)
protected void computeItemPositions(java.awt.Graphics2D graphics,
java.awt.geom.Rectangle2D bounds)
protected double comparableValueLeft(java.awt.geom.Point2D.Double pos)
protected double comparableValueRight(java.awt.geom.Point2D.Double pos)
protected void projectLeftRight(java.awt.Graphics2D graphics,
java.awt.geom.Rectangle2D bounds)
public boolean isVisible()
public void setVisible(boolean visible)
visible - The visible to set
public int compare(java.lang.Object o1,
java.lang.Object o2)
compare in interface java.util.ComparatorComparator.compare(Object, Object)public void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered in interface java.awt.event.MouseListenerMouseAdapter.mouseEntered(MouseEvent)public void mouseExited(java.awt.event.MouseEvent e)
mouseExited in interface java.awt.event.MouseListenerMouseAdapter.mouseExited(MouseEvent)public void mousePressed(java.awt.event.MouseEvent e)
mousePressed in interface java.awt.event.MouseListenerMouseAdapter.mousePressed(MouseEvent)public void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged in interface java.awt.event.MouseMotionListenerMouseMotionListener.mouseDragged(MouseEvent)public void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved in interface java.awt.event.MouseMotionListenerMouseMotionListener.mouseMoved(MouseEvent)public int getGap()
public void setGap(int gap)
gap - The gap to setpublic int getMaxLabels()
public void setMaxLabels(int maxLabels)
maxLabels - The maxLabels to setpublic int getThreshold()
public void setThreshold(int threshold)
threshold - The threshold to setpublic int getFocusSize()
public void setFocusSize(int focusSize)
focusSize - The focusSize to setpublic java.awt.Color getBackgroundColor()
public boolean isOpaque()
public void setBackgroundColor(java.awt.Color backgroundColor)
backgroundColor - The backgroundColor to setpublic void setOpaque(boolean opaque)
opaque - The opaque to set
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||