Package org.apache.poi.hslf.record
Class ColorSchemeAtom
- java.lang.Object
-
- org.apache.poi.hslf.record.Record
-
- org.apache.poi.hslf.record.RecordAtom
-
- org.apache.poi.hslf.record.ColorSchemeAtom
-
public final class ColorSchemeAtom extends RecordAtom
A ColorSchemeAtom (type 2032). Holds the 8 RGB values for the different colours of bits of text, that makes up a given colour scheme. Slides (presumably) link to a given colour scheme atom, and that defines the colours to be used
-
-
Constructor Summary
Constructors Constructor Description ColorSchemeAtom()
Create a new ColorSchemeAtom, to go with a new Slide
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getAccentAndFollowingHyperlinkColourRGB()
Fetch the RGB value for Accent And Following Hyperlink Colourint
getAccentAndHyperlinkColourRGB()
Fetch the RGB value for Accent And Hyperlink Colourint
getAccentColourRGB()
Fetch the RGB value for Accent Colourint
getBackgroundColourRGB()
Fetch the RGB value for Background Colourint
getColor(int idx)
Returns color by its indexint
getFillsColourRGB()
Fetch the RGB value for Fills Colourlong
getRecordType()
We are of type 3999int
getShadowsColourRGB()
Fetch the RGB value for Shadows Colourint
getTextAndLinesColourRGB()
Fetch the RGB value for Text And Lines Colourint
getTitleTextColourRGB()
Fetch the RGB value for Title Text Colourstatic int
joinRGB(byte[] rgb)
Convert from split R, G, B values to an integer RGB valuestatic int
joinRGB(byte r, byte g, byte b)
Convert from split R, G, B values to an integer RGB valuevoid
setAccentAndFollowingHyperlinkColourRGB(int rgb)
Set the RGB value for Accent And Following Hyperlink Colourvoid
setAccentAndHyperlinkColourRGB(int rgb)
Set the RGB value for Accent And Hyperlink Colourvoid
setAccentColourRGB(int rgb)
Set the RGB value for Accent Colourvoid
setBackgroundColourRGB(int rgb)
Set the RGB value for Background Colourvoid
setFillsColourRGB(int rgb)
Set the RGB value for Fills Colourvoid
setShadowsColourRGB(int rgb)
Set the RGB value for Shadows Colourvoid
setTextAndLinesColourRGB(int rgb)
Set the RGB value for Text And Lines Colourvoid
setTitleTextColourRGB(int rgb)
Set the RGB value for Title Text Colourstatic byte[]
splitRGB(int rgb)
Convert from an integer RGB value to individual R, G, B 0-255 valuesvoid
writeOut(OutputStream out)
Write the contents of the record back, so it can be written to disk-
Methods inherited from class org.apache.poi.hslf.record.RecordAtom
getChildRecords, isAnAtom
-
Methods inherited from class org.apache.poi.hslf.record.Record
buildRecordAtOffset, createRecordForType, findChildRecords, writeLittleEndian, writeLittleEndian
-
-
-
-
Method Detail
-
getBackgroundColourRGB
public int getBackgroundColourRGB()
Fetch the RGB value for Background Colour
-
setBackgroundColourRGB
public void setBackgroundColourRGB(int rgb)
Set the RGB value for Background Colour
-
getTextAndLinesColourRGB
public int getTextAndLinesColourRGB()
Fetch the RGB value for Text And Lines Colour
-
setTextAndLinesColourRGB
public void setTextAndLinesColourRGB(int rgb)
Set the RGB value for Text And Lines Colour
-
getShadowsColourRGB
public int getShadowsColourRGB()
Fetch the RGB value for Shadows Colour
-
setShadowsColourRGB
public void setShadowsColourRGB(int rgb)
Set the RGB value for Shadows Colour
-
getTitleTextColourRGB
public int getTitleTextColourRGB()
Fetch the RGB value for Title Text Colour
-
setTitleTextColourRGB
public void setTitleTextColourRGB(int rgb)
Set the RGB value for Title Text Colour
-
getFillsColourRGB
public int getFillsColourRGB()
Fetch the RGB value for Fills Colour
-
setFillsColourRGB
public void setFillsColourRGB(int rgb)
Set the RGB value for Fills Colour
-
getAccentColourRGB
public int getAccentColourRGB()
Fetch the RGB value for Accent Colour
-
setAccentColourRGB
public void setAccentColourRGB(int rgb)
Set the RGB value for Accent Colour
-
getAccentAndHyperlinkColourRGB
public int getAccentAndHyperlinkColourRGB()
Fetch the RGB value for Accent And Hyperlink Colour
-
setAccentAndHyperlinkColourRGB
public void setAccentAndHyperlinkColourRGB(int rgb)
Set the RGB value for Accent And Hyperlink Colour
-
getAccentAndFollowingHyperlinkColourRGB
public int getAccentAndFollowingHyperlinkColourRGB()
Fetch the RGB value for Accent And Following Hyperlink Colour
-
setAccentAndFollowingHyperlinkColourRGB
public void setAccentAndFollowingHyperlinkColourRGB(int rgb)
Set the RGB value for Accent And Following Hyperlink Colour
-
getRecordType
public long getRecordType()
We are of type 3999- Specified by:
getRecordType
in classRecord
-
splitRGB
public static byte[] splitRGB(int rgb)
Convert from an integer RGB value to individual R, G, B 0-255 values
-
joinRGB
public static int joinRGB(byte r, byte g, byte b)
Convert from split R, G, B values to an integer RGB value
-
joinRGB
public static int joinRGB(byte[] rgb)
Convert from split R, G, B values to an integer RGB value
-
writeOut
public void writeOut(OutputStream out) throws IOException
Write the contents of the record back, so it can be written to disk- Specified by:
writeOut
in classRecord
- Throws:
IOException
-
getColor
public int getColor(int idx)
Returns color by its index- Parameters:
idx
- 0-based color index- Returns:
- color by its index
-
-