public abstract class RenderableBase extends IsRenderableBase implements Renderable
TRANSPARENT, TWO_DIMENSIONAL
Constructor and Description |
---|
RenderableBase() |
Modifier and Type | Method and Description |
---|---|
RenderProps |
getRenderProps()
Returns the render properities for this object.
|
void |
getSelection(java.util.LinkedList<java.lang.Object> list,
int qid)
Append to
list the component (or components) associated with
the qid -th selection query issued by this component's render
method. |
boolean |
isSelectable()
Returns true if this object is in fact selectable.
|
int |
numSelectionQueriesNeeded()
If this selectable manages its own selection (by issuing selection
queries within its
render method), then this method should
return the maximum number of selection queries that will be
required. |
void |
setRenderProps(RenderProps props)
Assigns a new set of render properties to this object.
|
getRenderHints, prerender, render, updateBounds
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRenderHints, prerender, render, updateBounds
createRenderProps
public boolean isSelectable()
isSelectable
in interface IsSelectable
public int numSelectionQueriesNeeded()
render
method), then this method should
return the maximum number of selection queries that will be
required. Otherwise, this method should return -1.numSelectionQueriesNeeded
in interface IsSelectable
public void getSelection(java.util.LinkedList<java.lang.Object> list, int qid)
list
the component (or components) associated with
the qid
-th selection query issued by this component's render
method. This will only be called if this component manages its own
selection (i.e., the number nums
returned by IsSelectable.numSelectionQueriesNeeded()
is positive), and qid
will in
turn be a number between 0 and nums
-1.getSelection
in interface IsSelectable
list
- selected objects are appended to the end of this listqid
- index of the selection querypublic RenderProps getRenderProps()
getRenderProps
in interface HasRenderProps
public void setRenderProps(RenderProps props)
null
will remove render properties from this object.setRenderProps
in interface HasRenderProps
props
- new render properties for this object