com.jidesoft.plaf.basic
Class BasicScaleAreaUI
java.lang.Object
javax.swing.plaf.ComponentUI
com.jidesoft.plaf.ScaleAreaUI
com.jidesoft.plaf.basic.BasicScaleAreaUI
- Direct Known Subclasses:
- TableCellRendererScaleAreaUI
public class BasicScaleAreaUI
- extends ScaleAreaUI
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UI_PERIOD_HEADER_PAINTER
public static final String UI_PERIOD_HEADER_PAINTER
- See Also:
- Constant Field Values
UI_MOUSE_DRAG_RESIZABLE
public static final String UI_MOUSE_DRAG_RESIZABLE
- See Also:
- Constant Field Values
BasicScaleAreaUI
public BasicScaleAreaUI()
createUI
public static ComponentUI createUI(JComponent c)
getScaleArea
protected ScaleArea<Object> getScaleArea()
installUI
public void installUI(JComponent c)
- Overrides:
installUI
in class ComponentUI
uninstallUI
public void uninstallUI(JComponent c)
- Overrides:
uninstallUI
in class ComponentUI
installDefaults
protected void installDefaults(ScaleArea<Object> scaleArea)
createDefaultPeriodHeaderPainter
protected PeriodHeaderPainter createDefaultPeriodHeaderPainter(ScaleArea<Object> scaleArea)
uninstallDefaults
protected void uninstallDefaults(ScaleArea<Object> scaleArea)
installListeners
protected void installListeners(ScaleArea<Object> scaleArea)
createHandler
protected BasicScaleAreaUI.Handler createHandler()
uninstallListeners
protected void uninstallListeners(ScaleArea<Object> scaleArea)
paintBackground
protected void paintBackground(Graphics g,
ScaleArea<Object> scaleArea)
paint
public void paint(Graphics g,
JComponent c)
- Overrides:
paint
in class ComponentUI
getPreferredSize
public Dimension getPreferredSize(JComponent c)
- Overrides:
getPreferredSize
in class ComponentUI
recalculateScale
protected void recalculateScale(ScaleArea<Object> scaleArea)
getPositionAt
public long getPositionAt(int x)
- Description copied from class:
ScaleAreaUI
- Note: the components left-to-right orientation should be taken into account.
- Specified by:
getPositionAt
in class ScaleAreaUI
getX
public int getX(long position)
- Description copied from class:
ScaleAreaUI
- Note: the components left-to-right orientation should be taken into account.
- Specified by:
getX
in class ScaleAreaUI
getLeftToRightX
protected int getLeftToRightX(long position)
setPreferredPeriodSize
protected void setPreferredPeriodSize(Dimension size)
getPreferredPeriodSize
public Dimension getPreferredPeriodSize(Period period)
- Specified by:
getPreferredPeriodSize
in class ScaleAreaUI
getPeriodAt
public Period getPeriodAt(int y)
- Specified by:
getPeriodAt
in class ScaleAreaUI