|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent com.jidesoft.treemap.TreeMapView<N>
N
- the type of nodespublic abstract class TreeMapView<N>
Main class for the view part of TreeMap.
Nested Class Summary | |
---|---|
static class |
TreeMapView.Progressive
|
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
static String |
PROPERTY_PROGRESSIVE
|
static String |
uiClassID
|
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Method Summary | |
---|---|
abstract TreeMapHeaderRenderer |
getHeaderRenderer()
|
abstract TreeMapLabelRenderer |
getLabelRenderer()
|
abstract TreeMapModel<N> |
getModel()
Returns the TreeMapModel that provides the data displayed by this TreeMapView. |
abstract N |
getNode(Point p)
Returns the node at the specified location on the screen. |
abstract List<N> |
getNodes(Rectangle rect)
Returns the nodes overlapping the specified rectangle. |
abstract Iterable<TreeMapRenderer> |
getPostRenderers()
|
abstract Iterable<TreeMapRenderer> |
getPreProgressiveRenderers()
|
abstract Iterable<TreeMapRenderer> |
getPreRenderers()
|
TreeMapView.Progressive |
getProgressive()
Returns whether progressive display mode is enabled. |
abstract Iterable<TreeMapRenderer> |
getProgressiveRenderers()
|
abstract Shape |
getRenderedShape(N node)
Returns the shape of the node according to its rendered position in screen coordinates. |
abstract RenderingHints |
getRenderingHints()
|
abstract Rectangle2D |
getRubberBand()
|
abstract Rectangle |
getRubberBandScreen()
|
abstract Shape |
getScreenShape(N node)
Returns the shape of the node according to its layout position in screen coordinates. |
abstract TreeMapToolTip<N> |
getSelectionToolTip()
|
abstract TreeMapToolTip<N> |
getToolTip()
|
abstract TreeMapTooltipRenderer |
getTooltipRenderer()
|
TreeMapUI |
getUI()
Returns the L&F object that renders this component. |
String |
getUIClassID()
Returns the suffix used to construct the name of the L&F class used to render this component. |
abstract Rectangle2D |
getViewport()
|
abstract Rectangle2D |
getWorld()
|
abstract float |
getZoomFactor()
|
abstract boolean |
isDirty()
|
boolean |
isShowTiming()
Returns whether information about refresh rate should be displayed. |
boolean |
isUpdateModelDimension()
|
abstract double |
screenToWorldX(int x)
|
abstract double |
screenToWorldY(int y)
|
abstract void |
setDirty(boolean dirty)
|
abstract void |
setHeaderRenderer(TreeMapHeaderRenderer<N> renderer)
|
abstract void |
setLabelRenderer(TreeMapLabelRenderer<N> renderer)
|
abstract void |
setModel(TreeMapModel<N> model)
Sets the data model and registers with it for listener notifications from the new data model. |
void |
setProgressive(TreeMapView.Progressive progressive)
Sets whether progressive display mode is enabled. |
abstract void |
setRenderingHints(RenderingHints renderingHints)
|
abstract void |
setSelectionToolTip(TreeMapToolTip<N> toolTip)
|
void |
setShowTiming(boolean showTiming)
Sets whether information about refresh rate should be displayed. |
abstract void |
setToolTip(TreeMapToolTip<N> toolTip)
|
abstract void |
setTooltipRenderer(TreeMapTooltipRenderer<N> renderer)
|
void |
setUI(TreeMapUI ui)
|
void |
setUpdateModelDimension(boolean updateModelDimension)
|
abstract void |
startRubberBand(int x,
int y)
|
abstract void |
stopRubberBand()
|
abstract void |
stretchRubberBand(int x,
int y)
|
protected abstract void |
updateModelDimension()
|
void |
updateUI()
Resets the UI property to a value from the current look and feel. |
abstract Rectangle |
worldToScreeen(Rectangle2D rectangle)
Convert the specified rectangle to screen coordinates. |
protected abstract int |
worldToScreenX(double x)
|
protected abstract int |
worldToScreenY(double y)
|
abstract void |
zoom(boolean animate,
double x1,
double x2,
double y1,
double y2)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String PROPERTY_PROGRESSIVE
public static final String uiClassID
Method Detail |
---|
public void setUI(TreeMapUI ui)
public void updateUI()
updateUI
in class JComponent
public TreeMapUI getUI()
public String getUIClassID()
getUIClassID
in class JComponent
public boolean isShowTiming()
public void setShowTiming(boolean showTiming)
showTiming
- true to display refresh rate information, false otherwisepublic TreeMapView.Progressive getProgressive()
public void setProgressive(TreeMapView.Progressive progressive)
progressive
- true if progressive display mode is enabled, false otherwisepublic boolean isUpdateModelDimension()
public void setUpdateModelDimension(boolean updateModelDimension)
protected abstract void updateModelDimension()
public abstract void setModel(TreeMapModel<N> model)
model
- the new data modelgetModel()
public abstract TreeMapModel<N> getModel()
setModel(com.jidesoft.treemap.TreeMapModel)
public abstract Shape getScreenShape(N node)
node
- the node
public abstract Shape getRenderedShape(N node)
node
- the node
public abstract double screenToWorldX(int x)
public abstract double screenToWorldY(int y)
protected abstract int worldToScreenX(double x)
protected abstract int worldToScreenY(double y)
public abstract Rectangle2D getViewport()
public abstract Rectangle2D getWorld()
public abstract void zoom(boolean animate, double x1, double x2, double y1, double y2)
public abstract N getNode(Point p)
p
- the location on the screen
public abstract List<N> getNodes(Rectangle rect)
rect
- the rectangle in screen coordinates
public abstract void startRubberBand(int x, int y)
public abstract void stretchRubberBand(int x, int y)
public abstract void stopRubberBand()
public abstract Rectangle2D getRubberBand()
public abstract Rectangle getRubberBandScreen()
public abstract float getZoomFactor()
public abstract Iterable<TreeMapRenderer> getPreRenderers()
public abstract Iterable<TreeMapRenderer> getPreProgressiveRenderers()
public abstract Iterable<TreeMapRenderer> getProgressiveRenderers()
public abstract Iterable<TreeMapRenderer> getPostRenderers()
public abstract void setDirty(boolean dirty)
public abstract boolean isDirty()
public abstract void setLabelRenderer(TreeMapLabelRenderer<N> renderer)
public abstract TreeMapLabelRenderer getLabelRenderer()
public abstract void setHeaderRenderer(TreeMapHeaderRenderer<N> renderer)
public abstract TreeMapHeaderRenderer getHeaderRenderer()
public abstract void setTooltipRenderer(TreeMapTooltipRenderer<N> renderer)
public abstract TreeMapTooltipRenderer getTooltipRenderer()
public abstract Rectangle worldToScreeen(Rectangle2D rectangle)
rectangle
- the rectangle to convert
public abstract RenderingHints getRenderingHints()
public abstract void setRenderingHints(RenderingHints renderingHints)
public abstract TreeMapToolTip<N> getToolTip()
public abstract void setToolTip(TreeMapToolTip<N> toolTip)
public abstract TreeMapToolTip<N> getSelectionToolTip()
public abstract void setSelectionToolTip(TreeMapToolTip<N> toolTip)
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |