public class WordCloudComponent extends MasterComponent
Modifier and Type | Field and Description |
---|---|
static String |
COMPONENT_FAMILY |
static String |
COMPONENT_TYPE |
static String |
DEFAULT_RENDERER |
ATTRS_WITH_DECLARED_DEFAULT_VALUES, BEANINFO_KEY, COMPOSITE_COMPONENT_TYPE_KEY, COMPOSITE_FACET_NAME, CURRENT_COMPONENT, CURRENT_COMPOSITE_COMPONENT, FACETS_KEY, HONOR_CURRENT_COMPONENT_ATTRIBUTES_PARAM_NAME, VIEW_LOCATION_KEY
Constructor and Description |
---|
WordCloudComponent() |
Modifier and Type | Method and Description |
---|---|
String |
getFamily() |
String |
getFont()
Returns the font face for each word.
|
Integer |
getHeight()
Returns the height of the entire cloud.
|
Integer |
getPadding()
Returns the numerical padding for each word / String.
|
Integer |
getScaleTo()
Returns the number that the dataset will be scaled to, from 0 to this number.
|
Integer |
getWidth()
Returns the width of the entire cloud.
|
Map<String,Integer> |
getWords()
Returns the map of words (or rather, Strings, as they can have spaces) to the font size of that word.
|
Boolean |
isForceStretch()
Returns whether to scale the dataset when the largest value is less than the return value of
getScaleTo() . |
void |
setFont(String font)
Sets the font face for each word.
|
void |
setForceStretch(Boolean forceStretch)
Sets whether to scale the dataset when the largest value is less than the return value of
getScaleTo() . |
void |
setHeight(Integer height)
Sets the height of the entire cloud.
|
void |
setPadding(Integer padding)
Sets the numerical padding for each word / String.
|
void |
setScaleTo(Integer scaleTo)
Sets the number that the dataset will be scaled to, from 0 to this number.
|
void |
setWidth(Integer width)
Sets the width of the entire cloud.
|
void |
setWords(Map<String,Integer> words)
Sets the map of words (or rather, Strings, as they can have spaces) to the font size of that word.
|
getStyle, getStyleClass, setStyle, setStyleClass
addClientBehavior, broadcast, clearInitialState, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getDefaultEventName, getEventNames, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getListenersForEventClass, getParent, getPassThroughAttributes, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, markInitialState, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, restoreAttachedState, restoreState, saveAttachedState, saveState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding, subscribeToEvent, unsubscribeFromEvent
encodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getNamingContainer, getPassThroughAttributes, getResourceBundleMap, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, popComponentFromEL, processEvent, pushComponentToEL, restoreTransientState, saveTransientState, setInView, setValueExpression, visitTree
public static final String COMPONENT_FAMILY
public static final String COMPONENT_TYPE
public static final String DEFAULT_RENDERER
public String getFamily()
getFamily
in class UIComponent
public Integer getWidth()
public void setWidth(Integer width)
width
- the width of the entire cloudpublic Integer getHeight()
public void setHeight(Integer height)
height
- the height of the entire cloudpublic Integer getPadding()
public void setPadding(Integer padding)
padding
- the numerical padding for each word / Stringpublic String getFont()
public void setFont(String font)
font
- the font face for each wordpublic Map<String,Integer> getWords()
public void setWords(Map<String,Integer> words)
words
- the map of words to the font size of that wordpublic Integer getScaleTo()
isForceStretch()
public void setScaleTo(Integer scaleTo)
scaleTo
- the number that the dataset will be scaled tosetForceStretch(java.lang.Boolean)
public void setForceStretch(Boolean forceStretch)
getScaleTo()
.
If set to true
and scaleTo
is defined, then if the largest value is less than scaleTo
,
the dataset will be scaled. Otherwise, if scaling will only occur if the largest value is larger than scaleTo
.
forceStretch
- whether to scale the dataset when the largest value is not large enoughgetScaleTo()
public Boolean isForceStretch()
getScaleTo()
.
If set to true
and scaleTo
is defined, then if the largest value is less than scaleTo
,
the dataset will be scaled. Otherwise, if scaling will only occur if the largest value is larger than scaleTo
.
getScaleTo()
Copyright © 2015 Joseph Hendrix