- All Superinterfaces:
AbstractModelComponent
,AbstractModelComponent
,AbstractVisibleComponent
,AbstractVisibleComponent
,Pathway
,ReadOnlyInterface
,WritableInterface
public interface Pathway extends AbstractVisibleComponent, Pathway
-
Method Summary
Modifier and Type Method Description void
addPublicIdentifier(PublicIdentifier publicIdentifier)
Adds a public identifier to the item.default void
addSynonym(String synonym)
Adds a synonym to the item.void
addSynonym(String synonym, String htmlSynonym)
Adds a synonym to the item.void
exchangeSynonyms(int index1, int index2)
Exchanges the position of two synonyms.List<? extends PathwayItem>
getDiagramItems()
List<? extends PathwayItem>
getDiagramItems(Diagram diagram)
Reaction
getReaction(String name)
List<? extends Reaction>
reactions()
void
removePublicIdentifier(PublicIdentifier publicIdentifier)
Removes the public identifier from the item.void
removeSynonym(int synonymIndex)
Removes the synonym from the item.void
removeSynonym(String synonym)
Removes the synonym from the item.void
setBrush(Brush brush)
Sets the fill brush of the item's shape.void
setBrushDefault()
Sets the fill brush of the item's shape to default.void
setFont(Font font)
Changes the font of the text label of the item.void
setFontDefault()
Changes the font of the text label of the item to default.void
setFormattedLabel(String html)
Set items visible label in html.void
setHidden(boolean hidden)
Changes the visibility of the item in the diagram.void
setIdentifier(String identifier)
Changes identifier of the item.void
setPublicIdentifiers(Collection<? extends PublicIdentifier> publicIdentifiers)
Set the public identifiers of the item.void
setReactionFont(Font font)
Changes the default font for reactions' text labels.void
setReactionFontDefault()
Changes the default font for reactions' text labels to default.void
setReactionPaint(Paint paint)
Changes the default value for the reactions' paint.void
setReactionPaintDefault()
Changes the default value for the reactions' paint to default.void
setReactionPaintDefaultToPathwayBrush()
Changes the default value for the reactions' paint to default (to pathway brush).void
setReactionPaintDefaultToStylesheet()
Changes the default value for the reactions' paint to default (to style sheet).void
setReactionShadow(Shadow shadow)
Changes the default value for the reactions' shadow.void
setReactionShadowDefault()
Changes the default value for the reactions' shadow to default.void
setReactionShape(Shape shape)
Changes the default value for the reactions' shape.void
setReactionShapeDefault()
Changes the default value for the reactions' shape to default.void
setReactionStrokeColor(Color strokeColor)
Changes the default value for the reactions' stroke color.void
setReactionStrokeColorDefault()
Changes the default value for the reactions' stroke color to default.void
setReactionStrokeStyle(StrokeStyle strokeStyle)
Changes the default value for the reactions' stroke style.void
setReactionStrokeStyleDefault()
Changes the default value for the reactions' stroke style to default.void
setReactionStrokeWidth(double strokeWidth)
Changes the default value for the reactions' stroke width.void
setReactionStrokeWidthDefault()
Changes the default value for the reactions' stroke width to default.void
setReactionTextBrush(Brush textBrush)
Changes the default value for the reactions' text paint brush.void
setReactionTextBrushDefault()
Changes the default value for the reactions' text paint brush to default.void
setReactionTextStrokeColor(Color textStrokeColor)
Changes the default value for the reactions' text stroke color.void
setReactionTextStrokeColorDefault()
Changes the default value for the reactions' text stroke color to default.void
setReactionTextStrokeWidth(double textStrokeWidth)
Changes the default value for the reactions' text stroke width.void
setReactionTextStrokeWidthDefault()
Changes the default value for the reactions' text stroke width to default.void
setStrength(double strength)
Changes the strength of the contour the pathway paints around its reactions and edges.void
setStrengthDefault()
Changes the strength of the contour the pathway paints around its reactions and edges to default.void
setStrokeColor(Color strokeColor)
Changes the color for the stroke of the item's shape.void
setStrokeColorDefault()
Changes the color for the stroke of the item's shape to default.void
setStrokeStyle(StrokeStyle strokeStyle)
Changes the paint style for the stroke of the item's shape.void
setStrokeStyleDefault()
Changes the paint style for the stroke of the item's shape to default.void
setStrokeWidth(double strokeWidth)
Changes the stroke width of the item's shape.void
setStrokeWidthDefault()
Changes the stroke width of the item's shape to default.default void
setSynonym(int index, String synonymPlain)
Sets the synonym at the given position.void
setSynonym(int index, String synonymPlain, String synonymRichText)
Sets the synonym at the given position.void
setTextBrush(Brush textBrush)
Changes the fill brush of the item's text label.void
setTextBrushDefault()
Changes the fill brush of the item's text label to default.void
setTextStrokeColor(Color textStrokeColor)
Changes the color for the stroke of the item's text label.void
setTextStrokeColorDefault()
Changes the color for the stroke of the item's text label to default.void
setTextStrokeWidth(double textStrokeWidth)
Changes the stroke width of the item's text label.void
setTextStrokeWidthDefault()
Changes the stroke width of the item's text label to default.void
setTransparency(double transparency)
Changes the transparency of the item's shape.void
setTransparencyDefault()
Changes the transparency of the item's shape to default.Pathway
toReadOnly()
Methods inherited from interface omix.plugin.model.AbstractModelComponent
addChangeListener, addPropertyChangeListener, fieldExists, getIdentifier, removeChangeListener, removePropertyChangeListener
Methods inherited from interface omix.plugin.model.writable.AbstractModelComponent
getField, getField, isChangeable, model
Methods inherited from interface omix.plugin.model.AbstractVisibleComponent
accessoryExists, getAccessory, getAccessory, hasDiagramItems, hasDiagramItems
Methods inherited from interface omix.plugin.model.writable.AbstractVisibleComponent
getAccessories, getAccessories, getAccessory, getAccessory, getAllAccessories, getCustomProperty, getMethod, getMethod, getMethod, setCustomProperty, setTmpCustomProperty
Methods inherited from interface omix.plugin.model.Pathway
blur, brush, font, getCustomProperty, getPublicIdentifiers, hidden, name, reactionBlur, reactionCollapsed, reactionFillLevel, reactionFillLevelIndication, reactionFont, reactionPaint, reactionScale, reactionShadow, reactionShape, reactionStrokeColor, reactionStrokeStyle, reactionStrokeWidth, reactionTextBrush, reactionTextStrokeColor, reactionTextStrokeWidth, reactionTransparency, setCustomProperty, setTmpCustomProperty, strength, strokeColor, strokeStyle, strokeWidth, synonyms, textBlur, textBrush, textShadow, textStrokeColor, textStrokeWidth, textTransparency, transparency
-
Method Details
-
setIdentifier
Changes identifier of the item.- Parameters:
identifier
- the new name of the item. CAUTION, the name must be unique in the network.- Throws:
ComponentExistsException
IllegalChangeException
-
setFormattedLabel
Set items visible label in html.- Parameters:
html
- item's label in HTML- Throws:
IllegalChangeException
-
addSynonym
Adds a synonym to the item.- Parameters:
synonym
-- Throws:
IllegalChangeException
-
addSynonym
Adds a synonym to the item.- Parameters:
synonym
-html
-- Throws:
IllegalChangeException
-
removeSynonym
Removes the synonym from the item.- Parameters:
synonym
-- Throws:
IllegalChangeException
-
removeSynonym
Removes the synonym from the item.- Parameters:
synonym
- index- Throws:
IllegalChangeException
-
exchangeSynonyms
Exchanges the position of two synonyms.- Parameters:
index1
-index2
-- Throws:
IllegalChangeException
-
setSynonym
Sets the synonym at the given position.- Parameters:
index
-synonymPlain
- plain text- Throws:
IllegalChangeException
-
setSynonym
void setSynonym(int index, String synonymPlain, String synonymRichText) throws IllegalChangeExceptionSets the synonym at the given position.- Parameters:
index
-synonymPlain
- plain textsynonymRichText
- rich text- Throws:
IllegalChangeException
-
addPublicIdentifier
Adds a public identifier to the item.- Parameters:
publicIdentifier
-- Throws:
IllegalChangeException
-
setPublicIdentifiers
void setPublicIdentifiers(Collection<? extends PublicIdentifier> publicIdentifiers) throws IllegalChangeExceptionSet the public identifiers of the item.- Parameters:
publicIdentifiers
-- Throws:
IllegalChangeException
-
removePublicIdentifier
Removes the public identifier from the item.- Parameters:
publicIdentifier
-- Throws:
IllegalChangeException
-
setHidden
Changes the visibility of the item in the diagram.- Parameters:
node
- the itemhidden
-- Throws:
IllegalChangeException
-
setBrush
Sets the fill brush of the item's shape.- Parameters:
brush
- the new brush- Throws:
IllegalChangeException
- See Also:
Pathway.brush()
-
setTextStrokeWidth
Changes the stroke width of the item's text label. The text stroke width of graphics nodes does not accept null.- Parameters:
textStrokeWidth
-- Throws:
IllegalChangeException
- See Also:
Pathway.textStrokeWidth()
-
setStrokeWidth
Changes the stroke width of the item's shape. The stroke width of graphics nodes does not accept null.- Parameters:
strokeWidth
-- Throws:
IllegalChangeException
- See Also:
Pathway.strokeWidth()
-
setTextBrush
Changes the fill brush of the item's text label.- Parameters:
textBrush
-- Throws:
IllegalChangeException
- See Also:
Pathway.textBrush()
-
setFont
Changes the font of the text label of the item.- Parameters:
font
-- Throws:
IllegalChangeException
- See Also:
Pathway.font()
-
setStrokeStyle
Changes the paint style for the stroke of the item's shape.- Parameters:
strokeStyle
-- Throws:
IllegalChangeException
- See Also:
Pathway.strokeStyle()
-
setTextStrokeColor
Changes the color for the stroke of the item's text label.- Parameters:
textStrokeColor
-- Throws:
IllegalChangeException
- See Also:
Pathway.textStrokeColor()
-
setStrokeColor
Changes the color for the stroke of the item's shape.- Parameters:
strokeColor
-- Throws:
IllegalChangeException
- See Also:
Pathway.strokeColor()
-
setStrength
Changes the strength of the contour the pathway paints around its reactions and edges.- Parameters:
strength
- pathway strength- Throws:
IllegalChangeException
- See Also:
Pathway.strength()
-
setTransparency
Changes the transparency of the item's shape.- Parameters:
transparency
-- Throws:
IllegalChangeException
- See Also:
Pathway.transparency()
-
setReactionFont
Changes the default font for reactions' text labels.- Parameters:
font
-- Throws:
IllegalChangeException
- See Also:
BioNode.font()
-
setReactionStrokeColor
Changes the default value for the reactions' stroke color.- Parameters:
strokeColor
-- Throws:
IllegalChangeException
- See Also:
BioNode.strokeColor()
-
setReactionTextStrokeColor
Changes the default value for the reactions' text stroke color.- Parameters:
textStrokeColor
-- Throws:
IllegalChangeException
- See Also:
BioNode.textStrokeColor()
-
setReactionTextBrush
Changes the default value for the reactions' text paint brush.- Parameters:
textBrush
-- Throws:
IllegalChangeException
- See Also:
BioNode.textBrush()
-
setReactionTextStrokeWidth
Changes the default value for the reactions' text stroke width.- Parameters:
textStrokeWidth
-- Throws:
IllegalChangeException
- See Also:
BioNode.textStrokeWidth()
-
setReactionStrokeWidth
Changes the default value for the reactions' stroke width.- Parameters:
strokeWidth
-- Throws:
IllegalChangeException
- See Also:
BioNode.strokeWidth()
-
setReactionStrokeStyle
Changes the default value for the reactions' stroke style.- Parameters:
strokeStyle
-- Throws:
IllegalChangeException
- See Also:
BioNode.strokeStyle()
-
setReactionShape
Changes the default value for the reactions' shape.- Parameters:
shape
-- Throws:
IllegalChangeException
- See Also:
BioNode.shape()
-
setReactionShadow
Changes the default value for the reactions' shadow.- Parameters:
shadow
-- Throws:
IllegalChangeException
- See Also:
BioNode.shadow()
-
setReactionPaint
Changes the default value for the reactions' paint.- Parameters:
paint
-- Throws:
IllegalChangeException
- See Also:
BioNode.paint()
-
setBrushDefault
Sets the fill brush of the item's shape to default.- Parameters:
brush
- the new brush- Throws:
IllegalChangeException
- See Also:
Pathway.brush()
-
setTextStrokeWidthDefault
Changes the stroke width of the item's text label to default.- Throws:
IllegalChangeException
- See Also:
Pathway.textStrokeWidth()
-
setStrokeWidthDefault
Changes the stroke width of the item's shape to default.- Throws:
IllegalChangeException
- See Also:
Pathway.strokeWidth()
-
setTextBrushDefault
Changes the fill brush of the item's text label to default.- Throws:
IllegalChangeException
- See Also:
Pathway.textBrush()
-
setFontDefault
Changes the font of the text label of the item to default.- Throws:
IllegalChangeException
- See Also:
Pathway.font()
-
setStrokeStyleDefault
Changes the paint style for the stroke of the item's shape to default.- Throws:
IllegalChangeException
- See Also:
Pathway.strokeStyle()
-
setTextStrokeColorDefault
Changes the color for the stroke of the item's text label to default.- Throws:
IllegalChangeException
- See Also:
Pathway.textStrokeColor()
-
setStrokeColorDefault
Changes the color for the stroke of the item's shape to default.- Throws:
IllegalChangeException
- See Also:
Pathway.strokeColor()
-
setStrengthDefault
Changes the strength of the contour the pathway paints around its reactions and edges to default.- Throws:
IllegalChangeException
- See Also:
Pathway.strength()
-
setTransparencyDefault
Changes the transparency of the item's shape to default.- Throws:
IllegalChangeException
- See Also:
Pathway.transparency()
-
setReactionFontDefault
Changes the default font for reactions' text labels to default.- Throws:
IllegalChangeException
- See Also:
BioNode.font()
-
setReactionStrokeColorDefault
Changes the default value for the reactions' stroke color to default.- Throws:
IllegalChangeException
- See Also:
BioNode.strokeColor()
-
setReactionTextStrokeColorDefault
Changes the default value for the reactions' text stroke color to default.- Throws:
IllegalChangeException
- See Also:
BioNode.textStrokeColor()
-
setReactionTextBrushDefault
Changes the default value for the reactions' text paint brush to default.- Throws:
IllegalChangeException
- See Also:
BioNode.textBrush()
-
setReactionTextStrokeWidthDefault
Changes the default value for the reactions' text stroke width to default.- Throws:
IllegalChangeException
- See Also:
BioNode.textStrokeWidth()
-
setReactionStrokeWidthDefault
Changes the default value for the reactions' stroke width to default.- Throws:
IllegalChangeException
- See Also:
BioNode.strokeWidth()
-
setReactionStrokeStyleDefault
Changes the default value for the reactions' stroke style to default.- Throws:
IllegalChangeException
- See Also:
BioNode.strokeStyle()
-
setReactionShapeDefault
Changes the default value for the reactions' shape to default.- Throws:
IllegalChangeException
- See Also:
BioNode.shape()
-
setReactionShadowDefault
Changes the default value for the reactions' shadow to default.- Throws:
IllegalChangeException
- See Also:
BioNode.shadow()
-
setReactionPaintDefaultToPathwayBrush
Changes the default value for the reactions' paint to default (to pathway brush).- Throws:
IllegalChangeException
- See Also:
BioNode.paint()
-
setReactionPaintDefaultToStylesheet
Changes the default value for the reactions' paint to default (to style sheet).- Throws:
IllegalChangeException
- See Also:
BioNode.paint()
-
setReactionPaintDefault
Changes the default value for the reactions' paint to default.- Throws:
IllegalChangeException
- See Also:
BioNode.paint()
-
getDiagramItems
List<? extends PathwayItem> getDiagramItems()- Specified by:
getDiagramItems
in interfaceAbstractVisibleComponent
- Specified by:
getDiagramItems
in interfaceAbstractVisibleComponent
- Specified by:
getDiagramItems
in interfacePathway
-
getDiagramItems
- Specified by:
getDiagramItems
in interfaceAbstractVisibleComponent
- Specified by:
getDiagramItems
in interfaceAbstractVisibleComponent
- Specified by:
getDiagramItems
in interfacePathway
-
reactions
-
getReaction
- Specified by:
getReaction
in interfacePathway
-
toReadOnly
Pathway toReadOnly()- Specified by:
toReadOnly
in interfaceAbstractModelComponent
- Specified by:
toReadOnly
in interfaceAbstractVisibleComponent
- Specified by:
toReadOnly
in interfaceWritableInterface
-