this might be 'old news' for those accomplished in jhana (I'm not one of them), but in case anyone hasn't encountered this passage before: there is a set of analogies the Buddha gave, that I find useful when a particular mental hindrance is afflicting the mind, during sitting meditation. I find that, making the mental effort to see the hindrance as stress, seems to help the mind let go of that hindrance, or at least diminish it's influence at that time.
Abandoning the Hindrances
"Endowed with this noble aggregate of virtue, this noble restraint over the sense faculties, this noble mindfulness and alertness, and this noble contentment, he seeks out a secluded dwelling: a forest, the shade of a tree, a mountain, a glen, a hillside cave, a charnel ground, a jungle grove, the open air, a heap of straw. After his meal, returning from his alms round, he sits down, crosses his legs, holds his body erect, and brings mindfulness to the fore.
"Abandoning covetousness with regard to the world, he dwells with an awareness devoid of covetousness. He cleanses his mind of covetousness. Abandoning ill will and anger, he dwells with an awareness devoid of ill will, sympathetic with the welfare of all living beings. He cleanses his mind of ill will and anger. Abandoning sloth and drowsiness, he dwells with an awareness devoid of sloth and drowsiness, mindful, alert, percipient of light. He cleanses his mind of sloth and drowsiness. Abandoning restlessness and anxiety, he dwells undisturbed, his mind inwardly stilled. He cleanses his mind of restlessness and anxiety. Abandoning uncertainty, he dwells having crossed over uncertainty, with no perplexity with regard to skillful mental qualities. He cleanses his mind of uncertainty.
"Suppose that a man, taking a loan, invests it in his business affairs. His business affairs succeed. He repays his old debts and there is extra left over for maintaining his wife. The thought would occur to him, 'Before, taking a loan, I invested it in my business affairs. Now my business affairs have succeeded. I have repaid my old debts and there is extra left over for maintaining my wife.' Because of that he would experience joy and happiness.
"Now suppose that a man falls sick — in pain and seriously ill. He does not enjoy his meals, and there is no strength in his body. As time passes, he eventually recovers from that sickness. He enjoys his meals and there is strength in his body. The thought would occur to him, 'Before, I was sick... Now I am recovered from that sickness. I enjoy my meals and there is strength in my body.' Because of that he would experience joy and happiness.
"Now suppose that a man is bound in prison. As time passes, he eventually is released from that bondage, safe and sound, with no loss of property. The thought would occur to him, 'Before, I was bound in prison. Now I am released from that bondage, safe and sound, with no loss of my property.' Because of that he would experience joy and happiness.
"Now suppose that a man is a slave, subject to others, not subject to himself, unable to go where he likes. As time passes, he eventually is released from that slavery, subject to himself, not subject to others, freed, able to go where he likes. The thought would occur to him, 'Before, I was a slave... Now I am released from that slavery, subject to myself, not subject to others, freed, able to go where I like.' Because of that he would experience joy and happiness.
"Now suppose that a man, carrying money and goods, is traveling by a road through desolate country. As time passes, he eventually emerges from that desolate country, safe and sound, with no loss of property. The thought would occur to him, 'Before, carrying money and goods, I was traveling by a road through desolate country. Now I have emerged from that desolate country, safe and sound, with no loss of my property.' Because of that he would experience joy and happiness.
"In the same way, when these five hindrances are not abandoned in himself, the monk regards it as a debt, a sickness, a prison, slavery, a road through desolate country. But when these five hindrances are abandoned in himself, he regards it as unindebtedness, good health, release from prison, freedom, a place of security. Seeing that they have been abandoned within him, he becomes glad. Glad, he becomes enraptured. Enraptured, his body grows tranquil. His body tranquil, he is sensitive to pleasure. Feeling pleasure, his mind becomes concentrated.
("Samaññaphala Sutta: The Fruits of the Contemplative Life" (DN 2), translated from the Pali by Thanissaro Bhikkhu. Access to Insight (BCBS Edition), 30 November 2013, http://www.accesstoinsight.org/tipitaka ... .than.html .)