E
- value typepublic abstract class AbstractBinaryVennNode<E> extends AbstractVennNode<E>
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_FIRST_LABEL_TEXT
Default label text for the first set,
"First set" . |
static String |
DEFAULT_FIRST_ONLY_LABEL_TEXT
Default label text for the first only view,
"First only" . |
static String |
DEFAULT_INTERSECTION_LABEL_TEXT
Default label text for the intersection view,
"Intersection" . |
static String |
DEFAULT_SECOND_LABEL_TEXT
Default label text for the second set,
"Second set" . |
static String |
DEFAULT_SECOND_ONLY_LABEL_TEXT
Default label text for the second only view,
"Second only" . |
static String |
DEFAULT_UNION_LABEL_TEXT
Default label text for the union view,
"Union" . |
FILL_STRATEGY_ASPECT_COVER, FILL_STRATEGY_ASPECT_FIT, FILL_STRATEGY_EXACT_FIT, PROPERTY_BOUNDS, PROPERTY_CHILDREN, PROPERTY_CHILDREN_PICKABLE, PROPERTY_CLIENT_PROPERTIES, PROPERTY_CODE_BOUNDS, PROPERTY_CODE_CHILDREN, PROPERTY_CODE_CHILDREN_PICKABLE, PROPERTY_CODE_CLIENT_PROPERTIES, PROPERTY_CODE_FULL_BOUNDS, PROPERTY_CODE_PAINT, PROPERTY_CODE_PARENT, PROPERTY_CODE_PICKABLE, PROPERTY_CODE_TRANSFORM, PROPERTY_CODE_TRANSPARENCY, PROPERTY_CODE_VISIBLE, PROPERTY_FULL_BOUNDS, PROPERTY_PAINT, PROPERTY_PARENT, PROPERTY_PICKABLE, PROPERTY_TRANSFORM, PROPERTY_TRANSPARENCY, PROPERTY_VISIBLE, SCENE_GRAPH_DELEGATE
NO_SUCH_PAGE, PAGE_EXISTS
Modifier | Constructor and Description |
---|---|
protected |
AbstractBinaryVennNode()
Create a new empty abstract binary venn diagram node.
|
protected |
AbstractBinaryVennNode(BinaryVennModel<E> model)
Create a new abstract binary venn diagram node with the specified model.
|
protected |
AbstractBinaryVennNode(String firstLabelText,
Set<? extends E> first,
String secondLabelText,
Set<? extends E> second)
Create a new abstract binary venn diagram node with the specified sets.
|
Modifier and Type | Method and Description |
---|---|
org.piccolo2d.nodes.PText |
getFirstLabel()
Return the label for the first set.
|
String |
getFirstLabelText()
Return the label text for the first set.
|
org.piccolo2d.nodes.PText |
getFirstOnlyLabel()
Return the label for the first only view.
|
String |
getFirstOnlyLabelText()
Return the label text for the first only view.
|
org.piccolo2d.nodes.PText |
getIntersectionLabel()
Return the label for the intersection view.
|
String |
getIntersectionLabelText()
Return the label text for the intersection view.
|
BinaryVennModel<E> |
getModel()
Return the model for this binary venn label.
|
org.piccolo2d.nodes.PText |
getSecondLabel()
Return the label for the second set.
|
String |
getSecondLabelText()
Return the label text for the second set.
|
org.piccolo2d.nodes.PText |
getSecondOnlyLabel()
Return the label for the second only view.
|
String |
getSecondOnlyLabelText()
Return the label text for the second only view.
|
org.piccolo2d.nodes.PText |
getUnionLabel()
Return the label for the union view.
|
String |
getUnionLabelText()
Return the label text for the union view.
|
Iterable<org.piccolo2d.nodes.PText> |
labels()
Return the labels for this venn diagram node.
|
void |
setFirstLabelText(String firstLabelText)
Set the label text for the first set to
firstLabelText . |
void |
setFirstOnlyLabelText(String firstOnlyLabelText)
Set the label text for the first only view to
firstOnlyLabelText . |
void |
setIntersectionLabelText(String intersectionLabelText)
Set the label text for the intersection view to
intersectionLabelText . |
void |
setModel(BinaryVennModel<E> model)
Set the model for this binary venn label to
model . |
void |
setSecondLabelText(String secondLabelText)
Set the label text for the second set to
secondLabelText . |
void |
setSecondOnlyLabelText(String secondOnlyLabelText)
Set the label text for the second only view to
secondOnlyLabelText . |
void |
setUnionLabelText(String unionLabelText)
Set the label text for the union view to
unionLabelText . |
protected abstract void |
updateContents()
Update contents.
|
protected void |
updateLabels()
Update labels.
|
buildLabel, getDisplayLabels, getDisplaySizeLabels, getDisplaySizes, getDisplaySizesForEmptyAreas, labelForNode, labelTextForNode, nodes, setDisplayLabels, setDisplaySizeLabels, setDisplaySizes, setDisplaySizesForEmptyAreas, sizeLabels, viewForNode
addActivity, addAttribute, addChild, addChild, addChildren, addInputEventListener, addPropertyChangeListener, addPropertyChangeListener, animateToBounds, animateToColor, animateToPositionScaleRotation, animateToRelativePosition, animateToTransform, animateToTransparency, animateTransformToBounds, centerBoundsOnPoint, centerFullBoundsOnPoint, clone, computeFullBounds, endResizeBounds, findIntersectingNodes, fireChildPropertyChange, firePropertyChange, fullIntersects, fullPaint, fullPick, getAllNodes, getAllNodes, getAttribute, getAttribute, getBooleanAttribute, getBounds, getBoundsChanged, getBoundsReference, getBoundsVolatile, getChild, getChildBoundsInvalid, getChildBoundsVolatile, getChildPaintInvalid, getChildrenCount, getChildrenIterator, getChildrenPickable, getChildrenReference, getClientProperties, getClientPropertyKeysEnumeration, getDoubleAttribute, getFullBounds, getFullBoundsInvalid, getFullBoundsReference, getGlobalBounds, getGlobalFullBounds, getGlobalRotation, getGlobalScale, getGlobalToLocalTransform, getGlobalTranslation, getHeight, getInputEventListeners, getIntegerAttribute, getInverseTransform, getListenerList, getLocalToGlobalTransform, getName, getOccluded, getOffset, getPaint, getPaintInvalid, getParent, getPickable, getPropertyChangeParentMask, getRoot, getRotation, getScale, getTransform, getTransformReference, getTransparency, getUnionOfChildrenBounds, getVisible, getWidth, getX, getXOffset, getY, getYOffset, globalToLocal, globalToLocal, globalToLocal, indexOfChild, internalUpdateBounds, intersects, invalidateFullBounds, invalidateLayout, invalidatePaint, isAncestorOf, isDescendentOf, isDescendentOfRoot, isOpaque, layoutChildren, lerp, localToGlobal, localToGlobal, localToGlobal, localToParent, localToParent, localToParent, lower, lower, lowerBelow, lowerToBottom, lowerToBottom, offset, paint, paintAfterChildren, parentBoundsChanged, parentToLocal, parentToLocal, parentToLocal, pick, pickAfterChildren, print, print, raise, raise, raiseAbove, raiseToTop, raiseToTop, removeAllChildren, removeChild, removeChild, removeChildren, removeFromParent, removeInputEventListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaintFrom, reparent, replaceWith, resetBounds, rotate, rotateAboutPoint, rotateAboutPoint, rotateInPlace, scale, scaleAboutPoint, scaleAboutPoint, setBounds, setBounds, setBoundsChanged, setChildBoundsInvalid, setChildBoundsVolatile, setChildPaintInvalid, setChildrenPickable, setFullBoundsInvalid, setGlobalRotation, setGlobalScale, setGlobalTranslation, setHeight, setName, setOccluded, setOffset, setOffset, setPaint, setPaintInvalid, setParent, setPickable, setPropertyChangeParentMask, setRotation, setScale, setTransform, setTransparency, setVisible, setWidth, setX, setY, signalBoundsChanged, startResizeBounds, toImage, toImage, toImage, toImage, transformBy, translate, validateFullBounds, validateFullPaint
public static final String DEFAULT_FIRST_LABEL_TEXT
"First set"
.public static final String DEFAULT_SECOND_LABEL_TEXT
"Second set"
.public static final String DEFAULT_FIRST_ONLY_LABEL_TEXT
"First only"
.public static final String DEFAULT_SECOND_ONLY_LABEL_TEXT
"Second only"
.public static final String DEFAULT_INTERSECTION_LABEL_TEXT
"Intersection"
.public static final String DEFAULT_UNION_LABEL_TEXT
"Union"
.protected AbstractBinaryVennNode()
protected AbstractBinaryVennNode(String firstLabelText, Set<? extends E> first, String secondLabelText, Set<? extends E> second)
firstLabelText
- label text for the first setfirst
- first set, must not be nullsecondLabelText
- label text for the second setsecond
- second set, must not be nullprotected AbstractBinaryVennNode(BinaryVennModel<E> model)
model
- model for this abstract binary venn diagram node, must not be nullprotected void updateLabels()
AbstractVennNode
updateLabels
in class AbstractVennNode<E>
protected abstract void updateContents()
public final Iterable<org.piccolo2d.nodes.PText> labels()
AbstractVennNode
labels
in class AbstractVennNode<E>
public final BinaryVennModel<E> getModel()
public final void setModel(BinaryVennModel<E> model)
model
.
This is a bound property.
model
- model for this binary venn label, must not be nullpublic final String getFirstLabelText()
DEFAULT_FIRST_LABEL_TEXT
.public final void setFirstLabelText(String firstLabelText)
firstLabelText
.
This is a bound property.
firstLabelText
- label text for the first setpublic final String getSecondLabelText()
DEFAULT_SECOND_LABEL_TEXT
.public final void setSecondLabelText(String secondLabelText)
secondLabelText
.
This is a bound property.
secondLabelText
- label text for the second setpublic final String getFirstOnlyLabelText()
DEFAULT_FIRST_ONLY_LABEL_TEXT
.public final void setFirstOnlyLabelText(String firstOnlyLabelText)
firstOnlyLabelText
.
This is a bound property.
firstOnlyLabelText
- label text for the first only viewpublic final String getSecondOnlyLabelText()
DEFAULT_SECOND_ONLY_LABEL_TEXT
.public final void setSecondOnlyLabelText(String secondOnlyLabelText)
secondOnlyLabelText
.
This is a bound property.
secondOnlyLabelText
- label text for the second only viewpublic final String getIntersectionLabelText()
DEFAULT_INTERSECTION_LABEL_TEXT
.public final void setIntersectionLabelText(String intersectionLabelText)
intersectionLabelText
.
This is a bound property.
intersectionLabelText
- label text for the intersection viewpublic final String getUnionLabelText()
DEFAULT_UNION_LABEL_TEXT
.public final void setUnionLabelText(String unionLabelText)
unionLabelText
.
This is a bound property.
unionLabelText
- label text for the union viewpublic final org.piccolo2d.nodes.PText getFirstLabel()
setFirstLabelText(String)
and AbstractVennNode.setDisplaySizes(boolean)
to set the label text and whether to display sizes respectively.public final org.piccolo2d.nodes.PText getSecondLabel()
setSecondLabelText(String)
and AbstractVennNode.setDisplaySizes(boolean)
to set the label text and whether to display sizes respectively.public final org.piccolo2d.nodes.PText getFirstOnlyLabel()
setFirstOnlyLabelText(String)
and AbstractVennNode.setDisplaySizes(boolean)
to set the label text and whether to display sizes respectively.public final org.piccolo2d.nodes.PText getSecondOnlyLabel()
setSecondOnlyLabelText(String)
and AbstractVennNode.setDisplaySizes(boolean)
to set the label text and whether to display sizes respectively.public final org.piccolo2d.nodes.PText getIntersectionLabel()
setIntersectionLabelText(String)
and AbstractVennNode.setDisplaySizes(boolean)
to set the label text and whether to display sizes respectively.public final org.piccolo2d.nodes.PText getUnionLabel()
setUnionLabelText(String)
and AbstractVennNode.setDisplaySizes(boolean)
to set the label text and whether to display sizes respectively.Copyright (c) 2009-2013 held jointly by the individual authors. Licensed under the GNU Lesser General Public License (LGPL).